* [FFmpeg-devel] [PATCH 0/1] jpegxl_anim FATE test
@ 2023-06-21 18:35 Leo Izen
2023-06-21 18:35 ` [FFmpeg-devel] [PATCH 1/1] fate/jpegxl_anim: add demuxer fate test for jpegxl_anim Leo Izen
0 siblings, 1 reply; 2+ messages in thread
From: Leo Izen @ 2023-06-21 18:35 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Leo Izen
This test relies on FATE samples that haven't been uploaded yet. To test, unzip
the following zipfile[1] in the FATE_SAMPLES directory, placing the test images in jxl/.
[1]: https://buzo.us/y.zip
sha256sum: 43a2eeb0dfdf471b47a9fdfb1653974fa156ceceb776891cc137569a8ebf0e75
signature: https://buzo.us/R.asc
Leo Izen (1):
fate/jpegxl_anim: add demuxer fate test for jpegxl_anim
tests/Makefile | 1 +
tests/fate/jxl.mak | 16 ++++++++++++++++
tests/ref/fate/jxl-anim-demux-belgium | 12 ++++++++++++
tests/ref/fate/jxl-anim-demux-icos4d | 12 ++++++++++++
tests/ref/fate/jxl-anim-demux-lenna256 | 12 ++++++++++++
tests/ref/fate/jxl-anim-demux-newton | 12 ++++++++++++
6 files changed, 65 insertions(+)
create mode 100644 tests/fate/jxl.mak
create mode 100644 tests/ref/fate/jxl-anim-demux-belgium
create mode 100644 tests/ref/fate/jxl-anim-demux-icos4d
create mode 100644 tests/ref/fate/jxl-anim-demux-lenna256
create mode 100644 tests/ref/fate/jxl-anim-demux-newton
--
2.41.0
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 2+ messages in thread
* [FFmpeg-devel] [PATCH 1/1] fate/jpegxl_anim: add demuxer fate test for jpegxl_anim
2023-06-21 18:35 [FFmpeg-devel] [PATCH 0/1] jpegxl_anim FATE test Leo Izen
@ 2023-06-21 18:35 ` Leo Izen
0 siblings, 0 replies; 2+ messages in thread
From: Leo Izen @ 2023-06-21 18:35 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Leo Izen
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.
At the time of writing this patch, there's no internal decoder or
parser, so the packets have to be shown without referencing anything
relating to video properties (e.g. width/height). Because of this, the
framecrc and ffprobe_demux fate tests will not work, as the output will
different depending on whether the --enable-libjxl flag was enabled at
compile-time or not. probefmt -show_packets was used instead as this
will avoid running the decoder, if present.
---
tests/Makefile | 1 +
tests/fate/jxl.mak | 16 ++++++++++++++++
tests/ref/fate/jxl-anim-demux-belgium | 12 ++++++++++++
tests/ref/fate/jxl-anim-demux-icos4d | 12 ++++++++++++
tests/ref/fate/jxl-anim-demux-lenna256 | 12 ++++++++++++
tests/ref/fate/jxl-anim-demux-newton | 12 ++++++++++++
6 files changed, 65 insertions(+)
create mode 100644 tests/fate/jxl.mak
create mode 100644 tests/ref/fate/jxl-anim-demux-belgium
create mode 100644 tests/ref/fate/jxl-anim-demux-icos4d
create mode 100644 tests/ref/fate/jxl-anim-demux-lenna256
create mode 100644 tests/ref/fate/jxl-anim-demux-newton
diff --git a/tests/Makefile b/tests/Makefile
index e09f30a0fc..7b80762e81 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -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
diff --git a/tests/fate/jxl.mak b/tests/fate/jxl.mak
new file mode 100644
index 0000000000..0451428046
--- /dev/null
+++ b/tests/fate/jxl.mak
@@ -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 = probefmt $(TARGET_SAMPLES)/jxl/newton.jxl -show_packets
+FATE_JPEGXL_ANIM_DEMUX += fate-jxl-anim-demux-icos4d
+fate-jxl-anim-demux-icos4d: CMD = probefmt $(TARGET_SAMPLES)/jxl/icos4d.jxl -show_packets
+
+# 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 = probefmt $(TARGET_SAMPLES)/jxl/belgium.jxl -show_packets
+FATE_JPEGXL_ANIM_DEMUX += fate-jxl-anim-demux-lenna256
+fate-jxl-anim-demux-lenna256: CMD = probefmt $(TARGET_SAMPLES)/jxl/lenna-256.jxl -show_packets
+
+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)
diff --git a/tests/ref/fate/jxl-anim-demux-belgium b/tests/ref/fate/jxl-anim-demux-belgium
new file mode 100644
index 0000000000..2c686db107
--- /dev/null
+++ b/tests/ref/fate/jxl-anim-demux-belgium
@@ -0,0 +1,12 @@
+video
+0
+0
+0.000000
+0
+0.000000
+1
+0.040000
+32
+0
+K__
+jpegxl_pipe
diff --git a/tests/ref/fate/jxl-anim-demux-icos4d b/tests/ref/fate/jxl-anim-demux-icos4d
new file mode 100644
index 0000000000..84aa6e5849
--- /dev/null
+++ b/tests/ref/fate/jxl-anim-demux-icos4d
@@ -0,0 +1,12 @@
+video
+0
+N/A
+N/A
+N/A
+N/A
+N/A
+N/A
+67898
+N/A
+K__
+jpegxl_anim
diff --git a/tests/ref/fate/jxl-anim-demux-lenna256 b/tests/ref/fate/jxl-anim-demux-lenna256
new file mode 100644
index 0000000000..c26be90185
--- /dev/null
+++ b/tests/ref/fate/jxl-anim-demux-lenna256
@@ -0,0 +1,12 @@
+video
+0
+0
+0.000000
+0
+0.000000
+1
+0.040000
+8088
+0
+K__
+jpegxl_pipe
diff --git a/tests/ref/fate/jxl-anim-demux-newton b/tests/ref/fate/jxl-anim-demux-newton
new file mode 100644
index 0000000000..537e8b567f
--- /dev/null
+++ b/tests/ref/fate/jxl-anim-demux-newton
@@ -0,0 +1,12 @@
+video
+0
+N/A
+N/A
+N/A
+N/A
+N/A
+N/A
+43376
+N/A
+K__
+jpegxl_anim
--
2.41.0
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-06-21 18:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-21 18:35 [FFmpeg-devel] [PATCH 0/1] jpegxl_anim FATE test Leo Izen
2023-06-21 18:35 ` [FFmpeg-devel] [PATCH 1/1] fate/jpegxl_anim: add demuxer fate test for jpegxl_anim Leo Izen
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git