* [FFmpeg-devel] [PATCH 1/2] avfilter/vf_libplacebo: remove deprecated options
@ 2025-02-19 18:31 Niklas Haas
2025-02-19 18:31 ` [FFmpeg-devel] [PATCH 2/2] avfilter/vf_liplacebo: properly initialize variable Niklas Haas
0 siblings, 1 reply; 2+ messages in thread
From: Niklas Haas @ 2025-02-19 18:31 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Niklas Haas
From: Niklas Haas <git@haasn.dev>
These were removed upstream and no longer have had any effect for
a while now.
Signed-off-by: Niklas Haas <git@haasn.dev>
---
doc/filters.texi | 13 -------------
libavfilter/vf_libplacebo.c | 9 ---------
2 files changed, 22 deletions(-)
diff --git a/doc/filters.texi b/doc/filters.texi
index f281053965..0ac4d4d1f8 100644
--- a/doc/filters.texi
+++ b/doc/filters.texi
@@ -16600,11 +16600,6 @@ Linear blend/fade between frames. Especially useful for constructing e.g.
slideshows.
@end table
-@item lut_entries
-Configures the size of scaler LUTs, ranging from @code{1} to @code{256}. The
-default of @code{0} will pick libplacebo's internal default, typically
-@code{64}.
-
@item antiringing
Enables anti-ringing (for non-EWA filters). The value (between @code{0.0} and
@code{1.0}) configures the strength of the anti-ringing algorithm. May increase
@@ -16702,10 +16697,6 @@ 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}.
-@item minimum_peak
-Lower bound on the detected peak (relative to SDR white), between @code{0.0}
-and @code{100.0}. Defaults to @code{1.0}.
-
@item scene_threshold_low
@item scene_threshold_high
Lower and upper thresholds for scene change detection. Expressed in a
@@ -16910,10 +16901,6 @@ attempting to squeeze the maximum performance at the cost of quality.
@item skip_aa
Disable anti-aliasing when downscaling.
-@item polar_cutoff
-Truncate polar (EWA) scaler kernels below this absolute magnitude, between
-@code{0.0} and @code{1.0}.
-
@item disable_linear
Disable linear light scaling.
diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c
index 08041f6894..5592460c16 100644
--- a/libavfilter/vf_libplacebo.c
+++ b/libavfilter/vf_libplacebo.c
@@ -201,11 +201,9 @@ typedef struct LibplaceboContext {
char *upscaler;
char *downscaler;
char *frame_mixer;
- int lut_entries;
float antiringing;
int sigmoid;
int skip_aa;
- float polar_cutoff;
int disable_linear;
int disable_builtin;
int force_dither;
@@ -228,7 +226,6 @@ typedef struct LibplaceboContext {
/* pl_peak_detect_params */
int peakdetect;
float smoothing;
- float min_peak;
float scene_low;
float scene_high;
float percentile;
@@ -388,7 +385,6 @@ static int update_settings(AVFilterContext *ctx)
opts->peak_detect_params = *pl_peak_detect_params(
.smoothing_period = s->smoothing,
- .minimum_peak = s->min_peak,
.scene_threshold_low = s->scene_low,
.scene_threshold_high = s->scene_high,
#if PL_API_VER >= 263
@@ -421,7 +417,6 @@ static int update_settings(AVFilterContext *ctx)
);
opts->params = *pl_render_params(
- .lut_entries = s->lut_entries,
.antiringing_strength = s->antiringing,
.background_transparency = 1.0f - (float) s->fillcolor[3] / UINT8_MAX,
.background_color = {
@@ -445,7 +440,6 @@ static int update_settings(AVFilterContext *ctx)
.num_hooks = s->num_hooks,
.skip_anti_aliasing = s->skip_aa,
- .polar_cutoff = s->polar_cutoff,
.disable_linear_scaling = s->disable_linear,
.disable_builtin_scalers = s->disable_builtin,
.force_dither = s->force_dither,
@@ -1349,7 +1343,6 @@ static const AVOption libplacebo_options[] = {
{ "upscaler", "Upscaler function", OFFSET(upscaler), AV_OPT_TYPE_STRING, {.str = "spline36"}, .flags = DYNAMIC },
{ "downscaler", "Downscaler function", OFFSET(downscaler), AV_OPT_TYPE_STRING, {.str = "mitchell"}, .flags = DYNAMIC },
{ "frame_mixer", "Frame mixing function", OFFSET(frame_mixer), AV_OPT_TYPE_STRING, {.str = "none"}, .flags = DYNAMIC },
- { "lut_entries", "Number of scaler LUT entries", OFFSET(lut_entries), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 256, DYNAMIC },
{ "antiringing", "Antiringing strength (for non-EWA filters)", OFFSET(antiringing), AV_OPT_TYPE_FLOAT, {.dbl = 0.0}, 0.0, 1.0, DYNAMIC },
{ "sigmoid", "Enable sigmoid upscaling", OFFSET(sigmoid), AV_OPT_TYPE_BOOL, {.i64 = 1}, 0, 1, DYNAMIC },
{ "apply_filmgrain", "Apply film grain metadata", OFFSET(apply_filmgrain), AV_OPT_TYPE_BOOL, {.i64 = 1}, 0, 1, DYNAMIC },
@@ -1369,7 +1362,6 @@ static const AVOption libplacebo_options[] = {
{ "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 },
- { "minimum_peak", "Peak detection minimum peak", OFFSET(min_peak), AV_OPT_TYPE_FLOAT, {.dbl = 1.0}, 0.0, 100.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 },
{ "percentile", "Peak detection percentile", OFFSET(percentile), AV_OPT_TYPE_FLOAT, {.dbl = 99.995}, 0.0, 100.0, DYNAMIC },
@@ -1425,7 +1417,6 @@ static const AVOption libplacebo_options[] = {
/* Performance/quality tradeoff options */
{ "skip_aa", "Skip anti-aliasing", OFFSET(skip_aa), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DYNAMIC },
- { "polar_cutoff", "Polar LUT cutoff", OFFSET(polar_cutoff), AV_OPT_TYPE_FLOAT, {.dbl = 0}, 0.0, 1.0, DYNAMIC },
{ "disable_linear", "Disable linear scaling", OFFSET(disable_linear), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DYNAMIC },
{ "disable_builtin", "Disable built-in scalers", OFFSET(disable_builtin), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DYNAMIC },
{ "force_dither", "Force dithering", OFFSET(force_dither), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DYNAMIC },
--
2.47.0
_______________________________________________
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] 2+ messages in thread
* [FFmpeg-devel] [PATCH 2/2] avfilter/vf_liplacebo: properly initialize variable
2025-02-19 18:31 [FFmpeg-devel] [PATCH 1/2] avfilter/vf_libplacebo: remove deprecated options Niklas Haas
@ 2025-02-19 18:31 ` Niklas Haas
0 siblings, 0 replies; 2+ messages in thread
From: Niklas Haas @ 2025-02-19 18:31 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Niklas Haas
From: Niklas Haas <git@haasn.dev>
Signed-off-by: Niklas Haas <git@haasn.dev>
---
libavfilter/vf_libplacebo.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c
index 5592460c16..0b7c0d2bfd 100644
--- a/libavfilter/vf_libplacebo.c
+++ b/libavfilter/vf_libplacebo.c
@@ -809,7 +809,7 @@ static void update_crops(AVFilterContext *ctx, LibplaceboInput *in,
/* Construct and emit an output frame for a given timestamp */
static int output_frame(AVFilterContext *ctx, int64_t pts)
{
- int err = 0, ok, changed;
+ int err = 0, ok, changed = 0;
LibplaceboContext *s = ctx->priv;
pl_options opts = s->opts;
AVFilterLink *outlink = ctx->outputs[0];
--
2.47.0
_______________________________________________
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] 2+ messages in thread
end of thread, other threads:[~2025-02-19 18:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-02-19 18:31 [FFmpeg-devel] [PATCH 1/2] avfilter/vf_libplacebo: remove deprecated options Niklas Haas
2025-02-19 18:31 ` [FFmpeg-devel] [PATCH 2/2] avfilter/vf_liplacebo: properly initialize variable Niklas Haas
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