aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/out/gpu/video.h
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2018-02-08 01:55:31 +0100
committerGravatar Kevin Mitchell <kevmitch@gmail.com>2018-02-11 17:45:51 -0800
commit7b1e73139f73f446a472782e1465040c0e6b16dd (patch)
tree83e7cd8af10b7453671259ceb64669ad58726ed2 /video/out/gpu/video.h
parentbff8cfe3f0a8ec4235e32b23deec36d9a476b8d6 (diff)
vo_gpu: add internal ability to skip osd/subs for rendering
Needed for the following commit.
Diffstat (limited to 'video/out/gpu/video.h')
-rw-r--r--video/out/gpu/video.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/video/out/gpu/video.h b/video/out/gpu/video.h
index dad6d447f6..cd17308810 100644
--- a/video/out/gpu/video.h
+++ b/video/out/gpu/video.h
@@ -147,6 +147,12 @@ extern const struct m_sub_options gl_video_conf;
struct gl_video;
struct vo_frame;
+enum {
+ RENDER_FRAME_SUBS = 1 << 0,
+ RENDER_FRAME_OSD = 2 << 0,
+ RENDER_FRAME_DEF = RENDER_FRAME_SUBS | RENDER_FRAME_OSD,
+};
+
struct gl_video *gl_video_init(struct ra *ra, struct mp_log *log,
struct mpv_global *g);
void gl_video_uninit(struct gl_video *p);
@@ -155,7 +161,7 @@ bool gl_video_check_format(struct gl_video *p, int mp_format);
void gl_video_config(struct gl_video *p, struct mp_image_params *params);
void gl_video_set_output_depth(struct gl_video *p, int r, int g, int b);
void gl_video_render_frame(struct gl_video *p, struct vo_frame *frame,
- struct ra_fbo fbo);
+ struct ra_fbo fbo, int flags);
void gl_video_resize(struct gl_video *p,
struct mp_rect *src, struct mp_rect *dst,
struct mp_osd_res *osd);