This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 3d16b774d71bb9cf25e9da0fb7886ac11640d712 Author: Jun Zhao <[email protected]> AuthorDate: Sat Nov 14 00:45:48 2026 +0800 Commit: Jun Zhao <[email protected]> CommitDate: Sun Nov 15 09:05:26 2026 +0000 tests/fate: add a 16-bit median regression test fate-filter-median uses the 8-bit vsynth source and never instantiates the DEPTH=16 template, which had the ~128 KiB on-stack histogram and no coverage at all. Add fate-filter-median16, a self-contained -lavfi framecrc test on a gray16 source (BINS=256). Anchor both ends to gray16le through scale so testsrc2 (little-endian only via drawutils) and rawvideo framecrc checksums stay identical on big-endian targets while median itself still runs on native-endian gray16. Gate it with FILTERFRAMECRC on MEDIAN, TESTSRC2, FORMAT and SCALE so reduced configurations skip it cleanly. Signed-off-by: Jun Zhao <[email protected]> --- tests/fate/filter-video.mak | 5 +++++ tests/ref/fate/filter-median16 | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/tests/fate/filter-video.mak b/tests/fate/filter-video.mak index 82ab48dc68..4ce8e06c37 100644 --- a/tests/fate/filter-video.mak +++ b/tests/fate/filter-video.mak @@ -686,6 +686,11 @@ fate-filter-edgedetect-colormix: CMD = video_filter "scale,format=gbrp,perms=ran FATE_FILTER_VSYNTH_VIDEO_FILTER-$(CONFIG_MEDIAN_FILTER) += fate-filter-median fate-filter-median: CMD = video_filter "median=radius=5" +# Exercise the 16-bit median template (DEPTH=16, BINS=256), whose +# histogram scratch used to be a ~132 KiB on-stack array. +FATE_FILTER-$(call FILTERFRAMECRC, MEDIAN TESTSRC2 FORMAT SCALE) += fate-filter-median16 +fate-filter-median16: CMD = framecrc -lavfi "testsrc2=size=64x64:rate=5:duration=1,format=gray16le,scale,format=gray16,median=radius=3,scale" -pix_fmt gray16le -frames:v 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-median16 b/tests/ref/fate/filter-median16 new file mode 100644 index 0000000000..9fd1a2f764 --- /dev/null +++ b/tests/ref/fate/filter-median16 @@ -0,0 +1,10 @@ +#tb 0: 1/5 +#media_type 0: video +#codec_id 0: rawvideo +#dimensions 0: 64x64 +#sar 0: 1/1 +0, 0, 0, 1, 8192, 0x2d933fab +0, 1, 1, 1, 8192, 0x6ecdbbb2 +0, 2, 2, 1, 8192, 0x4c0a2b92 +0, 3, 3, 1, 8192, 0x1b34f327 +0, 4, 4, 1, 8192, 0xe2af3482 -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
