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/utils.c | |
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/utils.c')
-rw-r--r-- | video/out/opengl/utils.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/video/out/opengl/utils.c b/video/out/opengl/utils.c index ac9077fea8..d63d3a04d0 100644 --- a/video/out/opengl/utils.c +++ b/video/out/opengl/utils.c @@ -578,6 +578,14 @@ void gl_sc_hadd(struct gl_shader_cache *sc, const char *text) sc->header_text = talloc_strdup_append(sc->header_text, text); } +void gl_sc_haddf(struct gl_shader_cache *sc, const char *textf, ...) +{ + va_list ap; + va_start(ap, textf); + ta_xvasprintf_append(&sc->header_text, textf, ap); + va_end(ap); +} + const char *gl_sc_loadfile(struct gl_shader_cache *sc, const char *path) { if (!path || !path[0] || !sc->global) |