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.
This commit is contained in:
wm4
2015-11-25 22:07:56 +01:00
parent 5bc9b273b3
commit 772961f0ce
4 changed files with 117 additions and 1 deletions

View File

@@ -1487,6 +1487,14 @@ Property list
available on all platforms. Note that any of the listed facts may change
any time without a warning.
``estimated-display-fps``
Only available if display-sync mode (as selected by ``--video-sync``) is
active. Returns the actual rate at which display refreshes seem to occur,
measured by system time.
``vsync-jitter``
Estimated deviation factor of the vsync duration.
``video-aspect`` (RW)
Video aspect, see ``--video-aspect``.