[FFmpeg-devel] [PATCH] FATE: add a test for the bilateral filter
mypopy at gmail.com
mypopy at gmail.com
Fri Nov 1 07:13:52 EET 2019
On Thu, Oct 31, 2019 at 4:30 PM leozhang <leozhang at qiyi.com> wrote:
>
> Signed-off-by: leozhang <leozhang at qiyi.com>
> ---
> tests/fate/filter-video.mak | 3 +++
> tests/ref/fate/filter-bilateral | 55
+++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 58 insertions(+)
> create mode 100644 tests/ref/fate/filter-bilateral
>
> diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
> index 7f55c73..0c33de5 100644
> --- a/tests/fate/filter-video.mak
> +++ b/tests/fate/filter-video.mak
> @@ -122,6 +122,9 @@ FATE_FILTER-$(call ALLYES, FRAMERATE_FILTER
TESTSRC2_FILTER FORMAT_FILTER) += fa
> fate-filter-framerate-12bit-up: CMD = framecrc -lavfi
testsrc2=r=50:d=1,format=pix_fmts=yuv422p12le,framerate=fps=60 -t 1
-pix_fmt yuv422p12le
> fate-filter-framerate-12bit-down: CMD = framecrc -lavfi
testsrc2=r=60:d=1,format=pix_fmts=yuv422p12le,framerate=fps=50 -t 1
-pix_fmt yuv422p12le
>
> +FATE_FILTER_VSYNTH-$(CONFIG_BILATERAL_FILTER) += fate-filter-bilateral
> +fate-filter-bilateral: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf bilateral
> +
> FATE_FILTER_VSYNTH-$(CONFIG_BOXBLUR_FILTER) += fate-filter-boxblur
> fate-filter-boxblur: CMD = framecrc -c:v pgmyuv -i $(SRC) -vf boxblur=2:1
>
> diff --git a/tests/ref/fate/filter-bilateral
b/tests/ref/fate/filter-bilateral
> new file mode 100644
> index 0000000..6b2d2e5
> --- /dev/null
> +++ b/tests/ref/fate/filter-bilateral
> @@ -0,0 +1,55 @@
> +#tb 0: 1/25
> +#media_type 0: video
> +#codec_id 0: rawvideo
> +#dimensions 0: 352x288
> +#sar 0: 0/1
> +0, 0, 0, 1, 152064, 0x5bbd7b0c
> +0, 1, 1, 1, 152064, 0x1ff551db
> +0, 2, 2, 1, 152064, 0xff04fb27
> +0, 3, 3, 1, 152064, 0x374c7095
> +0, 4, 4, 1, 152064, 0x6b6bb6fc
> +0, 5, 5, 1, 152064, 0x72506d74
> +0, 6, 6, 1, 152064, 0x87f4ff6b
> +0, 7, 7, 1, 152064, 0xe4cf78b9
> +0, 8, 8, 1, 152064, 0xd9b304eb
> +0, 9, 9, 1, 152064, 0x84bb3553
> +0, 10, 10, 1, 152064, 0x9bea0265
> +0, 11, 11, 1, 152064, 0xa9046321
> +0, 12, 12, 1, 152064, 0x126299af
> +0, 13, 13, 1, 152064, 0xea83fe82
> +0, 14, 14, 1, 152064, 0x06de9af5
> +0, 15, 15, 1, 152064, 0xe8feeefd
> +0, 16, 16, 1, 152064, 0x2687e830
> +0, 17, 17, 1, 152064, 0x0538ac63
> +0, 18, 18, 1, 152064, 0xcba8d8f6
> +0, 19, 19, 1, 152064, 0xde833d19
> +0, 20, 20, 1, 152064, 0xe9a970b4
> +0, 21, 21, 1, 152064, 0xc8dd87db
> +0, 22, 22, 1, 152064, 0xd8ad95e5
> +0, 23, 23, 1, 152064, 0x36f7c7fd
> +0, 24, 24, 1, 152064, 0x35f863dc
> +0, 25, 25, 1, 152064, 0x92eb1e39
> +0, 26, 26, 1, 152064, 0x669441e7
> +0, 27, 27, 1, 152064, 0x0b429de2
> +0, 28, 28, 1, 152064, 0x2137824f
> +0, 29, 29, 1, 152064, 0xba9e54d9
> +0, 30, 30, 1, 152064, 0x8868701d
> +0, 31, 31, 1, 152064, 0xf3beedd7
> +0, 32, 32, 1, 152064, 0xae2a7230
> +0, 33, 33, 1, 152064, 0xcd696392
> +0, 34, 34, 1, 152064, 0xa73cb092
> +0, 35, 35, 1, 152064, 0xb23c4fe8
> +0, 36, 36, 1, 152064, 0x40b631be
> +0, 37, 37, 1, 152064, 0x2b814f1d
> +0, 38, 38, 1, 152064, 0x454b58f2
> +0, 39, 39, 1, 152064, 0xb91c4145
> +0, 40, 40, 1, 152064, 0x44f50dda
> +0, 41, 41, 1, 152064, 0x7ec76f9d
> +0, 42, 42, 1, 152064, 0x9ca3c1ee
> +0, 43, 43, 1, 152064, 0x98b63e1c
> +0, 44, 44, 1, 152064, 0x60ed25fa
> +0, 45, 45, 1, 152064, 0xc3c99fec
> +0, 46, 46, 1, 152064, 0xf29a7d91
> +0, 47, 47, 1, 152064, 0x8bafd7b2
> +0, 48, 48, 1, 152064, 0x0b87b824
> +0, 49, 49, 1, 152064, 0x50fe02ce
> --
> 1.8.3.1
>
I don't think adding FATE like this for bilateral filter is a good idea, if
we change the implement with a fast algorithm, I think keep bit match is
hard
More information about the ffmpeg-devel
mailing list