summaryrefslogtreecommitdiffstats
path: root/video/out/vo.h
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-11-10 22:37:52 +0100
committerDudemanguy <random342@airmail.cc>2023-11-11 20:44:01 +0000
commit5e5a32534ad9aa340f7cf76b2d54461e8f7d1098 (patch)
treeeaf98373dc65ad912a9d3272bcf8407cb4672e0a /video/out/vo.h
parent332619042f00689b9609a35a16756beadd617fcf (diff)
downloadmpv-5e5a32534ad9aa340f7cf76b2d54461e8f7d1098.tar.bz2
mpv-5e5a32534ad9aa340f7cf76b2d54461e8f7d1098.tar.xz
vo: add frame vsync and vsync duration
Relative to frame PTS timeline as oposed to display vblank. Those values are relative to unadjusted video timeline. They will be used by gpu-next where it expect virtual frame vsync, not display vblank time.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r--video/out/vo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/video/out/vo.h b/video/out/vo.h
index 1fb83ddd65..5ebfc39674 100644
--- a/video/out/vo.h
+++ b/video/out/vo.h
@@ -218,6 +218,10 @@ struct vo_frame {
// "ideal" frame duration (can be different from num_vsyncs*vsync_interval
// up to a vsync) - valid for the entire frame, i.e. not changed for repeats
double ideal_frame_duration;
+ // "ideal" frame vsync point relative to the pts
+ double ideal_frame_vsync;
+ // "ideal" frame duration relative to the pts
+ double ideal_frame_vsync_duration;
// how often the frame will be repeated (does not include OSD redraws)
int num_vsyncs;
// Set if the current frame is repeated from the previous. It's guaranteed