summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/video.h
diff options
context:
space:
mode:
authorNiklas Haas <git@nand.wakku.to>2016-06-06 02:44:15 +0200
committerwm4 <wm4@nowhere>2016-06-07 12:17:25 +0200
commit393a06911269b69ed83f1b29bd5e252c07ba59bf (patch)
treeba49b6ce002d4a9ef1946d04c8bfa5be4fb3755a /video/out/opengl/video.h
parent8ceb935bd8e1062ff83287c00cca0b7428a7dfba (diff)
downloadmpv-393a06911269b69ed83f1b29bd5e252c07ba59bf.tar.bz2
mpv-393a06911269b69ed83f1b29bd5e252c07ba59bf.tar.xz
vo_opengl: expose performance timers as properties
This is plumbed through a new VOCTRL, VOCTRL_PERFORMANCE_DATA, and exposed as properties render-time-last, render-time-avg etc. All of these numbers are in microseconds, which gives a good precision range when just outputting them via show-text. (Lua scripts can obviously still do their own formatting etc.) Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'video/out/opengl/video.h')
-rw-r--r--video/out/opengl/video.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/video/out/opengl/video.h b/video/out/opengl/video.h
index 29a5ea9643..9e44cf8b06 100644
--- a/video/out/opengl/video.h
+++ b/video/out/opengl/video.h
@@ -169,6 +169,7 @@ void gl_video_render_frame(struct gl_video *p, struct vo_frame *frame, int fbo);
void gl_video_resize(struct gl_video *p, int vp_w, int vp_h,
struct mp_rect *src, struct mp_rect *dst,
struct mp_osd_res *osd);
+struct voctrl_performance_data gl_video_perfdata(struct gl_video *p);
struct mp_csp_equalizer;
struct mp_csp_equalizer *gl_video_eq_ptr(struct gl_video *p);
void gl_video_eq_update(struct gl_video *p);