diff options
author | wm4 <wm4@nowhere> | 2016-09-22 20:16:44 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-22 20:16:44 +0200 |
commit | 9179e8ed21e35731cdd7ba258d46090e57a8c281 (patch) | |
tree | cfbc32b60a3d243fe2cdd5af8e4c549704a397b2 /video/out/vo.h | |
parent | c296b6204fcace8a3ad99c08fa5d2931b70e57cc (diff) | |
download | mpv-9179e8ed21e35731cdd7ba258d46090e57a8c281.tar.bz2 mpv-9179e8ed21e35731cdd7ba258d46090e57a8c281.tar.xz |
vo: add a unique frame_id to vo_frame
We think that this allows simpler logic than using the redraw and repeat
fields. Not used yet.
Diffstat (limited to 'video/out/vo.h')
-rw-r--r-- | video/out/vo.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/vo.h b/video/out/vo.h index e35085c49b..d76329ffeb 100644 --- a/video/out/vo.h +++ b/video/out/vo.h @@ -211,6 +211,12 @@ struct vo_frame { // VO if frames are dropped. int num_frames; struct mp_image *frames[VO_MAX_REQ_FRAMES]; + // 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 + // ID). frames[n] has the ID frame_id+n, with the guarantee that frame + // drops or reconfigs will keep the guarantee. + uint64_t frame_id; }; struct vo_driver { |