summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video_shaders.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-23 22:21:59 +0200
committerwm4 <wm4@nowhere>2015-09-23 22:21:59 +0200
commitc17ff1703a85679e3129b3755318fe926d85d9a6 (patch)
tree573540aaa4311612298e2f92429d08099912f47b /video/out/opengl/video_shaders.c
parent65ad85790a0adf346066c002574bd9bc6af48066 (diff)
downloadmpv-c17ff1703a85679e3129b3755318fe926d85d9a6.tar.bz2
mpv-c17ff1703a85679e3129b3755318fe926d85d9a6.tar.xz
vo_opengl: move deband_opts declaration to where it's used
At least one thing the current option code can do right.
Diffstat (limited to 'video/out/opengl/video_shaders.c')
-rw-r--r--video/out/opengl/video_shaders.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/video/out/opengl/video_shaders.c b/video/out/opengl/video_shaders.c
index 16ea2784cf..2ea57b781d 100644
--- a/video/out/opengl/video_shaders.c
+++ b/video/out/opengl/video_shaders.c
@@ -356,6 +356,14 @@ static void prng_init(struct gl_shader_cache *sc, AVLFG *lfg)
gl_sc_uniform_f(sc, "random", (double)av_lfg_get(lfg) / UINT32_MAX);
}
+struct deband_opts {
+ int enabled;
+ int iterations;
+ float threshold;
+ float range;
+ float grain;
+};
+
const struct deband_opts deband_opts_def = {
.iterations = 4,
.threshold = 64.0,