diff options
author | Niklas Haas <git@nand.wakku.to> | 2015-09-05 17:39:27 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-09-09 19:19:23 +0200 |
commit | 97363e176d180f4f1bbc1e67e3e513c493ce31ed (patch) | |
tree | 592e0d675e88e8cdf5ba61b9c43925caa1ede7d9 /video/out/opengl/video.h | |
parent | 95d5bee832f33721a228d19341e20b12149498ce (diff) | |
download | mpv-97363e176d180f4f1bbc1e67e3e513c493ce31ed.tar.bz2 mpv-97363e176d180f4f1bbc1e67e3e513c493ce31ed.tar.xz |
vo_opengl: implement debanding (and remove source-shader)
The removal of source-shader is a side effect, since this effectively
replaces it - and the video-reading code has been significantly
restructured to make more sense and be more readable.
This means users no longer have to constantly download and maintain a
separate deband.glsl installation alongside mpv, which was the only real
use case for source-shader that we found either way.
Diffstat (limited to 'video/out/opengl/video.h')
-rw-r--r-- | video/out/opengl/video.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/video/out/opengl/video.h b/video/out/opengl/video.h index 65fdb6c3ab..f18e558951 100644 --- a/video/out/opengl/video.h +++ b/video/out/opengl/video.h @@ -67,6 +67,14 @@ 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]; @@ -97,6 +105,8 @@ struct gl_video_opts { char *scale_shader; char **pre_shaders; char **post_shaders; + int deband; + struct deband_opts *deband_opts; }; extern const struct m_sub_options gl_video_conf; |