2016-06-25 21:52 GMT+02:00 Martin Vignali <martin.vign...@gmail.com>:

>
>
> 2016-06-25 21:47 GMT+02:00 James Almer <jamr...@gmail.com>:
>
>> On 6/25/2016 4:43 PM, Martin Vignali wrote:
>> > 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
>>
>> This is a bug and should be addressed, then. Lossless should mean
>> lossless.
>> Can you fix it, or open a ticket on trac with a testcase?
>>
>>
> Sorry, in fact rgba lossless is ok (my mistake)
>
> i will open a ticket on trac for lossy
>
> and i will make another patch for fate for rgb and rgba lossless webP
>
> Martin
>
>

New patch in attach, with rgb, and rgba lossless tests :
samples can be found here : https://we.tl/98mxCyIkhv

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

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


Martin
From 9ec694ad16a680650c8618226c516a6d4ba9889c Mon Sep 17 00:00:00 2001
From: Martin Vignali <martin.vign...@gmail.com>
Date: Sat, 25 Jun 2016 21:53:23 +0200
Subject: [PATCH] fate/webp : add test for webp lossless decoding (rgb and
 rgba)

output have been compared with official decoding tool output (dwebp)
---
 tests/fate/image.mak              | 10 ++++++++++
 tests/ref/fate/webp-rgb-lossless  |  6 ++++++
 tests/ref/fate/webp-rgba-lossless |  6 ++++++
 3 files changed, 22 insertions(+)
 create mode 100644 tests/ref/fate/webp-rgb-lossless
 create mode 100644 tests/ref/fate/webp-rgba-lossless

diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index a67c07f..2087c10 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -247,6 +247,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 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
diff --git a/tests/ref/fate/webp-rgba-lossless b/tests/ref/fate/webp-rgba-lossless
new file mode 100644
index 0000000..bb654ae
--- /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
-- 
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