From 4d6b9550fe1e0354461716f560d71d78196d5da5 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Fri, 27 Mar 2015 13:27:40 +0100 Subject: vo_opengl: add support for custom shaders --- video/out/gl_video.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'video/out/gl_video.h') 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, -- cgit v1.2.3