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_shaders.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_shaders.h')
-rw-r--r-- | video/out/opengl/video_shaders.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/video/out/opengl/video_shaders.h b/video/out/opengl/video_shaders.h index 05d622750c..81094e4c39 100644 --- a/video/out/opengl/video_shaders.h +++ b/video/out/opengl/video_shaders.h @@ -23,10 +23,15 @@ #ifndef MP_GL_VIDEO_SHADERS_H #define MP_GL_VIDEO_SHADERS_H +#include <libavutil/lfg.h> + #include "common.h" #include "utils.h" #include "video.h" +extern const struct deband_opts deband_opts_def; +extern const struct m_sub_options deband_conf; + void sampler_prelude(struct gl_shader_cache *sc, int tex_num); void pass_sample_separated_gen(struct gl_shader_cache *sc, struct scaler *scaler, int d_x, int d_y); @@ -40,4 +45,8 @@ void pass_sample_oversample(struct gl_shader_cache *sc, struct scaler *scaler, void pass_linearize(struct gl_shader_cache *sc, enum mp_csp_trc trc); void pass_delinearize(struct gl_shader_cache *sc, enum mp_csp_trc trc); +void pass_sample_deband(struct gl_shader_cache *sc, struct deband_opts *opts, + int tex_num, float tex_mul, float img_w, float img_h, + AVLFG *lfg); + #endif |