summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-25 22:07:56 +0100
committerwm4 <wm4@nowhere>2015-11-25 22:07:56 +0100
commit772961f0ceb091f099eec03e2e8a3a2b354aa18f (patch)
tree7a387da504ec55dd88339ba7685ec51d54c2a706 /video/out/vo.h
parent5bc9b273b33b7ed4f85684e956a2e8ecb5645277 (diff)
downloadmpv-772961f0ceb091f099eec03e2e8a3a2b354aa18f.tar.bz2
mpv-772961f0ceb091f099eec03e2e8a3a2b354aa18f.tar.xz
command, vo: add estimated-display-fps property
This is simply the average refresh rate. Including "bad" samples is actually an advantage, because the property exists only for informational purposes, and will reflect problems such as the driver skipping a vsync. Also export the standard deviation of the vsync frame duration (normalized to the range 0-1) as vsync-jitter property.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index bd68858b43..0f934ebdc4 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -348,6 +348,8 @@ void vo_set_queue_params(struct vo *vo, int64_t offset_us, bool vsync_timed,
int num_req_frames);
int vo_get_num_req_frames(struct vo *vo);
int64_t vo_get_vsync_interval(struct vo *vo);
+double vo_get_estimated_vsync_interval(struct vo *vo);
+double vo_get_estimated_vsync_jitter(struct vo *vo);
double vo_get_display_fps(struct vo *vo);
double vo_get_delay(struct vo *vo);