diff options
author | Bin Jin <bjin1990@gmail.com> | 2015-12-06 16:22:41 +0000 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-12-07 23:48:40 +0100 |
commit | c569d4f6ed7f8395d8c399bde048234065f0c65a (patch) | |
tree | 6ac6d402c07fd3189f13d7618edf46f60f309c37 | |
parent | e6058d3dc30ca8160ebeb8bba562ba08574164bb (diff) | |
download | mpv-c569d4f6ed7f8395d8c399bde048234065f0c65a.tar.bz2 mpv-c569d4f6ed7f8395d8c399bde048234065f0c65a.tar.xz |
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.
-rw-r--r-- | DOCS/man/vo.rst | 4 | ||||
-rw-r--r-- | video/out/opengl/video.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/DOCS/man/vo.rst b/DOCS/man/vo.rst index 56339f1468..f4f78c491f 100644 --- a/DOCS/man/vo.rst +++ b/DOCS/man/vo.rst @@ -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 diff --git a/video/out/opengl/video.c b/video/out/opengl/video.c index 0fdc4df0a2..790ced1e42 100644 --- a/video/out/opengl/video.c +++ b/video/out/opengl/video.c @@ -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, |