fate/jpegxl_anim: add demuxer fate test for jpegxl_anim

Adds a fate test for the jpegxl_anim demuxer, that should allow testing
for true positives and false positives for animated jpegxl files. Note
that two of the test cases are not animated, in order to help sort out
false positives.

Signed-off-by: Leo Izen <leo.izen@gmail.com>
This commit is contained in:
Leo Izen 2023-07-10 18:08:07 -04:00
parent 7aa71ab5c0
commit a49d7a1497
No known key found for this signature in database
GPG Key ID: 5A71C331FD2FA19A
6 changed files with 41 additions and 0 deletions

View File

@ -201,6 +201,7 @@ include $(SRC_PATH)/tests/fate/image.mak
include $(SRC_PATH)/tests/fate/imf.mak
include $(SRC_PATH)/tests/fate/indeo.mak
include $(SRC_PATH)/tests/fate/jpeg2000.mak
include $(SRC_PATH)/tests/fate/jxl.mak
include $(SRC_PATH)/tests/fate/libavcodec.mak
include $(SRC_PATH)/tests/fate/libavdevice.mak
include $(SRC_PATH)/tests/fate/libavformat.mak

16
tests/fate/jxl.mak Normal file
View File

@ -0,0 +1,16 @@
# These two are animated JXL files
FATE_JPEGXL_ANIM_DEMUX += fate-jxl-anim-demux-newton
fate-jxl-anim-demux-newton: CMD = framecrc -i $(TARGET_SAMPLES)/jxl/newton.jxl -c copy
FATE_JPEGXL_ANIM_DEMUX += fate-jxl-anim-demux-icos4d
fate-jxl-anim-demux-icos4d: CMD = framecrc -i $(TARGET_SAMPLES)/jxl/icos4d.jxl -c copy
# These two are not animated JXL. They are here to check false positives.
FATE_JPEGXL_ANIM_DEMUX += fate-jxl-anim-demux-belgium
fate-jxl-anim-demux-belgium: CMD = framecrc -i $(TARGET_SAMPLES)/jxl/belgium.jxl -c copy
FATE_JPEGXL_ANIM_DEMUX += fate-jxl-anim-demux-lenna256
fate-jxl-anim-demux-lenna256: CMD = framecrc -i $(TARGET_SAMPLES)/jxl/lenna-256.jxl -c copy
FATE_JPEGXL_ANIM_DEMUX += $(FATE_JPEGXL_ANIM_DEMUX-yes)
FATE_SAMPLES_FFMPEG-$(call FRAMECRC, JPEGXL_ANIM) += $(FATE_JPEGXL_ANIM_DEMUX)
fate-jxl-anim-demux: $(FATE_JPEGXL_ANIM_DEMUX)

View File

@ -0,0 +1,6 @@
#tb 0: 1/25
#media_type 0: video
#codec_id 0: jpegxl
#dimensions 0: 768x512
#sar 0: 0/1
0, 0, 0, 1, 32, 0xa2930a20

View File

@ -0,0 +1,6 @@
#tb 0: 1/1000
#media_type 0: video
#codec_id 0: jpegxl
#dimensions 0: 48x48
#sar 0: 0/1
0, 0, 0, 0, 67898, 0x53b6516b

View File

@ -0,0 +1,6 @@
#tb 0: 1/25
#media_type 0: video
#codec_id 0: jpegxl
#dimensions 0: 256x256
#sar 0: 0/1
0, 0, 0, 1, 8088, 0xbbfea9bd

View File

@ -0,0 +1,6 @@
#tb 0: 1/1000
#media_type 0: video
#codec_id 0: jpegxl
#dimensions 0: 128x96
#sar 0: 0/1
0, 0, 0, 0, 43376, 0xb2296182