[FFmpeg-devel] [PATCH 3/3] fate: add 12bpp sample

Christophe Gisquet christophe.gisquet at gmail.com
Tue Oct 13 21:21:41 CEST 2015


Allows testing simple_idct12 correctness/bitexactness, as the sample
was generated using faani as idct.
---
 tests/fate/image.mak     | 6 ++++++
 tests/ref/fate/jpg-12bpp | 2 ++
 2 files changed, 8 insertions(+)
 create mode 100644 tests/ref/fate/jpg-12bpp

diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index 0361756..92ce60e 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -70,6 +70,12 @@ FATE_EXR-$(call DEMDEC, IMAGE2, EXR) += $(FATE_EXR)
 FATE_IMAGE += $(FATE_EXR-yes)
 fate-exr: $(FATE_EXR-yes)
 
+FATE_JPG += fate-jpg-12bpp
+fate-jpg-12bpp: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/jpg/12bpp.jpg -f rawvideo
+FATE_JPG-$(call DEMDEC, IMAGE2, MJPEG) += $(FATE_JPG)
+FATE_IMAGE += $(FATE_JPG-yes)
+fate-jpg: $(FATE_JPG-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/jpg-12bpp b/tests/ref/fate/jpg-12bpp
new file mode 100644
index 0000000..691bc5f
--- /dev/null
+++ b/tests/ref/fate/jpg-12bpp
@@ -0,0 +1,2 @@
+#tb 0: 1/25
+0,          0,          0,        1,  1496502, 0x3327493e
-- 
2.6.0



More information about the ffmpeg-devel mailing list