From 7cec12748a37026504d874b812d4cfd3e64034fe Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 13 Mar 2013 11:03:08 +0100 Subject: FATE: add a test for the gradfun filter --- tests/fate/filter.mak | 9 +++++++- tests/ref/fate/filter-gradfun | 51 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 tests/ref/fate/filter-gradfun (limited to 'tests') diff --git a/tests/fate/filter.mak b/tests/fate/filter.mak index 398ecfa855..84ee89a7cc 100644 --- a/tests/fate/filter.mak +++ b/tests/fate/filter.mak @@ -34,6 +34,9 @@ fate-filter-delogo: CMD = framecrc -i $(SAMPLES)/real/rv30.rm -vf delogo=show=0: FATE_FILTER-$(call FILTERDEMDEC, DELOGO, RM, RV30) += fate-filter-delogo +FATE_FILTER_VSYNTH-$(CONFIG_GRADFUN_FILTER) += fate-filter-gradfun +fate-filter-gradfun: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf gradfun + FATE_YADIF += fate-filter-yadif-mode0 fate-filter-yadif-mode0: CMD = framecrc -flags bitexact -idct simple -i $(SAMPLES)/mpeg2/mpeg2_field_encoding.ts -vf yadif=0 @@ -42,5 +45,9 @@ fate-filter-yadif-mode1: CMD = framecrc -flags bitexact -idct simple -i $(SAMPLE FATE_FILTER-$(call FILTERDEMDEC, YADIF, MPEGTS, MPEG2VIDEO) += $(FATE_YADIF) +$(FATE_FILTER_VSYNTH-yes): tests/vsynth1/00.pgm +$(FATE_FILTER_VSYNTH-yes): SRC = $(TARGET_PATH)/tests/vsynth1/%02d.pgm +FATE_AVCONV-$(call DEMDEC, IMAGE2, PGMYUV) += $(FATE_FILTER_VSYNTH-yes) + FATE_SAMPLES_AVCONV += $(FATE_FILTER-yes) -fate-filter: $(FATE_FILTER-yes) +fate-filter: $(FATE_FILTER-yes) $(FATE_FILTER_VSYNTH-yes) diff --git a/tests/ref/fate/filter-gradfun b/tests/ref/fate/filter-gradfun new file mode 100644 index 0000000000..794fae93e0 --- /dev/null +++ b/tests/ref/fate/filter-gradfun @@ -0,0 +1,51 @@ +#tb 0: 1/25 +0, 0, 0, 1, 152064, 0xaebf898f +0, 1, 1, 1, 152064, 0x217b6560 +0, 2, 2, 1, 152064, 0x0269f62d +0, 3, 3, 1, 152064, 0x12168087 +0, 4, 4, 1, 152064, 0x42f9b5fb +0, 5, 5, 1, 152064, 0xa653a8b3 +0, 6, 6, 1, 152064, 0x2e317bc3 +0, 7, 7, 1, 152064, 0xf3c28b63 +0, 8, 8, 1, 152064, 0x12e57fce +0, 9, 9, 1, 152064, 0xeac238dd +0, 10, 10, 1, 152064, 0x8fe74772 +0, 11, 11, 1, 152064, 0x982afc9c +0, 12, 12, 1, 152064, 0xd82ead51 +0, 13, 13, 1, 152064, 0xf83ca211 +0, 14, 14, 1, 152064, 0xc01f8de2 +0, 15, 15, 1, 152064, 0x7ec60ec6 +0, 16, 16, 1, 152064, 0x1beb4dd3 +0, 17, 17, 1, 152064, 0x5a513899 +0, 18, 18, 1, 152064, 0x8c766a7b +0, 19, 19, 1, 152064, 0x8bcddbb0 +0, 20, 20, 1, 152064, 0x01f6f558 +0, 21, 21, 1, 152064, 0xac7e240f +0, 22, 22, 1, 152064, 0xe8811d38 +0, 23, 23, 1, 152064, 0x4ea268c9 +0, 24, 24, 1, 152064, 0xadc5f950 +0, 25, 25, 1, 152064, 0xdbf498fb +0, 26, 26, 1, 152064, 0x1b999678 +0, 27, 27, 1, 152064, 0x085dd810 +0, 28, 28, 1, 152064, 0x4665a44f +0, 29, 29, 1, 152064, 0x674764cf +0, 30, 30, 1, 152064, 0x65e96a72 +0, 31, 31, 1, 152064, 0x44e0c539 +0, 32, 32, 1, 152064, 0xb124fc9e +0, 33, 33, 1, 152064, 0x5cff79e3 +0, 34, 34, 1, 152064, 0x7dd94359 +0, 35, 35, 1, 152064, 0x3ec294b6 +0, 36, 36, 1, 152064, 0x675d3767 +0, 37, 37, 1, 152064, 0x9efa01cb +0, 38, 38, 1, 152064, 0x321058d2 +0, 39, 39, 1, 152064, 0xe0d04e9c +0, 40, 40, 1, 152064, 0xa4dd58d4 +0, 41, 41, 1, 152064, 0x4cc19dc5 +0, 42, 42, 1, 152064, 0x30a1bf77 +0, 43, 43, 1, 152064, 0x2c9d20f2 +0, 44, 44, 1, 152064, 0x55cb0447 +0, 45, 45, 1, 152064, 0x4daa7e4f +0, 46, 46, 1, 152064, 0x2a4f53c7 +0, 47, 47, 1, 152064, 0x9fb8c583 +0, 48, 48, 1, 152064, 0x072eb401 +0, 49, 49, 1, 152064, 0xa203d8b7 -- cgit v1.2.3 From a222997650eb5e158b600c5d7341e236866d6228 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 13 Mar 2013 11:03:08 +0100 Subject: FATE: add a test for the boxblur filter --- tests/fate/filter.mak | 3 +++ tests/ref/fate/filter-boxblur | 51 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 tests/ref/fate/filter-boxblur (limited to 'tests') diff --git a/tests/fate/filter.mak b/tests/fate/filter.mak index 84ee89a7cc..d3d401c14f 100644 --- a/tests/fate/filter.mak +++ b/tests/fate/filter.mak @@ -30,6 +30,9 @@ fate-filter-asyncts: CMD = pcm -analyzeduration 10000000 -i $(SRC) -af asyncts fate-filter-asyncts: CMP = oneoff fate-filter-asyncts: REF = $(SAMPLES)/nellymoser/nellymoser-discont.pcm +FATE_FILTER_VSYNTH-$(CONFIG_BOXBLUR_FILTER) += fate-filter-boxblur +fate-filter-boxblur: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf boxblur=2:1 + fate-filter-delogo: CMD = framecrc -i $(SAMPLES)/real/rv30.rm -vf delogo=show=0:x=290:y=25:w=26:h=16 -an FATE_FILTER-$(call FILTERDEMDEC, DELOGO, RM, RV30) += fate-filter-delogo diff --git a/tests/ref/fate/filter-boxblur b/tests/ref/fate/filter-boxblur new file mode 100644 index 0000000000..acb2beb022 --- /dev/null +++ b/tests/ref/fate/filter-boxblur @@ -0,0 +1,51 @@ +#tb 0: 1/25 +0, 0, 0, 1, 152064, 0x113489f8 +0, 1, 1, 1, 152064, 0x650a64ca +0, 2, 2, 1, 152064, 0x29ecf6b1 +0, 3, 3, 1, 152064, 0x5cb98169 +0, 4, 4, 1, 152064, 0x4f46b6d7 +0, 5, 5, 1, 152064, 0x793ba919 +0, 6, 6, 1, 152064, 0x6caf7c14 +0, 7, 7, 1, 152064, 0xca638b2e +0, 8, 8, 1, 152064, 0xf6df803d +0, 9, 9, 1, 152064, 0x907b386f +0, 10, 10, 1, 152064, 0xbb8d47f9 +0, 11, 11, 1, 152064, 0x17befd28 +0, 12, 12, 1, 152064, 0xf29eae1e +0, 13, 13, 1, 152064, 0xb08ba1e6 +0, 14, 14, 1, 152064, 0x39948df7 +0, 15, 15, 1, 152064, 0x841d0e7e +0, 16, 16, 1, 152064, 0x21d64dd6 +0, 17, 17, 1, 152064, 0x18af38e9 +0, 18, 18, 1, 152064, 0x1f946a26 +0, 19, 19, 1, 152064, 0x0d9cdc4e +0, 20, 20, 1, 152064, 0xaf2af54d +0, 21, 21, 1, 152064, 0x09e724e1 +0, 22, 22, 1, 152064, 0xff7d1e4b +0, 23, 23, 1, 152064, 0xd49d68ad +0, 24, 24, 1, 152064, 0x7ea4f96b +0, 25, 25, 1, 152064, 0xd2f698b9 +0, 26, 26, 1, 152064, 0xc2a696ac +0, 27, 27, 1, 152064, 0x1e8ed7b4 +0, 28, 28, 1, 152064, 0x980ba498 +0, 29, 29, 1, 152064, 0x47c364f2 +0, 30, 30, 1, 152064, 0x1a196ada +0, 31, 31, 1, 152064, 0x4847c564 +0, 32, 32, 1, 152064, 0xa959fc15 +0, 33, 33, 1, 152064, 0x7d1a79d3 +0, 34, 34, 1, 152064, 0xae7e438d +0, 35, 35, 1, 152064, 0xc32794b4 +0, 36, 36, 1, 152064, 0x6ef43744 +0, 37, 37, 1, 152064, 0xa06a01d0 +0, 38, 38, 1, 152064, 0xc94b5847 +0, 39, 39, 1, 152064, 0xb7514f04 +0, 40, 40, 1, 152064, 0xf0c959e8 +0, 41, 41, 1, 152064, 0xe6439e5e +0, 42, 42, 1, 152064, 0xd347bf8d +0, 43, 43, 1, 152064, 0x40822107 +0, 44, 44, 1, 152064, 0xe0ad044a +0, 45, 45, 1, 152064, 0x05f77e73 +0, 46, 46, 1, 152064, 0xbeaa536d +0, 47, 47, 1, 152064, 0xb0edc576 +0, 48, 48, 1, 152064, 0x35fcb4fa +0, 49, 49, 1, 152064, 0x8d9ad8fa -- cgit v1.2.3 From feb4922b257e4a98d52d2ac47cbb2b3ba8e050e8 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 13 Mar 2013 11:03:08 +0100 Subject: FATE: add a test for the drawbox filter --- tests/fate/filter.mak | 3 +++ tests/ref/fate/filter-drawbox | 51 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 tests/ref/fate/filter-drawbox (limited to 'tests') diff --git a/tests/fate/filter.mak b/tests/fate/filter.mak index d3d401c14f..66f406d746 100644 --- a/tests/fate/filter.mak +++ b/tests/fate/filter.mak @@ -37,6 +37,9 @@ fate-filter-delogo: CMD = framecrc -i $(SAMPLES)/real/rv30.rm -vf delogo=show=0: FATE_FILTER-$(call FILTERDEMDEC, DELOGO, RM, RV30) += fate-filter-delogo +FATE_FILTER_VSYNTH-$(CONFIG_DRAWBOX_FILTER) += fate-filter-drawbox +fate-filter-drawbox: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf drawbox=10:20:200:60:red@0.5 + FATE_FILTER_VSYNTH-$(CONFIG_GRADFUN_FILTER) += fate-filter-gradfun fate-filter-gradfun: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf gradfun diff --git a/tests/ref/fate/filter-drawbox b/tests/ref/fate/filter-drawbox new file mode 100644 index 0000000000..869b9f32b0 --- /dev/null +++ b/tests/ref/fate/filter-drawbox @@ -0,0 +1,51 @@ +#tb 0: 1/25 +0, 0, 0, 1, 152064, 0x7eee5ca3 +0, 1, 1, 1, 152064, 0x61125759 +0, 2, 2, 1, 152064, 0x2a64f47f +0, 3, 3, 1, 152064, 0xc1089594 +0, 4, 4, 1, 152064, 0xd9e18830 +0, 5, 5, 1, 152064, 0xeb135e03 +0, 6, 6, 1, 152064, 0x6a5b40d7 +0, 7, 7, 1, 152064, 0x0a356a16 +0, 8, 8, 1, 152064, 0xfc1d7858 +0, 9, 9, 1, 152064, 0xa04bfeb8 +0, 10, 10, 1, 152064, 0x2d952ef0 +0, 11, 11, 1, 152064, 0x7f360233 +0, 12, 12, 1, 152064, 0xdd2bd142 +0, 13, 13, 1, 152064, 0xd231ad4a +0, 14, 14, 1, 152064, 0x0543400e +0, 15, 15, 1, 152064, 0x8252be2b +0, 16, 16, 1, 152064, 0xd9f702be +0, 17, 17, 1, 152064, 0xed5cf787 +0, 18, 18, 1, 152064, 0xf9472f8e +0, 19, 19, 1, 152064, 0x89e4a60b +0, 20, 20, 1, 152064, 0x1f12c1f5 +0, 21, 21, 1, 152064, 0x76eaf390 +0, 22, 22, 1, 152064, 0x60b5eba3 +0, 23, 23, 1, 152064, 0xf09e348c +0, 24, 24, 1, 152064, 0x1afabf8a +0, 25, 25, 1, 152064, 0xd16c558e +0, 26, 26, 1, 152064, 0x78634796 +0, 27, 27, 1, 152064, 0xcd13b1e3 +0, 28, 28, 1, 152064, 0x59c2c6e5 +0, 29, 29, 1, 152064, 0x265e6beb +0, 30, 30, 1, 152064, 0x82c656af +0, 31, 31, 1, 152064, 0x919e923c +0, 32, 32, 1, 152064, 0xc428fc15 +0, 33, 33, 1, 152064, 0x488760cd +0, 34, 34, 1, 152064, 0x0a080c93 +0, 35, 35, 1, 152064, 0xaab649e6 +0, 36, 36, 1, 152064, 0x9b34edaa +0, 37, 37, 1, 152064, 0x44e12816 +0, 38, 38, 1, 152064, 0x03777927 +0, 39, 39, 1, 152064, 0x6644573e +0, 40, 40, 1, 152064, 0x18574df7 +0, 41, 41, 1, 152064, 0x5dce82f6 +0, 42, 42, 1, 152064, 0xb8be9205 +0, 43, 43, 1, 152064, 0xb927eacb +0, 44, 44, 1, 152064, 0x303ec874 +0, 45, 45, 1, 152064, 0x05eb3c6f +0, 46, 46, 1, 152064, 0x74a614d6 +0, 47, 47, 1, 152064, 0x6d078969 +0, 48, 48, 1, 152064, 0xe57a7ae0 +0, 49, 49, 1, 152064, 0xd6fca9ec -- cgit v1.2.3 From 1a6d4bd7b60761bd7d955011ce7df4dd6b87b497 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 13 Mar 2013 11:03:08 +0100 Subject: FATE: add a test for the fade filter --- tests/fate/filter.mak | 3 +++ tests/ref/fate/filter-fade | 51 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 tests/ref/fate/filter-fade (limited to 'tests') diff --git a/tests/fate/filter.mak b/tests/fate/filter.mak index 66f406d746..4cba0981b1 100644 --- a/tests/fate/filter.mak +++ b/tests/fate/filter.mak @@ -40,6 +40,9 @@ FATE_FILTER-$(call FILTERDEMDEC, DELOGO, RM, RV30) += fate-filter-delogo FATE_FILTER_VSYNTH-$(CONFIG_DRAWBOX_FILTER) += fate-filter-drawbox fate-filter-drawbox: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf drawbox=10:20:200:60:red@0.5 +FATE_FILTER_VSYNTH-$(CONFIG_FADE_FILTER) += fate-filter-fade +fate-filter-fade: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf fade=in:0:25,fade=out:25:25 + FATE_FILTER_VSYNTH-$(CONFIG_GRADFUN_FILTER) += fate-filter-gradfun fate-filter-gradfun: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf gradfun diff --git a/tests/ref/fate/filter-fade b/tests/ref/fate/filter-fade new file mode 100644 index 0000000000..131b614b0c --- /dev/null +++ b/tests/ref/fate/filter-fade @@ -0,0 +1,51 @@ +#tb 0: 1/25 +0, 0, 0, 1, 152064, 0xeb8105cd +0, 1, 1, 1, 152064, 0x0bc0a27d +0, 2, 2, 1, 152064, 0x9dcd3a04 +0, 3, 3, 1, 152064, 0xecd9e8ec +0, 4, 4, 1, 152064, 0xdcc09bca +0, 5, 5, 1, 152064, 0xbf1537ad +0, 6, 6, 1, 152064, 0xf32214db +0, 7, 7, 1, 152064, 0x9584ce5e +0, 8, 8, 1, 152064, 0xbaa930e7 +0, 9, 9, 1, 152064, 0xce411a6c +0, 10, 10, 1, 152064, 0xdbc2c004 +0, 11, 11, 1, 152064, 0x635a55df +0, 12, 12, 1, 152064, 0x49d5807f +0, 13, 13, 1, 152064, 0xd18734a6 +0, 14, 14, 1, 152064, 0xf9d3581f +0, 15, 15, 1, 152064, 0x423dbdf7 +0, 16, 16, 1, 152064, 0x0c52a4a2 +0, 17, 17, 1, 152064, 0xf7a6a90e +0, 18, 18, 1, 152064, 0x472441c2 +0, 19, 19, 1, 152064, 0x9470c09a +0, 20, 20, 1, 152064, 0xce7da1a3 +0, 21, 21, 1, 152064, 0xdb01a0c9 +0, 22, 22, 1, 152064, 0x052e74cb +0, 23, 23, 1, 152064, 0xab0eab85 +0, 24, 24, 1, 152064, 0x069c1d15 +0, 25, 25, 1, 152064, 0x95579936 +0, 26, 26, 1, 152064, 0x292dc6d4 +0, 27, 27, 1, 152064, 0x951d382d +0, 28, 28, 1, 152064, 0x9ce23e7d +0, 29, 29, 1, 152064, 0x5ceb17dd +0, 30, 30, 1, 152064, 0xe0835003 +0, 31, 31, 1, 152064, 0x7b8a03ba +0, 32, 32, 1, 152064, 0x1531b18c +0, 33, 33, 1, 152064, 0xa4a2ee9a +0, 34, 34, 1, 152064, 0xa5b0e442 +0, 35, 35, 1, 152064, 0x47e0554d +0, 36, 36, 1, 152064, 0x9443792e +0, 37, 37, 1, 152064, 0x1a3316ce +0, 38, 38, 1, 152064, 0xbe8088d7 +0, 39, 39, 1, 152064, 0xd3013824 +0, 40, 40, 1, 152064, 0x342f2f5d +0, 41, 41, 1, 152064, 0x638a816f +0, 42, 42, 1, 152064, 0x0cf11a0f +0, 43, 43, 1, 152064, 0xc4d87159 +0, 44, 44, 1, 152064, 0xa5c36b72 +0, 45, 45, 1, 152064, 0x17a9970d +0, 46, 46, 1, 152064, 0x5479e51c +0, 47, 47, 1, 152064, 0x2ae4382a +0, 48, 48, 1, 152064, 0xab7097a6 +0, 49, 49, 1, 152064, 0xbc97d4bb -- cgit v1.2.3