aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-04-21 14:10:25 -0300
committerJames Almer <jamrial@gmail.com>2021-04-24 12:32:06 -0300
commita5f996de4f1db97fc91959b2f2441528673b656f (patch)
tree690cf37542f3fec8989a89f8cac93cf8619db1bd
parent119a3f7e8d637e1ada237e0b0d4eee67839a4b0a (diff)
downloadffmpeg-a5f996de4f1db97fc91959b2f2441528673b656f.tar.gz
fate: add tests for JPEG-LS PAL8
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--tests/fate/image.mak16
-rw-r--r--tests/ref/fate/jpegls-2bpc6
-rw-r--r--tests/ref/fate/jpegls-3bpc6
-rw-r--r--tests/ref/fate/jpegls-5bpc6
-rw-r--r--tests/ref/fate/jpegls-7bpc6
5 files changed, 40 insertions, 0 deletions
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