fate: add gradfun filter test.
authorClément Bœsch <ubitux@gmail.com>
Sun, 2 Dec 2012 18:52:33 +0000 (19:52 +0100)
committerClément Bœsch <ubitux@gmail.com>
Tue, 4 Dec 2012 23:01:17 +0000 (00:01 +0100)
tests/fate/filter.mak
tests/ref/fate/filter-gradfun [new file with mode: 0644]

index 5f42c14..5be88e7 100644 (file)
@@ -48,6 +48,10 @@ FATE_HQDN3D += fate-filter-hqdn3d
 fate-filter-hqdn3d: CMD = framecrc -i $(SAMPLES)/smjpeg/scenwin.mjpg -vf hqdn3d -an
 FATE_FILTER-$(call ALLYES, SMJPEG_DEMUXER MJPEG_DECODER HQDN3D_FILTER) += $(FATE_HQDN3D)
 
+FATE_GRADFUN += fate-filter-gradfun
+fate-filter-gradfun: CMD = framecrc -i $(SAMPLES)/vmd/12.vmd -vf "sws_flags=+accurate_rnd+bitexact;gradfun=10:8" -an -frames:v 20
+FATE_FILTER-$(call ALLYES, VMD_DEMUXER VMDVIDEO_DECODER GRADFUN_FILTER) += $(FATE_GRADFUN)
+
 FATE_SAMPLES_AVCONV += $(FATE_FILTER-yes)
 
 #
diff --git a/tests/ref/fate/filter-gradfun b/tests/ref/fate/filter-gradfun
new file mode 100644 (file)
index 0000000..0fcfeb2
--- /dev/null
@@ -0,0 +1,21 @@
+#tb 0: 1/10
+0,          0,          0,        1,    76800, 0x441a686f
+0,          1,          1,        1,    76800, 0xfa354d07
+0,          2,          2,        1,    76800, 0x87222ea6
+0,          3,          3,        1,    76800, 0x36330279
+0,          4,          4,        1,    76800, 0x07cddd8c
+0,          5,          5,        1,    76800, 0x9c26b594
+0,          6,          6,        1,    76800, 0xf3a27e3e
+0,          7,          7,        1,    76800, 0x23df5149
+0,          8,          8,        1,    76800, 0xbc7e17e6
+0,          9,          9,        1,    76800, 0x3ab9e695
+0,         10,         10,        1,    76800, 0x793db568
+0,         11,         11,        1,    76800, 0xfd8f7a87
+0,         12,         12,        1,    76800, 0x20154d17
+0,         13,         13,        1,    76800, 0xb74c17f3
+0,         14,         14,        1,    76800, 0x9710e9e2
+0,         15,         15,        1,    76800, 0x02e1b96b
+0,         16,         16,        1,    76800, 0x580f8187
+0,         17,         17,        1,    76800, 0xb2d95790
+0,         18,         18,        1,    76800, 0x7ef121c8
+0,         19,         19,        1,    76800, 0xa30afa03