From c569d4f6ed7f8395d8c399bde048234065f0c65a Mon Sep 17 00:00:00 2001 From: Bin Jin Date: Sun, 6 Dec 2015 16:22:41 +0000 Subject: 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. --- DOCS/man/vo.rst | 4 ++-- 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, -- cgit v1.2.3