diff mbox series

[FFmpeg-devel,v5,3/3] fate/filter-video: add 10bit test for unsharp filter

Message ID 1604282862-26534-3-git-send-email-lance.lmwang@gmail.com
State Accepted
Commit 06aab9790db1f7cd57bdcba6008c5e7f4030c7c4
Headers show
Series [FFmpeg-devel,v5,1/3] avfilter/vf_unsharp: add 10bit support | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/PPC64_make success Make finished
andriy/PPC64_make_fate success Make fate finished

Commit Message

Lance Wang Nov. 2, 2020, 2:07 a.m. UTC
From: Limin Wang <lance.lmwang@gmail.com>

Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
---
 tests/fate/filter-video.mak             |  3 +++
 tests/ref/fate/filter-unsharp-yuv420p10 | 25 +++++++++++++++++++++++++
 2 files changed, 28 insertions(+)
 create mode 100644 tests/ref/fate/filter-unsharp-yuv420p10

Comments

Lance Wang Nov. 6, 2020, 11:02 a.m. UTC | #1
On Mon, Nov 02, 2020 at 10:07:42AM +0800, lance.lmwang@gmail.com wrote:
> From: Limin Wang <lance.lmwang@gmail.com>
> 
> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
> ---
>  tests/fate/filter-video.mak             |  3 +++
>  tests/ref/fate/filter-unsharp-yuv420p10 | 25 +++++++++++++++++++++++++
>  2 files changed, 28 insertions(+)
>  create mode 100644 tests/ref/fate/filter-unsharp-yuv420p10
> 
> diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
> index 639f957..f9059f4 100644
> --- a/tests/fate/filter-video.mak
> +++ b/tests/fate/filter-video.mak
> @@ -410,6 +410,9 @@ fate-filter-untile: CMD = framecrc -lavfi testsrc2=d=1:r=2,untile=2x2
>  FATE_FILTER_VSYNTH-$(CONFIG_UNSHARP_FILTER) += fate-filter-unsharp
>  fate-filter-unsharp: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf unsharp=11:11:-1.5:11:11:-1.5
>  
> +FATE_FILTER_VSYNTH-$(CONFIG_UNSHARP_FILTER) += fate-filter-unsharp-yuv420p10
> +fate-filter-unsharp-yuv420p10: CMD = framecrc -lavfi testsrc2=r=2:d=10,scale,format=yuv420p10,unsharp=11:11:-1.5:11:11:-1.5,scale -pix_fmt yuv420p10le -flags +bitexact -sws_flags +accurate_rnd+bitexact
> +
>  FATE_FILTER_SAMPLES-$(call ALLYES, SMJPEG_DEMUXER MJPEG_DECODER PERMS_FILTER HQDN3D_FILTER) += fate-filter-hqdn3d-sample
>  fate-filter-hqdn3d-sample: tests/data/filtergraphs/hqdn3d
>  fate-filter-hqdn3d-sample: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/smjpeg/scenwin.mjpg -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/hqdn3d -an
> diff --git a/tests/ref/fate/filter-unsharp-yuv420p10 b/tests/ref/fate/filter-unsharp-yuv420p10
> new file mode 100644
> index 0000000..513ee78
> --- /dev/null
> +++ b/tests/ref/fate/filter-unsharp-yuv420p10
> @@ -0,0 +1,25 @@
> +#tb 0: 1/2
> +#media_type 0: video
> +#codec_id 0: rawvideo
> +#dimensions 0: 320x240
> +#sar 0: 1/1
> +0,          0,          0,        1,   230400, 0x091f3ed7
> +0,          1,          1,        1,   230400, 0x4151292d
> +0,          2,          2,        1,   230400, 0xe7066e96
> +0,          3,          3,        1,   230400, 0x57c20d15
> +0,          4,          4,        1,   230400, 0x01269a37
> +0,          5,          5,        1,   230400, 0xb2b04e5c
> +0,          6,          6,        1,   230400, 0x98fc479f
> +0,          7,          7,        1,   230400, 0x561915bb
> +0,          8,          8,        1,   230400, 0xd60c45f7
> +0,          9,          9,        1,   230400, 0x747d8a28
> +0,         10,         10,        1,   230400, 0x92505d36
> +0,         11,         11,        1,   230400, 0x9476af1f
> +0,         12,         12,        1,   230400, 0x1382c3d0
> +0,         13,         13,        1,   230400, 0x94ea40bd
> +0,         14,         14,        1,   230400, 0x8d46229a
> +0,         15,         15,        1,   230400, 0xe5736654
> +0,         16,         16,        1,   230400, 0x04bd4db2
> +0,         17,         17,        1,   230400, 0x4d721ad2
> +0,         18,         18,        1,   230400, 0xebe151a2
> +0,         19,         19,        1,   230400, 0xa1263f01
> -- 
> 1.8.3.1
> 

will apply the patchset tomorrow unless there are objections.
diff mbox series

Patch

diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index 639f957..f9059f4 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -410,6 +410,9 @@  fate-filter-untile: CMD = framecrc -lavfi testsrc2=d=1:r=2,untile=2x2
 FATE_FILTER_VSYNTH-$(CONFIG_UNSHARP_FILTER) += fate-filter-unsharp
 fate-filter-unsharp: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf unsharp=11:11:-1.5:11:11:-1.5
 
+FATE_FILTER_VSYNTH-$(CONFIG_UNSHARP_FILTER) += fate-filter-unsharp-yuv420p10
+fate-filter-unsharp-yuv420p10: CMD = framecrc -lavfi testsrc2=r=2:d=10,scale,format=yuv420p10,unsharp=11:11:-1.5:11:11:-1.5,scale -pix_fmt yuv420p10le -flags +bitexact -sws_flags +accurate_rnd+bitexact
+
 FATE_FILTER_SAMPLES-$(call ALLYES, SMJPEG_DEMUXER MJPEG_DECODER PERMS_FILTER HQDN3D_FILTER) += fate-filter-hqdn3d-sample
 fate-filter-hqdn3d-sample: tests/data/filtergraphs/hqdn3d
 fate-filter-hqdn3d-sample: CMD = framecrc -idct simple -i $(TARGET_SAMPLES)/smjpeg/scenwin.mjpg -filter_complex_script $(TARGET_PATH)/tests/data/filtergraphs/hqdn3d -an
diff --git a/tests/ref/fate/filter-unsharp-yuv420p10 b/tests/ref/fate/filter-unsharp-yuv420p10
new file mode 100644
index 0000000..513ee78
--- /dev/null
+++ b/tests/ref/fate/filter-unsharp-yuv420p10
@@ -0,0 +1,25 @@ 
+#tb 0: 1/2
+#media_type 0: video
+#codec_id 0: rawvideo
+#dimensions 0: 320x240
+#sar 0: 1/1
+0,          0,          0,        1,   230400, 0x091f3ed7
+0,          1,          1,        1,   230400, 0x4151292d
+0,          2,          2,        1,   230400, 0xe7066e96
+0,          3,          3,        1,   230400, 0x57c20d15
+0,          4,          4,        1,   230400, 0x01269a37
+0,          5,          5,        1,   230400, 0xb2b04e5c
+0,          6,          6,        1,   230400, 0x98fc479f
+0,          7,          7,        1,   230400, 0x561915bb
+0,          8,          8,        1,   230400, 0xd60c45f7
+0,          9,          9,        1,   230400, 0x747d8a28
+0,         10,         10,        1,   230400, 0x92505d36
+0,         11,         11,        1,   230400, 0x9476af1f
+0,         12,         12,        1,   230400, 0x1382c3d0
+0,         13,         13,        1,   230400, 0x94ea40bd
+0,         14,         14,        1,   230400, 0x8d46229a
+0,         15,         15,        1,   230400, 0xe5736654
+0,         16,         16,        1,   230400, 0x04bd4db2
+0,         17,         17,        1,   230400, 0x4d721ad2
+0,         18,         18,        1,   230400, 0xebe151a2
+0,         19,         19,        1,   230400, 0xa1263f01