Hello, in attach a patch to add test for lossy decoding of webp.
Compare with dwebp tool, the result of ffmpeg in yuv is exactly the same than the official decoder. (trouble report in my previous email, concern rgb/rgba output (because the filtering yuv420 -> yuv444 of libwebp is not implemented). Samples can be found here : https://we.tl/QKy6uyDJpx and need to be put in ./fate-suite/webp/ The patch need to be apply after the previous one (call : 0001-fate-webp-add-test-for-webp-lossless-decoding-rgb-an.patch") Martin
From cfdc3a559207308840f96e201b4190903c4bcab2 Mon Sep 17 00:00:00 2001 From: Martin Vignali <martin.vign...@gmail.com> Date: Sun, 26 Jun 2016 12:42:44 +0200 Subject: [PATCH 2/2] fate/webp : add test for lossy compression. the result of ffmpeg decoding is binary exact with the yuv output of official decoder (dwbep) --- tests/fate/image.mak | 6 ++++++ tests/ref/fate/webp-rgb-lossy-q80 | 6 ++++++ tests/ref/fate/webp-rgba-lossy-q80 | 6 ++++++ 3 files changed, 18 insertions(+) create mode 100644 tests/ref/fate/webp-rgb-lossy-q80 create mode 100644 tests/ref/fate/webp-rgba-lossy-q80 diff --git a/tests/fate/image.mak b/tests/fate/image.mak index 2087c10..77fd626 100644 --- a/tests/fate/image.mak +++ b/tests/fate/image.mak @@ -253,6 +253,12 @@ fate-webp-rgb-lossless: CMD = framecrc -i $(TARGET_SAMPLES)/webp/rgb_lossless.we FATE_WEBP += fate-webp-rgba-lossless fate-webp-rgba-lossless: CMD = framecrc -i $(TARGET_SAMPLES)/webp/rgba_lossless.webp +FATE_WEBP += fate-webp-rgb-lossy-q80 +fate-webp-rgb-lossy-q80: CMD = framecrc -i $(TARGET_SAMPLES)/webp/rgb_q80.webp + +FATE_WEBP += fate-webp-rgba-lossy-q80 +fate-webp-rgba-lossy-q80: CMD = framecrc -i $(TARGET_SAMPLES)/webp/rgba_q80.webp + FATE_WEBP-$(call DEMDEC, IMAGE2, WEBP) += $(FATE_WEBP) FATE_IMAGE += $(FATE_WEBP-yes) fate-webp: $(FATE_WEBP-yes) diff --git a/tests/ref/fate/webp-rgb-lossy-q80 b/tests/ref/fate/webp-rgb-lossy-q80 new file mode 100644 index 0000000..f61d75a --- /dev/null +++ b/tests/ref/fate/webp-rgb-lossy-q80 @@ -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, 144, 0xf38b5307 diff --git a/tests/ref/fate/webp-rgba-lossy-q80 b/tests/ref/fate/webp-rgba-lossy-q80 new file mode 100644 index 0000000..d2c2aa3 --- /dev/null +++ b/tests/ref/fate/webp-rgba-lossy-q80 @@ -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, 240, 0xc56c96c3 -- 1.9.3 (Apple Git-50)
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel