vo_opengl: default scaler-resizes-only sub-option to yes

Often requested. The main argument, that prominent scalers like sharpen
change the image even if no scaling happens, disappeared anyway.
("sharpen", unsharp masking, is neither prominent nor a scaler anymore.
This is an artifact from MPlayer, which fuses unsharp masking with
bilinear scaling in order to make it single-pass, or so.)
This commit is contained in:
wm4 2016-01-25 21:35:39 +01:00
parent b53cb8de5e
commit bd1fb6f9b1
3 changed files with 4 additions and 1 deletions

View File

@ -27,6 +27,7 @@ Interface changes
the old default)
- VO opengl custom shaders must now use "sample_pixel" as function name,
instead of "sample"
- change VO opengl scaler-resizes-only default to enabled
--- mpv 0.15.0 ---
- change "yadif" video filter defaults
--- mpv 0.14.0 ---

View File

@ -444,7 +444,7 @@ Available video output drivers are:
Disable the scaler if the video image is not resized. In that case,
``bilinear`` is used instead whatever is set with ``scale``. Bilinear
will reproduce the source image perfectly if no scaling is performed.
Note that this option never affects ``cscale``.
Enabled by default. Note that this option never affects ``cscale``.
``pbo``
Enable use of PBOs. On some drivers this can be faster, especially if

View File

@ -337,6 +337,7 @@ const struct gl_video_opts gl_video_opts_def = {
{{"mitchell", .params={NAN, NAN}}, {.params = {NAN, NAN}},
.clamp = 1, }, // tscale
},
.scaler_resizes_only = 1,
.scaler_lut_size = 6,
.alpha_mode = 3,
.background = {0, 0, 0, 255},
@ -361,6 +362,7 @@ const struct gl_video_opts gl_video_opts_hq_def = {
{{"mitchell", .params={NAN, NAN}}, {.params = {NAN, NAN}},
.clamp = 1, }, // tscale
},
.scaler_resizes_only = 1,
.scaler_lut_size = 6,
.alpha_mode = 3,
.background = {0, 0, 0, 255},