diff options
author | wm4 <wm4@nowhere> | 2014-12-06 23:59:22 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-12-06 23:59:54 +0100 |
commit | 6adaddbe63196ba0c75796ce157d2e041c390b71 (patch) | |
tree | c9270d60ca6c42b8ebcd94957b7b545cdc8c22f6 /video/out/gl_video.c | |
parent | 309c5fee59c0de544b5e00b16743894c1f0701e0 (diff) | |
download | mpv-6adaddbe63196ba0c75796ce157d2e041c390b71.tar.bz2 mpv-6adaddbe63196ba0c75796ce157d2e041c390b71.tar.xz |
vo_opengl: extend filter size to 64
For better downscaling.
Maybe the list of filter sizes shouldn't be static...
Diffstat (limited to 'video/out/gl_video.c')
-rw-r--r-- | video/out/gl_video.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/video/out/gl_video.c b/video/out/gl_video.c index 9fa1b4974f..efc1b7b9a7 100644 --- a/video/out/gl_video.c +++ b/video/out/gl_video.c @@ -82,10 +82,11 @@ const struct lut_tex_format lut_tex_formats[] = { [12] = {3, GL_RGBA16F, GL_RGBA}, [16] = {4, GL_RGBA16F, GL_RGBA}, [32] = {8, GL_RGBA16F, GL_RGBA}, + [64] = {16, GL_RGBA16F, GL_RGBA}, }; // must be sorted, and terminated with 0 -static const int filter_sizes[] = {2, 4, 6, 8, 12, 16, 32, 0}; +static const int filter_sizes[] = {2, 4, 6, 8, 12, 16, 32, 64, 0}; struct vertex { float position[2]; @@ -336,8 +337,8 @@ const struct m_sub_options gl_video_conf = { OPT_FLOAT("lparam2", scaler_params[0][1], 0), OPT_FLOAT("cparam1", scaler_params[1][0], 0), OPT_FLOAT("cparam2", scaler_params[1][1], 0), - OPT_FLOATRANGE("lradius", scaler_radius[0], 0, 1.0, 16.0), - OPT_FLOATRANGE("cradius", scaler_radius[1], 0, 1.0, 16.0), + OPT_FLOATRANGE("lradius", scaler_radius[0], 0, 1.0, 32.0), + OPT_FLOATRANGE("cradius", scaler_radius[1], 0, 1.0, 32.0), OPT_FLAG("scaler-resizes-only", scaler_resizes_only, 0), OPT_FLAG("fancy-downscaling", fancy_downscaling, 0), OPT_FLAG("indirect", indirect, 0), |