summaryrefslogtreecommitdiffstats
path: root/video/out/gl_video.h
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2015-03-27 13:27:40 +0100
committerNiklas Haas <git@nand.wakku.to>2015-05-27 11:09:41 +0200
commit4d6b9550fe1e0354461716f560d71d78196d5da5 (patch)
treec3b819660467c8f48e89616b5e5e2fa46e06c090 /video/out/gl_video.h
parentbf4dd877e9f1e4508f0031e61c7f40cd612be448 (diff)
downloadmpv-4d6b9550fe1e0354461716f560d71d78196d5da5.tar.bz2
mpv-4d6b9550fe1e0354461716f560d71d78196d5da5.tar.xz
vo_opengl: add support for custom shaders
Diffstat (limited to 'video/out/gl_video.h')
-rw-r--r--video/out/gl_video.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/video/out/gl_video.h b/video/out/gl_video.h
index d0896e671d..1a56d6c1fc 100644
--- a/video/out/gl_video.h
+++ b/video/out/gl_video.h
@@ -66,6 +66,10 @@ struct gl_video_opts {
struct m_color background;
int interpolation;
int blend_subs;
+ char *source_shader;
+ char *scale_shader;
+ char **pre_shaders;
+ char **post_shaders;
};
extern const struct m_sub_options gl_video_conf;
@@ -74,7 +78,7 @@ extern const struct gl_video_opts gl_video_opts_def;
struct gl_video;
-struct gl_video *gl_video_init(GL *gl, struct mp_log *log);
+struct gl_video *gl_video_init(GL *gl, struct mp_log *log, struct mpv_global *g);
void gl_video_uninit(struct gl_video *p);
void gl_video_set_osd_source(struct gl_video *p, struct osd_state *osd);
void gl_video_set_options(struct gl_video *p, struct gl_video_opts *opts,