diff options
author | Bin Jin <bjin1990@gmail.com> | 2015-11-09 21:39:06 +0000 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-11-09 22:48:40 +0100 |
commit | 03bbaad686432b6f98c8bfc45206aea55ebe7ebc (patch) | |
tree | 70bee3225341a9a25d4114a16e8f50b9eb58a263 /video/out/opengl/nnedi3.h | |
parent | 3dc0f2ecf033718a3a5d4b7acc41d144839fb7dc (diff) | |
download | mpv-03bbaad686432b6f98c8bfc45206aea55ebe7ebc.tar.bz2 mpv-03bbaad686432b6f98c8bfc45206aea55ebe7ebc.tar.xz |
vo_opengl: fix 10-bit video prescaling
The nnedi3 prescaler requires a normalized range to work properly,
but the original implementation did the range normalization after
the first step of the first pass. This could lead to severe quality
degradation when debanding is not enabled for NNEDI3.
Fix this issue by passing `tex_mul` into the shader code.
Fixes #2464
Diffstat (limited to 'video/out/opengl/nnedi3.h')
-rw-r--r-- | video/out/opengl/nnedi3.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/nnedi3.h b/video/out/opengl/nnedi3.h index 8498b9de7a..be69f34c78 100644 --- a/video/out/opengl/nnedi3.h +++ b/video/out/opengl/nnedi3.h @@ -41,7 +41,7 @@ extern const struct m_sub_options nnedi3_conf; const float* get_nnedi3_weights(const struct nnedi3_opts *conf, int *size); void pass_nnedi3(GL *gl, struct gl_shader_cache *sc, int planes, int tex_num, - int step, const struct nnedi3_opts *conf, + int step, float tex_mul, const struct nnedi3_opts *conf, struct gl_transform *transform); #endif |