From c17ff1703a85679e3129b3755318fe926d85d9a6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 23 Sep 2015 22:21:59 +0200 Subject: vo_opengl: move deband_opts declaration to where it's used At least one thing the current option code can do right. --- video/out/opengl/video.h | 8 -------- video/out/opengl/video_shaders.c | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'video') diff --git a/video/out/opengl/video.h b/video/out/opengl/video.h index c8657ff42a..f03cac9c34 100644 --- a/video/out/opengl/video.h +++ b/video/out/opengl/video.h @@ -67,14 +67,6 @@ struct scaler { struct filter_kernel kernel_storage; }; -struct deband_opts { - int enabled; - int iterations; - float threshold; - float range; - float grain; -}; - struct gl_video_opts { int dumb_mode; struct scaler_config scaler[4]; 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, -- cgit v1.2.3