aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Vignali <martin.vignali@gmail.com>2016-06-25 21:53:23 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-06-26 21:12:33 +0200
commitbd2cec7021a0e275d4551a56d0a220ba2f9bd691 (patch)
treece7bc7fd13b702d35dad8ec31bfafac360c4b92b
parent971ee09d32a45d2ed3aae7ffe67a811a986751e2 (diff)
downloadffmpeg-bd2cec7021a0e275d4551a56d0a220ba2f9bd691.tar.gz
fate/webp : add test for webp lossless decoding (rgb and rgba)
output have been compared with official decoding tool output (dwebp) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--tests/fate/image.mak10
-rw-r--r--tests/ref/fate/webp-rgb-lossless6
-rw-r--r--tests/ref/fate/webp-rgba-lossless6
3 files changed, 22 insertions, 0 deletions
diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index abe35d91a7..b3b37e2ada 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -355,6 +355,16 @@ FATE_TIFF-$(call DEMDEC, IMAGE2, TIFF) += $(FATE_TIFF)
FATE_IMAGE += $(FATE_TIFF-yes)
fate-tiff: $(FATE_TIFF-yes)
+FATE_WEBP += fate-webp-rgb-lossless
+fate-webp-rgb-lossless: CMD = framecrc -i $(TARGET_SAMPLES)/webp/rgb_lossless.webp
+
+FATE_WEBP += fate-webp-rgba-lossless
+fate-webp-rgba-lossless: CMD = framecrc -i $(TARGET_SAMPLES)/webp/rgba_lossless.webp
+
+FATE_WEBP-$(call DEMDEC, IMAGE2, WEBP) += $(FATE_WEBP)
+FATE_IMAGE += $(FATE_WEBP-yes)
+fate-webp: $(FATE_WEBP-yes)
+
FATE_IMAGE-$(call DEMDEC, IMAGE2, XFACE) += fate-xface
fate-xface: CMD = framecrc -i $(TARGET_SAMPLES)/xface/lena.xface
diff --git a/tests/ref/fate/webp-rgb-lossless b/tests/ref/fate/webp-rgb-lossless
new file mode 100644
index 0000000000..8dbdfd6887
--- /dev/null
+++ b/tests/ref/fate/webp-rgb-lossless
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 12x8
+#sar 0: 0/1
+0, 0, 0, 1, 384, 0xe30d1b01
diff --git a/tests/ref/fate/webp-rgba-lossless b/tests/ref/fate/webp-rgba-lossless
new file mode 100644
index 0000000000..bb654ae442
--- /dev/null
+++ b/tests/ref/fate/webp-rgba-lossless
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 12x8
+#sar 0: 0/1
+0, 0, 0, 1, 384, 0xbd35e0e6