From 41ad9d8924cad07948ee7c2eaff9d0fa1be0b044 Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 1 Jul 2015 19:22:40 +0200 Subject: 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. --- player/core.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'player/core.h') 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; -- cgit v1.2.3