From 03bbaad686432b6f98c8bfc45206aea55ebe7ebc Mon Sep 17 00:00:00 2001 From: Bin Jin Date: Mon, 9 Nov 2015 21:39:06 +0000 Subject: 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 --- video/out/opengl/superxbr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out/opengl/superxbr.h') diff --git a/video/out/opengl/superxbr.h b/video/out/opengl/superxbr.h index 46f15fd269..08cec82839 100644 --- a/video/out/opengl/superxbr.h +++ b/video/out/opengl/superxbr.h @@ -30,7 +30,7 @@ extern const struct superxbr_opts superxbr_opts_def; extern const struct m_sub_options superxbr_conf; void pass_superxbr(struct gl_shader_cache *sc, int planes, int tex_num, - int step, const struct superxbr_opts *conf, + int step, float tex_mul, const struct superxbr_opts *conf, struct gl_transform *transform); #endif -- cgit v1.2.3