diff mbox series

[FFmpeg-devel] tests/fate: add median filter test

Message ID CAPYw7P5U7Nz8RiRQ2nEJTxtXW9yuWq67UhUhxvU7yutpMQtFdQ@mail.gmail.com
State New
Headers show
Series [FFmpeg-devel] tests/fate: add median filter test | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Paul B Mahol Dec. 6, 2023, 11:21 a.m. UTC
Attached.

Comments

Michael Niedermayer Dec. 7, 2023, 2:12 a.m. UTC | #1
On Wed, Dec 06, 2023 at 12:21:02PM +0100, Paul B Mahol wrote:
> Attached.

>  fate/filter-video.mak  |    3 +++
>  ref/fate/filter-median |    1 +
>  2 files changed, 4 insertions(+)
> 13f347a427b22bbb5ea4959ad092435d6f10c8d9  0001-tests-fate-add-median-filter-test.patch
> From 2c54553b83f2b67f781c67cb72deb4a5f267a8f1 Mon Sep 17 00:00:00 2001
> From: Paul B Mahol <onemda@gmail.com>
> Date: Wed, 6 Dec 2023 12:17:54 +0100
> Subject: [PATCH] tests/fate: add median filter test
> 
> Signed-off-by: Paul B Mahol <onemda@gmail.com>
> ---
>  tests/fate/filter-video.mak  | 3 +++
>  tests/ref/fate/filter-median | 1 +
>  2 files changed, 4 insertions(+)
>  create mode 100644 tests/ref/fate/filter-median

Tested on mingw32/64, x86 64&32 linux, arm & mips qemu
all work fine

thx

[...]
Michael Niedermayer Dec. 14, 2023, 10:20 p.m. UTC | #2
On Thu, Dec 07, 2023 at 03:12:39AM +0100, Michael Niedermayer wrote:
> On Wed, Dec 06, 2023 at 12:21:02PM +0100, Paul B Mahol wrote:
> > Attached.
> 
> >  fate/filter-video.mak  |    3 +++
> >  ref/fate/filter-median |    1 +
> >  2 files changed, 4 insertions(+)
> > 13f347a427b22bbb5ea4959ad092435d6f10c8d9  0001-tests-fate-add-median-filter-test.patch
> > From 2c54553b83f2b67f781c67cb72deb4a5f267a8f1 Mon Sep 17 00:00:00 2001
> > From: Paul B Mahol <onemda@gmail.com>
> > Date: Wed, 6 Dec 2023 12:17:54 +0100
> > Subject: [PATCH] tests/fate: add median filter test
> > 
> > Signed-off-by: Paul B Mahol <onemda@gmail.com>
> > ---
> >  tests/fate/filter-video.mak  | 3 +++
> >  tests/ref/fate/filter-median | 1 +
> >  2 files changed, 4 insertions(+)
> >  create mode 100644 tests/ref/fate/filter-median
> 
> Tested on mingw32/64, x86 64&32 linux, arm & mips qemu
> all work fine

will apply

thx

[...]
diff mbox series

Patch

From 2c54553b83f2b67f781c67cb72deb4a5f267a8f1 Mon Sep 17 00:00:00 2001
From: Paul B Mahol <onemda@gmail.com>
Date: Wed, 6 Dec 2023 12:17:54 +0100
Subject: [PATCH] tests/fate: add median filter test

Signed-off-by: Paul B Mahol <onemda@gmail.com>
---
 tests/fate/filter-video.mak  | 3 +++
 tests/ref/fate/filter-median | 1 +
 2 files changed, 4 insertions(+)
 create mode 100644 tests/ref/fate/filter-median

diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak
index 4defaf5877..b57ef88c9b 100644
--- a/tests/fate/filter-video.mak
+++ b/tests/fate/filter-video.mak
@@ -456,6 +456,9 @@  FATE_FILTER_VSYNTH_VIDEO_FILTER-$(call ALLYES, SCALE_FILTER FORMAT_FILTER PERMS_
 fate-filter-edgedetect: CMD = video_filter "scale,format=gray,perms=random,edgedetect" -frames:v 20
 fate-filter-edgedetect-colormix: CMD = video_filter "scale,format=gbrp,perms=random,edgedetect=mode=colormix" -frames:v 20
 
+FATE_FILTER_VSYNTH_VIDEO_FILTER-$(CONFIG_MEDIAN_FILTER) += fate-filter-median
+fate-filter-median: CMD = video_filter "median=radius=5"
+
 FATE_FILTER_VSYNTH_VIDEO_FILTER-$(call ALLYES, PERMS_FILTER HUE_FILTER) += fate-filter-hue1 fate-filter-hue2 fate-filter-hue3
 fate-filter-hue1: CMD = video_filter "perms=random,hue=s=sin(2*PI*t)+1" -frames:v 20
 fate-filter-hue2: CMD = video_filter "perms=random,hue=h=18*n" -frames:v 20
diff --git a/tests/ref/fate/filter-median b/tests/ref/fate/filter-median
new file mode 100644
index 0000000000..22dfaba576
--- /dev/null
+++ b/tests/ref/fate/filter-median
@@ -0,0 +1 @@ 
+median              8754a3715917ff8b20ff520c4bb4370c
-- 
2.42.1