* [FFmpeg-devel] [PATCH] tests/fate: add median filter test
@ 2023-12-06 11:21 Paul B Mahol
2023-12-07 2:12 ` Michael Niedermayer
0 siblings, 1 reply; 3+ messages in thread
From: Paul B Mahol @ 2023-12-06 11:21 UTC (permalink / raw)
To: FFmpeg development discussions and patches
[-- Attachment #1: Type: text/plain, Size: 10 bytes --]
Attached.
[-- Attachment #2: 0001-tests-fate-add-median-filter-test.patch --]
[-- Type: text/x-patch, Size: 1592 bytes --]
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
[-- Attachment #3: Type: text/plain, Size: 251 bytes --]
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [FFmpeg-devel] [PATCH] tests/fate: add median filter test
2023-12-06 11:21 [FFmpeg-devel] [PATCH] tests/fate: add median filter test Paul B Mahol
@ 2023-12-07 2:12 ` Michael Niedermayer
2023-12-14 22:20 ` Michael Niedermayer
0 siblings, 1 reply; 3+ messages in thread
From: Michael Niedermayer @ 2023-12-07 2:12 UTC (permalink / raw)
To: FFmpeg development discussions and patches
[-- Attachment #1.1: Type: text/plain, Size: 955 bytes --]
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 GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
It is what and why we do it that matters, not just one of them.
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
[-- Attachment #2: Type: text/plain, Size: 251 bytes --]
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [FFmpeg-devel] [PATCH] tests/fate: add median filter test
2023-12-07 2:12 ` Michael Niedermayer
@ 2023-12-14 22:20 ` Michael Niedermayer
0 siblings, 0 replies; 3+ messages in thread
From: Michael Niedermayer @ 2023-12-14 22:20 UTC (permalink / raw)
To: FFmpeg development discussions and patches
[-- Attachment #1.1: Type: text/plain, Size: 1156 bytes --]
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
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Those who would give up essential Liberty, to purchase a little
temporary Safety, deserve neither Liberty nor Safety -- Benjamin Franklin
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
[-- Attachment #2: Type: text/plain, Size: 251 bytes --]
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-12-14 22:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-06 11:21 [FFmpeg-devel] [PATCH] tests/fate: add median filter test Paul B Mahol
2023-12-07 2:12 ` Michael Niedermayer
2023-12-14 22:20 ` Michael Niedermayer
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
ffmpegdev@gitmailbox.com
public-inbox-index ffmpegdev
Example config snippet for mirrors.
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git