[vlc-devel] [PATCH 1/3] video_output: rework the decision to use the next picture to display

Francois Cartegnie fcvlcdev at free.fr
Tue Nov 17 15:04:08 CET 2020


Le 17/11/2020 à 14:22, Steve Lhomme a écrit :
> Until now, in normal playback, the way to skip to the next frame to display was
> * get displayed.current
> * get displayed.next
> * if displayed.next has time to render use it to replace displayed.current
> * the vout thread waits until the deadline to render displayed.current
> 
> Now we don't use displayed.next anymore. We keep the displayed.current has long
> as the "time to render" (the deadline to render - current time) is bigger than
> the time it takes to render (approximately render_delay).
> If there is not enough time, we try to get the next picture from the
> decoder+prerender. And we check if there's enough time to render that one.
> If there is not enough time, we try to get the next picture from the
> decoder+prerender. And so on...

That's not used for frame by frame ?


-- 
Francois Cartegnie
VideoLAN - VLC Developer


More information about the vlc-devel mailing list