summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video_shaders.h
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.xyz>2017-09-03 21:51:48 +0200
committerNiklas Haas <git@haasn.xyz>2017-09-03 21:51:48 +0200
commitf589a3bd78efbc16e8025bff0809ac3c16b8ea2b (patch)
tree90d027ff59b7e9026591594ccd79726743fae732 /video/out/opengl/video_shaders.h
parent9a28088e7457a41c61be7f534618c69b4307d693 (diff)
downloadmpv-f589a3bd78efbc16e8025bff0809ac3c16b8ea2b.tar.bz2
mpv-f589a3bd78efbc16e8025bff0809ac3c16b8ea2b.tar.xz
vo_opengl: scale deband-grain to the signal range
This prevents blowing up for high dynamic range sources, where a noise level of 48 can suddenly mean 4800.
Diffstat (limited to 'video/out/opengl/video_shaders.h')
-rw-r--r--video/out/opengl/video_shaders.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/video_shaders.h b/video/out/opengl/video_shaders.h
index f6edff6d2b..1fae830720 100644
--- a/video/out/opengl/video_shaders.h
+++ b/video/out/opengl/video_shaders.h
@@ -49,7 +49,7 @@ void pass_color_map(struct gl_shader_cache *sc,
bool is_linear);
void pass_sample_deband(struct gl_shader_cache *sc, struct deband_opts *opts,
- AVLFG *lfg);
+ AVLFG *lfg, enum mp_csp_trc trc);
void pass_sample_unsharp(struct gl_shader_cache *sc, float param);