diff mbox series

[FFmpeg-devel,1/2] fate: add tests for JPEG-LS PAL8

Message ID 20210421174055.65029-1-jamrial@gmail.com
State Accepted
Commit a5f996de4f1db97fc91959b2f2441528673b656f
Headers show
Series [FFmpeg-devel,1/2] fate: add tests for JPEG-LS PAL8
Related show

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate fail Make fate failed
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate warning Make fate failed

Commit Message

James Almer April 21, 2021, 5:40 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
The samples are in https://trac.ffmpeg.org/ticket/3933

I'm forcing rgb24 as output because a simple ffmpeg -i 128.jls 128.png
results in the alpha channel covering the entire PAL8 output image. I don't
know why this happens.

Will upload the samples before pushing.

 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(+)
 create mode 100644 tests/ref/fate/jpegls-2bpc
 create mode 100644 tests/ref/fate/jpegls-3bpc
 create mode 100644 tests/ref/fate/jpegls-5bpc
 create mode 100644 tests/ref/fate/jpegls-7bpc
diff mbox series

Patch

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