diff options
author | Kacper Michajłow <kasper93@gmail.com> | 2023-11-14 09:07:45 +0100 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-11-18 22:54:29 +0000 |
commit | 88fc9475523dc40766b04cba9bd4b5251702ded3 (patch) | |
tree | cf77aeeefa7d70b74c71e30242244f1e6286536f /video/out/vo.h | |
parent | d9e0ae737ab7a590527d88dd913fcc06d550df24 (diff) | |
download | mpv-88fc9475523dc40766b04cba9bd4b5251702ded3.tar.bz2 mpv-88fc9475523dc40766b04cba9bd4b5251702ded3.tar.xz |
vo: pass approximate frame duration in vo_frame
This information is already there, but speed adjusted. To avoid
duplicating the calculation of frame duration, it's kept in the
vo_frame structure.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r-- | video/out/vo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/vo.h b/video/out/vo.h index 5ebfc39674..e38dcf8010 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -251,6 +251,8 @@ struct vo_frame { // VO if frames are dropped. int num_frames; struct mp_image *frames[VO_MAX_REQ_FRAMES]; + // Speed unadjusted, approximate frame duration inferred from past frames + double approx_duration; // ID for frames[0] (== current). If current==NULL, the number is // meaningless. Otherwise, it's an unique ID for the frame. The ID for // a frame is guaranteed not to change (instant redraws will use the same |