1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-25 04:38:01 +00:00

vo_opengl: decrease default lookup texture size to 64

It turns out that with accurate lookup we can decrease the
default size of texture now. Do it to compensate the performance
loss introduced by the LUT_POS macro.
This commit is contained in:
Bin Jin 2015-12-06 16:22:41 +00:00 committed by wm4
parent e6058d3dc3
commit c569d4f6ed
2 changed files with 4 additions and 4 deletions

View File

@ -432,9 +432,9 @@ Available video output drivers are:
Defaults to 1.
``scaler-lut-size=<4..10>``
Set the size of the lookup texture for scaler kernels (default: 8).
Set the size of the lookup texture for scaler kernels (default: 6).
The actual size of the texture is ``2^N`` for an option value of ``N``.
So the lookup texture with the default setting uses 256 samples.
So the lookup texture with the default setting uses 64 samples.
All weights are bilinearly interpolated from those samples, so
increasing the size of lookup table might improve the accuracy of

View File

@ -345,7 +345,7 @@ const struct gl_video_opts gl_video_opts_def = {
{{"mitchell", .params={NAN, NAN}}, {.params = {NAN, NAN}},
.clamp = 1, }, // tscale
},
.scaler_lut_size = 8,
.scaler_lut_size = 6,
.alpha_mode = 2,
.background = {0, 0, 0, 255},
.gamma = 1.0f,
@ -369,7 +369,7 @@ const struct gl_video_opts gl_video_opts_hq_def = {
{{"mitchell", .params={NAN, NAN}}, {.params = {NAN, NAN}},
.clamp = 1, }, // tscale
},
.scaler_lut_size = 8,
.scaler_lut_size = 6,
.alpha_mode = 2,
.background = {0, 0, 0, 255},
.gamma = 1.0f,