[FFmpeg-devel] [PATCH] fate: add curves filter test.

Clément Bœsch ubitux at gmail.com
Tue Mar 19 15:27:57 CET 2013


On Tue, Mar 19, 2013 at 03:25:43PM +0100, Clément Bœsch wrote:
> ---
>  tests/fate/filter.mak        | 3 +++
>  tests/ref/fate/filter-curves | 6 ++++++
>  2 files changed, 9 insertions(+)
>  create mode 100644 tests/ref/fate/filter-curves
> 

Add same with a perms filter in front of it to cover the direct path.

-- 
Clément B.
-------------- next part --------------
From f49fab45f980c57319e0dad69646270e77399086 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cl=C3=A9ment=20B=C5=93sch?= <ubitux at gmail.com>
Date: Tue, 19 Mar 2013 15:24:15 +0100
Subject: [PATCH] fate: add curves filter test.

---
 tests/fate/filter.mak        | 3 +++
 tests/ref/fate/filter-curves | 6 ++++++
 2 files changed, 9 insertions(+)
 create mode 100644 tests/ref/fate/filter-curves

diff --git a/tests/fate/filter.mak b/tests/fate/filter.mak
index 74d7d48..cd42dbb 100644
--- a/tests/fate/filter.mak
+++ b/tests/fate/filter.mak
@@ -48,6 +48,9 @@ FATE_HQDN3D += fate-filter-hqdn3d
 fate-filter-hqdn3d: CMD = framecrc -idct simple -i $(SAMPLES)/smjpeg/scenwin.mjpg -vf perms=random,hqdn3d -an
 FATE_FILTER-$(call ALLYES, SMJPEG_DEMUXER MJPEG_DECODER PERMS_FILTER HQDN3D_FILTER) += $(FATE_HQDN3D)
 
+fate-filter-curves: CMD = framecrc -i $(SAMPLES)/utvideo/utvideo_rgb_median.avi -vf "perms=random,curves=r=0/0.11 at .42/.51 at 1/0.95:g=0.50/0.48:b=0/0.22 at .49/.44 at 1/0.8"
+FATE_FILTER-$(call ALLYES, UTVIDEO_DECODER AVI_DEMUXER PERMS_FILTER CURVES_FILTER) += fate-filter-curves
+
 FATE_GRADFUN += fate-filter-gradfun
 fate-filter-gradfun: CMD = framecrc -i $(SAMPLES)/vmd/12.vmd -vf "sws_flags=+accurate_rnd+bitexact;format=gray,perms=random,gradfun=10:8" -an -frames:v 20
 FATE_FILTER-$(call ALLYES, VMD_DEMUXER VMDVIDEO_DECODER FORMAT_FILTER PERMS_FILTER GRADFUN_FILTER) += $(FATE_GRADFUN)
diff --git a/tests/ref/fate/filter-curves b/tests/ref/fate/filter-curves
new file mode 100644
index 0000000..a96f0ee
--- /dev/null
+++ b/tests/ref/fate/filter-curves
@@ -0,0 +1,6 @@
+#tb 0: 1001/30000
+0,          0,          0,        1,   921600, 0xcf426780
+0,          1,          1,        1,   921600, 0x7642892d
+0,          2,          2,        1,   921600, 0x13c1ab7e
+0,          3,          3,        1,   921600, 0x3eca04bf
+0,          4,          4,        1,   921600, 0x61539162
-- 
1.8.2

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130319/32d49c42/attachment.asc>


More information about the ffmpeg-devel mailing list