From ad85e8d9a5bb739298619cd5342aeafd0ff8f4fc Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 13 Mar 2013 11:03:08 +0100 Subject: [PATCH 1/4] FATE: add a test for the unsharp filter --- tests/fate/filter.mak | 3 +++ tests/ref/fate/filter-unsharp | 51 +++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 tests/ref/fate/filter-unsharp diff --git a/tests/fate/filter.mak b/tests/fate/filter.mak index 4cba0981b1..3c6bb7b0fc 100644 --- a/tests/fate/filter.mak +++ b/tests/fate/filter.mak @@ -46,6 +46,9 @@ fate-filter-fade: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf fade=in:0:25,fade=out FATE_FILTER_VSYNTH-$(CONFIG_GRADFUN_FILTER) += fate-filter-gradfun fate-filter-gradfun: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf gradfun +FATE_FILTER_VSYNTH-$(CONFIG_UNSHARP_FILTER) += fate-filter-unsharp +fate-filter-unsharp: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf unsharp + 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 diff --git a/tests/ref/fate/filter-unsharp b/tests/ref/fate/filter-unsharp new file mode 100644 index 0000000000..5dcf40fdc4 --- /dev/null +++ b/tests/ref/fate/filter-unsharp @@ -0,0 +1,51 @@ +#tb 0: 1/25 +0, 0, 0, 1, 152064, 0x19a94798 +0, 1, 1, 1, 152064, 0xc88b24f4 +0, 2, 2, 1, 152064, 0xd027b44b +0, 3, 3, 1, 152064, 0xa9fb3e54 +0, 4, 4, 1, 152064, 0x2991747d +0, 5, 5, 1, 152064, 0x1dc267fc +0, 6, 6, 1, 152064, 0xe9063293 +0, 7, 7, 1, 152064, 0xc23e41a4 +0, 8, 8, 1, 152064, 0xaa433dc5 +0, 9, 9, 1, 152064, 0x22b0f0a3 +0, 10, 10, 1, 152064, 0x796d08d8 +0, 11, 11, 1, 152064, 0xa2babd6b +0, 12, 12, 1, 152064, 0x531e6a62 +0, 13, 13, 1, 152064, 0xc8fa5b9d +0, 14, 14, 1, 152064, 0x33e54ae8 +0, 15, 15, 1, 152064, 0x86dfd0b8 +0, 16, 16, 1, 152064, 0x101f1170 +0, 17, 17, 1, 152064, 0x230eef00 +0, 18, 18, 1, 152064, 0xa5ee1c5e +0, 19, 19, 1, 152064, 0x241893c6 +0, 20, 20, 1, 152064, 0x86a0a883 +0, 21, 21, 1, 152064, 0x12b4d8f7 +0, 22, 22, 1, 152064, 0xb220d497 +0, 23, 23, 1, 152064, 0xbaea200e +0, 24, 24, 1, 152064, 0x6d96b7f3 +0, 25, 25, 1, 152064, 0xc70d4ebb +0, 26, 26, 1, 152064, 0x20df50af +0, 27, 27, 1, 152064, 0xfce89174 +0, 28, 28, 1, 152064, 0x74be5c8e +0, 29, 29, 1, 152064, 0x51f419a6 +0, 30, 30, 1, 152064, 0x790621e7 +0, 31, 31, 1, 152064, 0x37387da2 +0, 32, 32, 1, 152064, 0x8228baa4 +0, 33, 33, 1, 152064, 0xdd2a42b7 +0, 34, 34, 1, 152064, 0xa28bfc63 +0, 35, 35, 1, 152064, 0xe8284337 +0, 36, 36, 1, 152064, 0xb1dae9fe +0, 37, 37, 1, 152064, 0x0378c0af +0, 38, 38, 1, 152064, 0x79c514d4 +0, 39, 39, 1, 152064, 0x043e0347 +0, 40, 40, 1, 152064, 0x4d11131b +0, 41, 41, 1, 152064, 0xb2a05924 +0, 42, 42, 1, 152064, 0xd0097464 +0, 43, 43, 1, 152064, 0x32dfd8c0 +0, 44, 44, 1, 152064, 0xd9ecbf03 +0, 45, 45, 1, 152064, 0x8dcc403f +0, 46, 46, 1, 152064, 0x95e81af7 +0, 47, 47, 1, 152064, 0xb8018b25 +0, 48, 48, 1, 152064, 0xeecf7281 +0, 49, 49, 1, 152064, 0x23e49602 From 0bdbd85e47f2a50619e6a371c226e77f39cd606d Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 13 Mar 2013 11:03:08 +0100 Subject: [PATCH 2/4] FATE: add a test for the transpose filter --- tests/fate/filter.mak | 3 ++ tests/ref/fate/filter-transpose | 51 +++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 tests/ref/fate/filter-transpose diff --git a/tests/fate/filter.mak b/tests/fate/filter.mak index 3c6bb7b0fc..ab84111dc6 100644 --- a/tests/fate/filter.mak +++ b/tests/fate/filter.mak @@ -46,6 +46,9 @@ fate-filter-fade: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf fade=in:0:25,fade=out FATE_FILTER_VSYNTH-$(CONFIG_GRADFUN_FILTER) += fate-filter-gradfun fate-filter-gradfun: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf gradfun +FATE_FILTER_VSYNTH-$(CONFIG_TRANSPOSE_FILTER) += fate-filter-transpose +fate-filter-transpose: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf transpose + FATE_FILTER_VSYNTH-$(CONFIG_UNSHARP_FILTER) += fate-filter-unsharp fate-filter-unsharp: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf unsharp diff --git a/tests/ref/fate/filter-transpose b/tests/ref/fate/filter-transpose new file mode 100644 index 0000000000..0f234230f5 --- /dev/null +++ b/tests/ref/fate/filter-transpose @@ -0,0 +1,51 @@ +#tb 0: 1/25 +0, 0, 0, 1, 152064, 0xab5889ef +0, 1, 1, 1, 152064, 0x898b6551 +0, 2, 2, 1, 152064, 0x231bf64a +0, 3, 3, 1, 152064, 0x0b8c80b0 +0, 4, 4, 1, 152064, 0x8b3cb652 +0, 5, 5, 1, 152064, 0x0100a8e6 +0, 6, 6, 1, 152064, 0x55df7c23 +0, 7, 7, 1, 152064, 0x91bd8bac +0, 8, 8, 1, 152064, 0xf5508026 +0, 9, 9, 1, 152064, 0xa7ec3915 +0, 10, 10, 1, 152064, 0x4e304760 +0, 11, 11, 1, 152064, 0x98ccfcd5 +0, 12, 12, 1, 152064, 0x00edad61 +0, 13, 13, 1, 152064, 0x01a0a223 +0, 14, 14, 1, 152064, 0x840e8ddd +0, 15, 15, 1, 152064, 0x52280f05 +0, 16, 16, 1, 152064, 0x75064e18 +0, 17, 17, 1, 152064, 0xf41638c8 +0, 18, 18, 1, 152064, 0x258d6acc +0, 19, 19, 1, 152064, 0x9d73dbff +0, 20, 20, 1, 152064, 0x80e0f570 +0, 21, 21, 1, 152064, 0x3a912412 +0, 22, 22, 1, 152064, 0xaf241d59 +0, 23, 23, 1, 152064, 0xe73568ef +0, 24, 24, 1, 152064, 0xc739f9d6 +0, 25, 25, 1, 152064, 0xc8c19936 +0, 26, 26, 1, 152064, 0x47dd96b5 +0, 27, 27, 1, 152064, 0x5329d887 +0, 28, 28, 1, 152064, 0x5b46a455 +0, 29, 29, 1, 152064, 0xfd8c650e +0, 30, 30, 1, 152064, 0x85c86aca +0, 31, 31, 1, 152064, 0x46a6c51e +0, 32, 32, 1, 152064, 0x220dfc8d +0, 33, 33, 1, 152064, 0xdbe27a30 +0, 34, 34, 1, 152064, 0xb8cc4378 +0, 35, 35, 1, 152064, 0xb6cf94fb +0, 36, 36, 1, 152064, 0xeaa937ab +0, 37, 37, 1, 152064, 0x335401f8 +0, 38, 38, 1, 152064, 0xdb3d594c +0, 39, 39, 1, 152064, 0x211c4edd +0, 40, 40, 1, 152064, 0xc3725925 +0, 41, 41, 1, 152064, 0x8f389e08 +0, 42, 42, 1, 152064, 0xc62cbfa9 +0, 43, 43, 1, 152064, 0x803820ec +0, 44, 44, 1, 152064, 0x0d860471 +0, 45, 45, 1, 152064, 0xf6997e73 +0, 46, 46, 1, 152064, 0x6c2153ff +0, 47, 47, 1, 152064, 0x1bb2c5c2 +0, 48, 48, 1, 152064, 0x39d1b483 +0, 49, 49, 1, 152064, 0x2b50d8ea From 71f3ede24e8c2fe53dcbd8faba1cc27e5075c67a Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 13 Mar 2013 11:03:08 +0100 Subject: [PATCH 3/4] FATE: add a test for the hqdn3d filter --- tests/fate/filter.mak | 3 +++ tests/ref/fate/filter-hqdn3d | 51 ++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 tests/ref/fate/filter-hqdn3d diff --git a/tests/fate/filter.mak b/tests/fate/filter.mak index ab84111dc6..aa07bc2e66 100644 --- a/tests/fate/filter.mak +++ b/tests/fate/filter.mak @@ -46,6 +46,9 @@ fate-filter-fade: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf fade=in:0:25,fade=out FATE_FILTER_VSYNTH-$(CONFIG_GRADFUN_FILTER) += fate-filter-gradfun fate-filter-gradfun: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf gradfun +FATE_FILTER_VSYNTH-$(CONFIG_HQDN3D_FILTER) += fate-filter-hqdn3d +fate-filter-hqdn3d: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf hqdn3d + FATE_FILTER_VSYNTH-$(CONFIG_TRANSPOSE_FILTER) += fate-filter-transpose fate-filter-transpose: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf transpose diff --git a/tests/ref/fate/filter-hqdn3d b/tests/ref/fate/filter-hqdn3d new file mode 100644 index 0000000000..6f121c37fc --- /dev/null +++ b/tests/ref/fate/filter-hqdn3d @@ -0,0 +1,51 @@ +#tb 0: 1/25 +0, 0, 0, 1, 152064, 0x0c09883a +0, 1, 1, 1, 152064, 0xfc2748a0 +0, 2, 2, 1, 152064, 0xb746eea8 +0, 3, 3, 1, 152064, 0xf14192d7 +0, 4, 4, 1, 152064, 0xae26db7f +0, 5, 5, 1, 152064, 0xe1a7da48 +0, 6, 6, 1, 152064, 0x5196b387 +0, 7, 7, 1, 152064, 0x20eac7ff +0, 8, 8, 1, 152064, 0x4896c7f5 +0, 9, 9, 1, 152064, 0x97ba6468 +0, 10, 10, 1, 152064, 0x29b19884 +0, 11, 11, 1, 152064, 0x591e4e14 +0, 12, 12, 1, 152064, 0xb692fc98 +0, 13, 13, 1, 152064, 0x3457ed57 +0, 14, 14, 1, 152064, 0xbb10d71d +0, 15, 15, 1, 152064, 0x47f45b57 +0, 16, 16, 1, 152064, 0xddbd8bc6 +0, 17, 17, 1, 152064, 0x1ef36e02 +0, 18, 18, 1, 152064, 0x55a363d2 +0, 19, 19, 1, 152064, 0x11c1c2f4 +0, 20, 20, 1, 152064, 0x553bdc2b +0, 21, 21, 1, 152064, 0x2101d886 +0, 22, 22, 1, 152064, 0xe8f77998 +0, 23, 23, 1, 152064, 0x39bac7ff +0, 24, 24, 1, 152064, 0x09a4172e +0, 25, 25, 1, 152064, 0x6121f57f +0, 26, 26, 1, 152064, 0x60e7525c +0, 27, 27, 1, 152064, 0xd7895259 +0, 28, 28, 1, 152064, 0x12b2153b +0, 29, 29, 1, 152064, 0x6119a22e +0, 30, 30, 1, 152064, 0xf1969bd5 +0, 31, 31, 1, 152064, 0x7b03fc83 +0, 32, 32, 1, 152064, 0x17383667 +0, 33, 33, 1, 152064, 0x332bbfba +0, 34, 34, 1, 152064, 0x253998a8 +0, 35, 35, 1, 152064, 0x2614c984 +0, 36, 36, 1, 152064, 0x50c86e8d +0, 37, 37, 1, 152064, 0x9ff23b55 +0, 38, 38, 1, 152064, 0xc4589665 +0, 39, 39, 1, 152064, 0x5e7d86c7 +0, 40, 40, 1, 152064, 0xdda07f2f +0, 41, 41, 1, 152064, 0xa1dacf4a +0, 42, 42, 1, 152064, 0x3c83fb32 +0, 43, 43, 1, 152064, 0xa43da916 +0, 44, 44, 1, 152064, 0x0e767b80 +0, 45, 45, 1, 152064, 0xa18c5f82 +0, 46, 46, 1, 152064, 0xdb21c249 +0, 47, 47, 1, 152064, 0xb126341e +0, 48, 48, 1, 152064, 0xc14742be +0, 49, 49, 1, 152064, 0x582f631d From ea290d919a52f0f8c7e30d69328bb011ed13f61a Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Wed, 13 Mar 2013 11:03:08 +0100 Subject: [PATCH 4/4] FATE: add a test for the setpts filter --- tests/fate/filter.mak | 3 +++ tests/filtergraphs/setpts | 2 ++ tests/ref/fate/filter-setpts | 51 ++++++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+) create mode 100644 tests/filtergraphs/setpts create mode 100644 tests/ref/fate/filter-setpts diff --git a/tests/fate/filter.mak b/tests/fate/filter.mak index aa07bc2e66..d07cdcba50 100644 --- a/tests/fate/filter.mak +++ b/tests/fate/filter.mak @@ -49,6 +49,9 @@ fate-filter-gradfun: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf gradfun FATE_FILTER_VSYNTH-$(CONFIG_HQDN3D_FILTER) += fate-filter-hqdn3d fate-filter-hqdn3d: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf hqdn3d +FATE_FILTER_VSYNTH-$(call ALLYES, SETPTS_FILTER SETTB_FILTER) += fate-filter-setpts +fate-filter-setpts: CMD = framecrc -c:v pgmyuv -i $(SRC) -filter_script $(SRC_PATH)/tests/filtergraphs/setpts + FATE_FILTER_VSYNTH-$(CONFIG_TRANSPOSE_FILTER) += fate-filter-transpose fate-filter-transpose: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf transpose diff --git a/tests/filtergraphs/setpts b/tests/filtergraphs/setpts new file mode 100644 index 0000000000..79037d1b65 --- /dev/null +++ b/tests/filtergraphs/setpts @@ -0,0 +1,2 @@ +settb=1/1000, +setpts=1/(35*TB) * (N + 0.05 * sin(N*2*PI/25)) diff --git a/tests/ref/fate/filter-setpts b/tests/ref/fate/filter-setpts new file mode 100644 index 0000000000..14aa613873 --- /dev/null +++ b/tests/ref/fate/filter-setpts @@ -0,0 +1,51 @@ +#tb 0: 1/1000 +0, 0, 0, 0, 152064, 0x05b789ef +0, 28, 28, 0, 152064, 0x4bb46551 +0, 57, 57, 0, 152064, 0x9dddf64a +0, 86, 86, 0, 152064, 0x2a8380b0 +0, 115, 115, 0, 152064, 0x4de3b652 +0, 144, 144, 0, 152064, 0xedb5a8e6 +0, 172, 172, 0, 152064, 0xe20f7c23 +0, 201, 201, 0, 152064, 0x5ab58bac +0, 229, 229, 0, 152064, 0x1f1b8026 +0, 258, 258, 0, 152064, 0x91373915 +0, 286, 286, 0, 152064, 0x02344760 +0, 314, 314, 0, 152064, 0x30f5fcd5 +0, 343, 343, 0, 152064, 0xc711ad61 +0, 371, 371, 0, 152064, 0x24eca223 +0, 399, 399, 0, 152064, 0x52a48ddd +0, 427, 427, 0, 152064, 0xa91c0f05 +0, 456, 456, 0, 152064, 0x8e364e18 +0, 484, 484, 0, 152064, 0xb15d38c8 +0, 512, 512, 0, 152064, 0xf25f6acc +0, 541, 541, 0, 152064, 0xf34ddbff +0, 570, 570, 0, 152064, 0xfc7bf570 +0, 598, 598, 0, 152064, 0x9dc72412 +0, 627, 627, 0, 152064, 0x445d1d59 +0, 656, 656, 0, 152064, 0x2f2768ef +0, 685, 685, 0, 152064, 0xce09f9d6 +0, 714, 714, 0, 152064, 0x95579936 +0, 743, 743, 0, 152064, 0x43d796b5 +0, 772, 772, 0, 152064, 0xd780d887 +0, 800, 800, 0, 152064, 0x76d2a455 +0, 829, 829, 0, 152064, 0x6dc3650e +0, 858, 858, 0, 152064, 0x0f9d6aca +0, 887, 887, 0, 152064, 0xe295c51e +0, 915, 915, 0, 152064, 0xd766fc8d +0, 944, 944, 0, 152064, 0xe22f7a30 +0, 972, 972, 0, 152064, 0x7fea4378 +0, 1000, 1000, 0, 152064, 0xfa8d94fb +0, 1029, 1029, 0, 152064, 0x4c9737ab +0, 1057, 1057, 0, 152064, 0xa50d01f8 +0, 1085, 1085, 0, 152064, 0x0b07594c +0, 1113, 1113, 0, 152064, 0x88734edd +0, 1142, 1142, 0, 152064, 0xd2735925 +0, 1170, 1170, 0, 152064, 0xd4e49e08 +0, 1198, 1198, 0, 152064, 0x20cebfa9 +0, 1227, 1227, 0, 152064, 0x575c20ec +0, 1255, 1255, 0, 152064, 0xfd500471 +0, 1284, 1284, 0, 152064, 0x61b47e73 +0, 1313, 1313, 0, 152064, 0x09ef53ff +0, 1341, 1341, 0, 152064, 0x6e88c5c2 +0, 1370, 1370, 0, 152064, 0xbb87b483 +0, 1399, 1399, 0, 152064, 0x4bbad8ea