VLC 4.0.0-dev
|
Callbacks for the owner of the main clock. More...
#include <clock.h>
Data Fields | |
void(* | on_update )(vlc_tick_t system_ts, vlc_tick_t ts, double rate, unsigned frame_rate, unsigned frame_rate_base, void *data) |
Called when a clock is updated. More... | |
Callbacks for the owner of the main clock.
void(* vlc_clock_cbs::on_update) (vlc_tick_t system_ts, vlc_tick_t ts, double rate, unsigned frame_rate, unsigned frame_rate_base, void *data) |
Called when a clock is updated.
system_ts | system date when the ts will be rendered, VLC_TICK_INVALID when the clock is reset or VLC_TICK_MAX when the update is forced (an output was still rendered while paused for example). Note: when valid, this date can be in the future, it is not necessarily now. |
ts | stream timestamp or VLC_TICK_INVALID when the clock is reset, should be subtracted with VLC_TICK_0 to get the original value |
rate | rate used when updated |
frame_rate | fps of the video owning the clock |
frame_rate_base | fps denominator |
data | opaque pointer set from vlc_clock_main_New() |
Referenced by EsOutCreateDecoder(), vlc_clock_main_Create(), and vlc_clock_on_update().