Hello,

In attach a patch to add a fate test for WebP lossless rgb

Sample can be found here : https://we.tl/dmPsitbwXK

and need to be put inside ./fate-suite/webp (the webp folder doesn't exists)

to test :
make fate-webp SAMPLES=fate-suite/


I doesn't make fate test, for lossy rgb/rgba, because the actual default
output of ffmpeg
have a lower image quality than the official decoder (google dwebp) on my
samples

for lossless rgba, i doesn't make fate test, because the alpha value seems
to not be the right value



Martin
From 414cfa9f25e6246b8835922e9250578b9ca5a004 Mon Sep 17 00:00:00 2001
From: Martin Vignali <martin.vign...@gmail.com>
Date: Sat, 25 Jun 2016 21:34:43 +0200
Subject: [PATCH] fate/webp : add test for webp rgb lossless decoding

the ffmpeg output have been compared to official webp decoding tool output (dwebp)
---
 tests/fate/image.mak             | 7 +++++++
 tests/ref/fate/webp-rgb-lossless | 6 ++++++
 2 files changed, 13 insertions(+)
 create mode 100644 tests/ref/fate/webp-rgb-lossless

diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index a67c07f..00a614a 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -247,6 +247,13 @@ 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-$(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 0000000..8dbdfd6
--- /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
-- 
1.9.3 (Apple Git-50)

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to