This is an automated email from the git hooks/post-receive script.
Git pushed a commit to branch master
in repository ffmpeg.
The following commit(s) were added to refs/heads/master by this push:
new 590e2b1894 vf_libplacebo: sync peak detection parameters with upstream
590e2b1894 is described below
commit 590e2b1894e10d861e2bd31587a752e60c4f50c6
Author: Kacper Michajłow <[email protected]>
AuthorDate: Tue Feb 10 18:21:23 2026 +0100
Commit: Kacper Michajłow <[email protected]>
CommitDate: Thu Feb 12 00:12:48 2026 +0000
vf_libplacebo: sync peak detection parameters with upstream
Fixes peak detection for samples like in
https://github.com/haasn/libplacebo/issues/358
This might introduce flickering on some other samples, but was agreed
upstream that they are better overall.
Signed-off-by: Kacper Michajłow <[email protected]>
---
doc/filters.texi | 6 +++---
libavfilter/vf_libplacebo.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/doc/filters.texi b/doc/filters.texi
index 22d0fcf90d..71bc1e8686 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -16946,13 +16946,13 @@ process. Enabled by default.
@item smoothing_period
Peak detection smoothing period, between @code{0.0} and @code{1000.0}. Higher
values result in peak detection becoming less responsive to changes in the
-input. Defaults to @code{100.0}.
+input. Defaults to @code{20.0}.
@item scene_threshold_low
@item scene_threshold_high
Lower and upper thresholds for scene change detection. Expressed in a
-logarithmic scale between @code{0.0} and @code{100.0}. Default to @code{5.5}
-and @code{10.0}, respectively. Setting either to a negative value disables
+logarithmic scale between @code{0.0} and @code{100.0}. Default to @code{1.0}
+and @code{3.0}, respectively. Setting either to a negative value disables
this functionality.
@item percentile
diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c
index e355f658f7..0f0a9addfb 100644
--- a/libavfilter/vf_libplacebo.c
+++ b/libavfilter/vf_libplacebo.c
@@ -1755,9 +1755,9 @@ static const AVOption libplacebo_options[] = {
{ "temperature", "Color temperature adjustment (kelvin)",
OFFSET(temperature), AV_OPT_TYPE_FLOAT, {.dbl = 6500.0}, 1667.0, 25000.0,
DYNAMIC },
{ "peak_detect", "Enable dynamic peak detection for HDR tone-mapping",
OFFSET(peakdetect), AV_OPT_TYPE_BOOL, {.i64 = 1}, 0, 1, DYNAMIC },
- { "smoothing_period", "Peak detection smoothing period",
OFFSET(smoothing), AV_OPT_TYPE_FLOAT, {.dbl = 100.0}, 0.0, 1000.0, DYNAMIC },
- { "scene_threshold_low", "Scene change low threshold", OFFSET(scene_low),
AV_OPT_TYPE_FLOAT, {.dbl = 5.5}, -1.0, 100.0, DYNAMIC },
- { "scene_threshold_high", "Scene change high threshold",
OFFSET(scene_high), AV_OPT_TYPE_FLOAT, {.dbl = 10.0}, -1.0, 100.0, DYNAMIC },
+ { "smoothing_period", "Peak detection smoothing period",
OFFSET(smoothing), AV_OPT_TYPE_FLOAT, {.dbl = 20.0}, 0.0, 1000.0, DYNAMIC },
+ { "scene_threshold_low", "Scene change low threshold", OFFSET(scene_low),
AV_OPT_TYPE_FLOAT, {.dbl = 1.0}, -1.0, 100.0, DYNAMIC },
+ { "scene_threshold_high", "Scene change high threshold",
OFFSET(scene_high), AV_OPT_TYPE_FLOAT, {.dbl = 3.0}, -1.0, 100.0, DYNAMIC },
{ "percentile", "Peak detection percentile", OFFSET(percentile),
AV_OPT_TYPE_FLOAT, {.dbl = 99.995}, 0.0, 100.0, DYNAMIC },
{ "gamut_mode", "Gamut-mapping mode", OFFSET(gamut_mode), AV_OPT_TYPE_INT,
{.i64 = GAMUT_MAP_PERCEPTUAL}, 0, GAMUT_MAP_COUNT - 1, DYNAMIC, .unit =
"gamut_mode" },
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]