mirror of https://github.com/mpv-player/mpv
vo_opengl: move deband_opts declaration to where it's used
At least one thing the current option code can do right.
This commit is contained in:
parent
65ad85790a
commit
c17ff1703a
|
@ -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];
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue