[vlc-devel] [RFC PATCH 1/2] vout: Allow vout plugins to provide vsync time

Julian Scheel julian at jusst.de
Thu Jun 19 13:43:46 CEST 2014


Am 19.06.2014 13:26, schrieb Rémi Denis-Courmont:
> Le 2014-06-19 17:34, Julian Scheel a écrit :
>> If the display refresh rate matches the video rate it is desired to show
>> exactly one picture per frame. Some video renderers take care of this
>> internally others don't. For those that don't do it we allow the vout to
>> provide a reference timestamp on which a vsync happened. Using the
>> assumption
>> that frame and display duration are equal we compute a phase delay and
>> derive
>> an offset to shift the phase to 25% of the frame duration.
>
> IIRC, vout_display_info_t is read-only after vout activation.

Indeed vlc_vout_display.h says it shall be only written in Open() call.
Alternative proposal: I could add a 
vout_display_SendEventVsyncTime(vout_display_t *vd, mtime_t date). The 
vout could call it when it sees a vsync.



More information about the vlc-devel mailing list