Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMartin Vignali <martin.vignali@gmail.com>2016-06-26 13:42:44 +0300
committerJames Almer <jamrial@gmail.com>2016-06-29 00:21:12 +0300
commit2bdb26b4eeec8142c927645a10b7f55cae5cdcc5 (patch)
tree717af619407a35f6319e3580987561f514d8f8cb /tests
parentc0cb53cd1f91031f7d7a6f1387e9f19181cdfa3c (diff)
fate/webp : add test for lossy compression.
the result of ffmpeg decoding is binary exact with the yuv output of official decoder (dwebp) Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/fate/image.mak6
-rw-r--r--tests/ref/fate/webp-rgb-lossy-q806
-rw-r--r--tests/ref/fate/webp-rgba-lossy-q806
3 files changed, 18 insertions, 0 deletions
diff --git a/tests/fate/image.mak b/tests/fate/image.mak
index b3b37e2ada..dab982f5bc 100644
--- a/tests/fate/image.mak
+++ b/tests/fate/image.mak
@@ -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
index 0000000000..f61d75ac13
--- /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 0000000000..d2c2aa3fce
--- /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