|
@@ -202,11 +202,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;
|
|
@@ -234,7 +232,6 @@ typedef struct LibplaceboContext {
|
|
|
/* pl_peak_detect_params */
|
|
|
int peakdetect;
|
|
|
float smoothing;
|
|
|
- float min_peak;
|
|
|
float scene_low;
|
|
|
float scene_high;
|
|
|
float percentile;
|
|
@@ -399,7 +396,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
|
|
@@ -432,7 +428,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 = {
|
|
@@ -457,7 +452,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,
|
|
@@ -1378,7 +1372,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 },
|
|
@@ -1405,7 +1398,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 },
|
|
@@ -1461,7 +1453,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 },
|