[FFmpeg-cvslog] fate: add tests for JPEG-LS PAL8

James Almer git at videolan.org
Sat Apr 24 18:39:21 EEST 2021


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Apr 21 14:10:25 2021 -0300| [a5f996de4f1db97fc91959b2f2441528673b656f] | committer: James Almer

fate: add tests for JPEG-LS PAL8

Signed-off-by: James Almer <jamrial at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a5f996de4f1db97fc91959b2f2441528673b656f
---

 tests/fate/image.mak       | 16 ++++++++++++++++
 tests/ref/fate/jpegls-2bpc |  6 ++++++
 tests/ref/fate/jpegls-3bpc |  6 ++++++
 tests/ref/fate/jpegls-5bpc |  6 ++++++
 tests/ref/fate/jpegls-7bpc |  6 ++++++
 5 files changed, 40 insertions(+)

diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index 226e190262..07316542e1 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -338,6 +338,22 @@ FATE_JPG-$(call DEMDEC, IMAGE2, MJPEG) += $(FATE_JPG)
 FATE_IMAGE += $(FATE_JPG-yes)
 fate-jpg: $(FATE_JPG-yes)
 
+FATE_JPEGLS += fate-jpegls-2bpc
+fate-jpegls-2bpc: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpegls/4.jls -pix_fmt rgb24 -vf scale
+
+FATE_JPEGLS += fate-jpegls-3bpc
+fate-jpegls-3bpc: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpegls/8.jls -pix_fmt rgb24 -vf scale
+
+FATE_JPEGLS += fate-jpegls-5bpc
+fate-jpegls-5bpc: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpegls/32.jls -pix_fmt rgb24 -vf scale
+
+FATE_JPEGLS += fate-jpegls-7bpc
+fate-jpegls-7bpc: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpegls/128.jls -pix_fmt rgb24 -vf scale
+
+FATE_JPEGLS-$(call DEMDEC, IMAGE2, JPEGLS) += $(FATE_JPEGLS)
+FATE_IMAGE += $(FATE_JPEGLS-yes)
+fate-jpegls: $(FATE_JPEGLS-yes)
+
 FATE_IMAGE-$(call DEMDEC, IMAGE2, QDRAW) += fate-pict
 fate-pict: CMD = framecrc -i $(TARGET_SAMPLES)/quickdraw/TRU256.PCT -pix_fmt rgb24
 
diff --git a/tests/ref/fate/jpegls-2bpc b/tests/ref/fate/jpegls-2bpc
new file mode 100644
index 0000000000..06364273e2
--- /dev/null
+++ b/tests/ref/fate/jpegls-2bpc
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 711x711
+#sar 0: 0/1
+0,          0,          0,        1,  1516563, 0x2c788aa2
diff --git a/tests/ref/fate/jpegls-3bpc b/tests/ref/fate/jpegls-3bpc
new file mode 100644
index 0000000000..59c085a4b0
--- /dev/null
+++ b/tests/ref/fate/jpegls-3bpc
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 711x711
+#sar 0: 0/1
+0,          0,          0,        1,  1516563, 0x8a30bd1d
diff --git a/tests/ref/fate/jpegls-5bpc b/tests/ref/fate/jpegls-5bpc
new file mode 100644
index 0000000000..114f8e05db
--- /dev/null
+++ b/tests/ref/fate/jpegls-5bpc
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 711x711
+#sar 0: 0/1
+0,          0,          0,        1,  1516563, 0xaf7085ce
diff --git a/tests/ref/fate/jpegls-7bpc b/tests/ref/fate/jpegls-7bpc
new file mode 100644
index 0000000000..0fdfb8fab0
--- /dev/null
+++ b/tests/ref/fate/jpegls-7bpc
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 711x711
+#sar 0: 0/1
+0,          0,          0,        1,  1516563, 0x9c0af8f1



More information about the ffmpeg-cvslog mailing list