Hello,

in attach patch to add a new test for lossless webp
one with direct decoding argb
the second with rgb24 pix_fmt. the crc of this test is the same than the
CRC of the sample lena-rgb24 of png tests.

sample can be found here :
https://we.tl/XA18TMKjzg

and need to be put inside ./fate-suite/webp

this sample add cover for theses functions of the webp decoder :
parse_transform_predictor
parse_transform_color
apply_color_transform
apply_predictor_transform
apply_subtract_green_transform
decode_entropy_image



Martin
Jokyo Images
From f9f310cd5c1beaaf4f326a5f8a4c132e088d0a38 Mon Sep 17 00:00:00 2001
From: Martin Vignali <martin.vign...@gmail.com>
Date: Wed, 29 Jun 2016 12:41:11 +0200
Subject: [PATCH] fate/webp : add test for lossless picture to improve cover

---
 tests/fate/image.mak                        | 6 ++++++
 tests/ref/fate/webp-rgb-lena-lossless       | 6 ++++++
 tests/ref/fate/webp-rgb-lena-lossless-rgb24 | 6 ++++++
 3 files changed, 18 insertions(+)
 create mode 100644 tests/ref/fate/webp-rgb-lena-lossless
 create mode 100644 tests/ref/fate/webp-rgb-lena-lossless-rgb24

diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index dab982f..500da48 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -358,6 +358,12 @@ 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-rgb-lena-lossless
+fate-webp-rgb-lena-lossless: CMD = framecrc -i $(TARGET_SAMPLES)/webp/rgb_lena_lossless.webp
+
+FATE_WEBP += fate-webp-rgb-lena-lossless-rgb24
+fate-webp-rgb-lena-lossless-rgb24: CMD = framecrc -i $(TARGET_SAMPLES)/webp/rgb_lena_lossless.webp -pix_fmt rgb24
+
 FATE_WEBP += fate-webp-rgba-lossless
 fate-webp-rgba-lossless: CMD = framecrc -i $(TARGET_SAMPLES)/webp/rgba_lossless.webp
 
diff --git a/tests/ref/fate/webp-rgb-lena-lossless b/tests/ref/fate/webp-rgb-lena-lossless
new file mode 100644
index 0000000..c00715a
--- /dev/null
+++ b/tests/ref/fate/webp-rgb-lena-lossless
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
+0,          0,          0,        1,    65536, 0xdfcd01ae
diff --git a/tests/ref/fate/webp-rgb-lena-lossless-rgb24 b/tests/ref/fate/webp-rgb-lena-lossless-rgb24
new file mode 100644
index 0000000..7f8f550
--- /dev/null
+++ b/tests/ref/fate/webp-rgb-lena-lossless-rgb24
@@ -0,0 +1,6 @@
+#tb 0: 1/25
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 128x128
+#sar 0: 0/1
+0,          0,          0,        1,    49152, 0xe0013dee
-- 
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