summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index 000283cd36..9c29d5f2cc 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -77,6 +77,8 @@ enum mp_voctrl {
VOCTRL_UPDATE_WINDOW_TITLE, // char*
VOCTRL_UPDATE_PLAYBACK_STATE, // struct voctrl_playback_state*
+ VOCTRL_PERFORMANCE_DATA, // struct voctrl_performance_data*
+
VOCTRL_SET_CURSOR_VISIBILITY, // bool*
VOCTRL_KILL_SCREENSAVER,
@@ -137,6 +139,16 @@ struct voctrl_playback_state {
int percent_pos;
};
+// VOCTRL_PERFORMANCE_DATA
+struct voctrl_performance_entry {
+ // Times are in microseconds
+ uint64_t last, avg, peak;
+};
+
+struct voctrl_performance_data {
+ struct voctrl_performance_entry upload, render, present;
+};
+
enum {
// VO does handle mp_image_params.rotate in 90 degree steps
VO_CAP_ROTATE90 = 1 << 0,