mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
vo_opengl: make "mitchell" the hq default filter for downscaling
Seems like several people agree that it's a good filter for downscaling. Setting this option by default may also prevent people from accidentally using an unsuitable filter for downscaling by setting "scale" and without being aware of the impliciations (maybe). On the other hand, this change is not strictly backwards compatible for the same reasons. Also, allow disabling this option with scale-down="" (before this, not setting it was the only way to do this - not possible anymore if it's set by default). This is what the change in handle_scaler_opt() does.
This commit is contained in:
parent
639e2bd12f
commit
dc1793048f
@ -597,7 +597,7 @@ Available video output drivers are:
|
||||
|
||||
This is equivalent to::
|
||||
|
||||
--vo=opengl:scale=spline36:dither-depth=auto:fbo-format=rgba16:fancy-downscaling:sigmoid-upscaling
|
||||
--vo=opengl:scale=spline36:scale-down=mitchell:dither-depth=auto:fbo-format=rgba16:fancy-downscaling:sigmoid-upscaling
|
||||
|
||||
Note that some cheaper LCDs do dithering that gravely interferes with
|
||||
``opengl``'s dithering. Disabling dithering with ``dither-depth=no`` helps.
|
||||
|
@ -350,6 +350,7 @@ const struct gl_video_opts gl_video_opts_hq_def = {
|
||||
.sigmoid_slope = 6.5,
|
||||
.sigmoid_upscaling = 1,
|
||||
.scalers = { "spline36", "bilinear" },
|
||||
.dscaler = "mitchell",
|
||||
.scaler_params = {{NAN, NAN}, {NAN, NAN}},
|
||||
.scaler_radius = {3, 3},
|
||||
.alpha_mode = 2,
|
||||
@ -2720,7 +2721,7 @@ struct gl_video *gl_video_init(GL *gl, struct mp_log *log, struct osd_state *osd
|
||||
// Get static string for scaler shader.
|
||||
static const char *handle_scaler_opt(const char *name)
|
||||
{
|
||||
if (name) {
|
||||
if (name && name[0]) {
|
||||
const struct filter_kernel *kernel = mp_find_filter_kernel(name);
|
||||
if (kernel)
|
||||
return kernel->name;
|
||||
|
Loading…
Reference in New Issue
Block a user