History

avfilter/vf_libplacebo: remove deprecated options

These were removed upstream and no longer have had any effect for a while now.

Niklas Haas committed 1 year ago

Commit 5944c4b1 parent 27814dc2 files · +0 −22Browse files

Showing the changes to libavfilter (1 of 2 files). Show all

Unified · Split

libavfilter/vf_libplacebo.c+0−9
@@ -202,11 +202,9 @@ typedef struct LibplaceboContext { · 201 unmodified lines
202202 char *upscaler;
203203 char *downscaler;
204204 char *frame_mixer;
205− int lut_entries;
206205 float antiringing;
207206 int sigmoid;
208207 int skip_aa;
209− float polar_cutoff;
210208 int disable_linear;
211209 int disable_builtin;
212210 int force_dither;
@@ -234,7 +232,6 @@ typedef struct LibplaceboContext { · 21 unmodified lines
234232 /* pl_peak_detect_params */
235233 int peakdetect;
236234 float smoothing;
237− float min_peak;
238235 float scene_low;
239236 float scene_high;
240237 float percentile;
@@ -399,7 +396,6 @@ static int update_settings(AVFilterContext *ctx) · 158 unmodified lines
399396
400397 opts->peak_detect_params = *pl_peak_detect_params(
401398 .smoothing_period = s->smoothing,
402− .minimum_peak = s->min_peak,
403399 .scene_threshold_low = s->scene_low,
404400 .scene_threshold_high = s->scene_high,
405401 #if PL_API_VER >= 263
@@ -432,7 +428,6 @@ static int update_settings(AVFilterContext *ctx) · 26 unmodified lines
432428 );
433429
434430 opts->params = *pl_render_params(
435− .lut_entries = s->lut_entries,
436431 .antiringing_strength = s->antiringing,
437432 .background_transparency = 1.0f - (float) s->fillcolor[3] / UINT8_MAX,
438433 .background_color = {
@@ -457,7 +452,6 @@ static int update_settings(AVFilterContext *ctx) · 18 unmodified lines
457452 .num_hooks = s->num_hooks,
458453
459454 .skip_anti_aliasing = s->skip_aa,
460− .polar_cutoff = s->polar_cutoff,
461455 .disable_linear_scaling = s->disable_linear,
462456 .disable_builtin_scalers = s->disable_builtin,
463457 .force_dither = s->force_dither,
@@ -1378,7 +1372,6 @@ static const AVOption libplacebo_options[] = { · 914 unmodified lines
13781372 { "upscaler", "Upscaler function", OFFSET(upscaler), AV_OPT_TYPE_STRING, {.str = "spline36"}, .flags = DYNAMIC },
13791373 { "downscaler", "Downscaler function", OFFSET(downscaler), AV_OPT_TYPE_STRING, {.str = "mitchell"}, .flags = DYNAMIC },
13801374 { "frame_mixer", "Frame mixing function", OFFSET(frame_mixer), AV_OPT_TYPE_STRING, {.str = "none"}, .flags = DYNAMIC },
1381− { "lut_entries", "Number of scaler LUT entries", OFFSET(lut_entries), AV_OPT_TYPE_INT, {.i64 = 0}, 0, 256, DYNAMIC },
13821375 { "antiringing", "Antiringing strength (for non-EWA filters)", OFFSET(antiringing), AV_OPT_TYPE_FLOAT, {.dbl = 0.0}, 0.0, 1.0, DYNAMIC },
13831376 { "sigmoid", "Enable sigmoid upscaling", OFFSET(sigmoid), AV_OPT_TYPE_BOOL, {.i64 = 1}, 0, 1, DYNAMIC },
13841377 { "apply_filmgrain", "Apply film grain metadata", OFFSET(apply_filmgrain), AV_OPT_TYPE_BOOL, {.i64 = 1}, 0, 1, DYNAMIC },
@@ -1405,7 +1398,6 @@ static const AVOption libplacebo_options[] = { · 20 unmodified lines
14051398
14061399 { "peak_detect", "Enable dynamic peak detection for HDR tone-mapping", OFFSET(peakdetect), AV_OPT_TYPE_BOOL, {.i64 = 1}, 0, 1, DYNAMIC },
14071400 { "smoothing_period", "Peak detection smoothing period", OFFSET(smoothing), AV_OPT_TYPE_FLOAT, {.dbl = 100.0}, 0.0, 1000.0, DYNAMIC },
1408− { "minimum_peak", "Peak detection minimum peak", OFFSET(min_peak), AV_OPT_TYPE_FLOAT, {.dbl = 1.0}, 0.0, 100.0, DYNAMIC },
14091401 { "scene_threshold_low", "Scene change low threshold", OFFSET(scene_low), AV_OPT_TYPE_FLOAT, {.dbl = 5.5}, -1.0, 100.0, DYNAMIC },
14101402 { "scene_threshold_high", "Scene change high threshold", OFFSET(scene_high), AV_OPT_TYPE_FLOAT, {.dbl = 10.0}, -1.0, 100.0, DYNAMIC },
14111403 { "percentile", "Peak detection percentile", OFFSET(percentile), AV_OPT_TYPE_FLOAT, {.dbl = 99.995}, 0.0, 100.0, DYNAMIC },
@@ -1461,7 +1453,6 @@ static const AVOption libplacebo_options[] = { · 49 unmodified lines
14611453
14621454 /* Performance/quality tradeoff options */
14631455 { "skip_aa", "Skip anti-aliasing", OFFSET(skip_aa), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DYNAMIC },
1464− { "polar_cutoff", "Polar LUT cutoff", OFFSET(polar_cutoff), AV_OPT_TYPE_FLOAT, {.dbl = 0}, 0.0, 1.0, DYNAMIC },
14651456 { "disable_linear", "Disable linear scaling", OFFSET(disable_linear), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DYNAMIC },
14661457 { "disable_builtin", "Disable built-in scalers", OFFSET(disable_builtin), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DYNAMIC },
14671458 { "force_dither", "Force dithering", OFFSET(force_dither), AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1, DYNAMIC },

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t