diff mbox series

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

Message ID 1604070694-21308-3-git-send-email-lance.lmwang@gmail.com
State Superseded
Headers show
Series [FFmpeg-devel,v4,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 warning Make fate failed

Commit Message

Lance Wang Oct. 30, 2020, 3:11 p.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

Andriy Gelman Oct. 30, 2020, 3:40 p.m. UTC | #1
Hi Limin, 

On Fri, 30. Oct 23:11, 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..0adc0c2 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,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..c1a6f07
> --- /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, 0x2b664750
> +0,          1,          1,        1,   230400, 0x96b82a4a
> +0,          2,          2,        1,   230400, 0xdb936c54
> +0,          3,          3,        1,   230400, 0xfa210a10
> +0,          4,          4,        1,   230400, 0x946497c8
> +0,          5,          5,        1,   230400, 0xc9084925
> +0,          6,          6,        1,   230400, 0x0f9c4a1d
> +0,          7,          7,        1,   230400, 0x57901012
> +0,          8,          8,        1,   230400, 0xb0404496
> +0,          9,          9,        1,   230400, 0xfdb8871b
> +0,         10,         10,        1,   230400, 0x13e157c4
> +0,         11,         11,        1,   230400, 0x077eadd9
> +0,         12,         12,        1,   230400, 0x857ec272
> +0,         13,         13,        1,   230400, 0x3bec3bea
> +0,         14,         14,        1,   230400, 0x680723fe
> +0,         15,         15,        1,   230400, 0xc16660f0
> +0,         16,         16,        1,   230400, 0x0a065b14
> +0,         17,         17,        1,   230400, 0x297f1441
> +0,         18,         18,        1,   230400, 0x44324aec
> +0,         19,         19,        1,   230400, 0x9f903f58
> -- 
> 1.8.3.1
> 

It looks that it's still failing fate on BE PPC64:
https://patchwork.ffmpeg.org/project/ffmpeg/patch/1604070694-21308-3-git-send-email-lance.lmwang@gmail.com/
Lance Wang Oct. 30, 2020, 11:55 p.m. UTC | #2
On Fri, Oct 30, 2020 at 11:40:27AM -0400, Andriy Gelman wrote:
> Hi Limin, 
> 
> On Fri, 30. Oct 23:11, 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..0adc0c2 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,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..c1a6f07
> > --- /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, 0x2b664750
> > +0,          1,          1,        1,   230400, 0x96b82a4a
> > +0,          2,          2,        1,   230400, 0xdb936c54
> > +0,          3,          3,        1,   230400, 0xfa210a10
> > +0,          4,          4,        1,   230400, 0x946497c8
> > +0,          5,          5,        1,   230400, 0xc9084925
> > +0,          6,          6,        1,   230400, 0x0f9c4a1d
> > +0,          7,          7,        1,   230400, 0x57901012
> > +0,          8,          8,        1,   230400, 0xb0404496
> > +0,          9,          9,        1,   230400, 0xfdb8871b
> > +0,         10,         10,        1,   230400, 0x13e157c4
> > +0,         11,         11,        1,   230400, 0x077eadd9
> > +0,         12,         12,        1,   230400, 0x857ec272
> > +0,         13,         13,        1,   230400, 0x3bec3bea
> > +0,         14,         14,        1,   230400, 0x680723fe
> > +0,         15,         15,        1,   230400, 0xc16660f0
> > +0,         16,         16,        1,   230400, 0x0a065b14
> > +0,         17,         17,        1,   230400, 0x297f1441
> > +0,         18,         18,        1,   230400, 0x44324aec
> > +0,         19,         19,        1,   230400, 0x9f903f58
> > -- 
> > 1.8.3.1
> > 
> 
> It looks that it's still failing fate on BE PPC64:
> https://patchwork.ffmpeg.org/project/ffmpeg/patch/1604070694-21308-3-git-send-email-lance.lmwang@gmail.com/

thanks, I Will find a BE system to fix it. 

> 
> -- 
> Andriy
>
diff mbox series

Patch

diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index 639f957..0adc0c2 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,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..c1a6f07
--- /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, 0x2b664750
+0,          1,          1,        1,   230400, 0x96b82a4a
+0,          2,          2,        1,   230400, 0xdb936c54
+0,          3,          3,        1,   230400, 0xfa210a10
+0,          4,          4,        1,   230400, 0x946497c8
+0,          5,          5,        1,   230400, 0xc9084925
+0,          6,          6,        1,   230400, 0x0f9c4a1d
+0,          7,          7,        1,   230400, 0x57901012
+0,          8,          8,        1,   230400, 0xb0404496
+0,          9,          9,        1,   230400, 0xfdb8871b
+0,         10,         10,        1,   230400, 0x13e157c4
+0,         11,         11,        1,   230400, 0x077eadd9
+0,         12,         12,        1,   230400, 0x857ec272
+0,         13,         13,        1,   230400, 0x3bec3bea
+0,         14,         14,        1,   230400, 0x680723fe
+0,         15,         15,        1,   230400, 0xc16660f0
+0,         16,         16,        1,   230400, 0x0a065b14
+0,         17,         17,        1,   230400, 0x297f1441
+0,         18,         18,        1,   230400, 0x44324aec
+0,         19,         19,        1,   230400, 0x9f903f58