diff options
author | wm4 <wm4@nowhere> | 2015-07-01 19:22:40 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-07-01 22:37:46 +0200 |
commit | 41ad9d8924cad07948ee7c2eaff9d0fa1be0b044 (patch) | |
tree | 97ffd8a66c1863f0f0a9c9c0c5b26b768da44be8 /player/core.h | |
parent | 7faa80ace82f89036f6bb46e9539cc4a0cdce25c (diff) | |
download | mpv-41ad9d8924cad07948ee7c2eaff9d0fa1be0b044.tar.bz2 mpv-41ad9d8924cad07948ee7c2eaff9d0fa1be0b044.tar.xz |
video: pass future frames to VO
Now the VO can request a number of future frames with the last parameter
of vo_set_queue_params(). This will be helpful to fix the interpolation
code.
Note that the first frame (after playback start or seeking) will usually
not have any future frames (to make seeking fast). Near the end of the
file, the number of future frames will become lower as well.
Diffstat (limited to 'player/core.h')
-rw-r--r-- | player/core.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/player/core.h b/player/core.h index 81cf613abf..b3e8018b12 100644 --- a/player/core.h +++ b/player/core.h @@ -26,6 +26,7 @@ #include "options/options.h" #include "sub/osd.h" #include "demux/timeline.h" +#include "video/out/vo.h" // definitions used internally by the core player code @@ -227,7 +228,8 @@ typedef struct MPContext { struct vo *video_out; // next_frame[0] is the next frame, next_frame[1] the one after that. - struct mp_image *next_frame[2]; + struct mp_image *next_frames[2 + VO_MAX_FUTURE_FRAMES]; + int num_next_frames; struct mp_image *saved_frame; // for hrseek_lastframe enum playback_status video_status, audio_status; |