]> git.sesse.net Git - ffmpeg/commitdiff
fate/webp : add test for lossy compression.
authorMartin Vignali <martin.vignali@gmail.com>
Sun, 26 Jun 2016 10:42:44 +0000 (12:42 +0200)
committerJames Almer <jamrial@gmail.com>
Tue, 28 Jun 2016 21:21:12 +0000 (18:21 -0300)
the result of ffmpeg decoding is binary exact with the yuv output of
official decoder (dwebp)

Signed-off-by: James Almer <jamrial@gmail.com>
tests/fate/image.mak
tests/ref/fate/webp-rgb-lossy-q80 [new file with mode: 0644]
tests/ref/fate/webp-rgba-lossy-q80 [new file with mode: 0644]

index b3b37e2adaa2cfcc926de87760cf40a857054e04..dab982f5bcda37ec770f774e22d07087c6f08ae3 100644 (file)
@@ -361,6 +361,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 (file)
index 0000000..f61d75a
--- /dev/null
@@ -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 (file)
index 0000000..d2c2aa3
--- /dev/null
@@ -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