VLC 4.0.0-dev
Loading...
Searching...
No Matches
vlc_clock_cbs Struct Reference

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.
 

Detailed Description

Callbacks for the owner of the main clock.

Field Documentation

◆ on_update

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.

Parameters
system_tssystem 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.
tsstream timestamp or VLC_TICK_INVALID when the clock is reset, should be subtracted with VLC_TICK_0 to get the original value
raterate used when updated
frame_ratefps of the video owning the clock
frame_rate_basefps denominator
dataopaque pointer set from vlc_clock_main_New()

Referenced by EsOutCreateDecoder(), vlc_clock_main_Create(), and vlc_clock_on_update().


The documentation for this struct was generated from the following file: