aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2013-12-11 10:40:13 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2013-12-17 09:34:08 +0100
commitcfb4ee30977732674d30c20e93a761c33c743972 (patch)
tree618ecb1996633095ee25c1c3f11883423a5023bb
parenteddff165b4cdc1f064245a4bad6f4265581c12b1 (diff)
downloadffmpeg-cfb4ee30977732674d30c20e93a761c33c743972.tar.gz
fate: add a pngparser test
-rw-r--r--tests/fate/image.mak3
-rw-r--r--tests/ref/fate/pngparser5
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index f7cc32594c..61d85cda41 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -4,6 +4,9 @@ fate-dpx: CMD = framecrc -i $(TARGET_SAMPLES)/dpx/lighthouse_rgb48.dpx
FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, PICTOR) += fate-pictor
fate-pictor: CMD = framecrc -i $(TARGET_SAMPLES)/pictor/MFISH.PIC -pix_fmt rgb24
+FATE_SAMPLES_AVCONV-$(call PARSERDEMDEC, PNG, IMAGE2PIPE, PNG) += fate-pngparser
+fate-pngparser: CMD = framecrc -f image2pipe -i $(TARGET_SAMPLES)/png1/libav_4x_concat.png
+
FATE_SAMPLES_AVCONV-$(call DEMDEC, IMAGE2, PTX) += fate-ptx
fate-ptx: CMD = framecrc -i $(TARGET_SAMPLES)/ptx/_113kw_pic.ptx -pix_fmt rgb24
diff --git a/tests/ref/fate/pngparser b/tests/ref/fate/pngparser
new file mode 100644
index 0000000000..b481dcd392
--- /dev/null
+++ b/tests/ref/fate/pngparser
@@ -0,0 +1,5 @@
+#tb 0: 1/25
+0, 0, 0, 1, 271040, 0xffe62f5f
+0, 1, 1, 1, 271040, 0xcf502f5f
+0, 2, 2, 1, 271040, 0x72612f5f
+0, 3, 3, 1, 271040, 0x41cb2f5f