libgpac
Documentation of the core library of GPAC
clock.c File Reference
+ Include dependency graph for clock.c:

Functions

static GF_Clock * gf_clock_new (GF_Compositor *compositor)
 
void gf_clock_del (GF_Clock *ck)
 
GF_Clock * gf_clock_find (GF_List *Clocks, u16 clock_id, u16 ES_ID)
 
static GF_Clock * gf_ck_look_for_clock_dep (GF_Scene *scene, u16 clock_id)
 
static void gf_ck_resolve_clock_dep (GF_List *clocks, GF_Scene *scene, GF_Clock *new_ck, u16 Clock_ESID)
 
GF_Clock * gf_clock_attach (GF_List *clocks, GF_Scene *scene, u16 clock_id, u16 ES_ID, s32 hasOCR)
 
void gf_clock_reset (GF_Clock *ck)
 
void gf_clock_set_time (GF_Clock *ck, u64 ref_TS, u32 timescale)
 
void gf_clock_pause (GF_Clock *ck)
 
void gf_clock_resume (GF_Clock *ck)
 
u32 gf_clock_real_time (GF_Clock *ck)
 
GF_EXPORT u32 gf_clock_time (GF_Clock *ck)
 
u64 gf_clock_to_media_time (GF_Clock *ck, u32 clock_val)
 
u64 gf_clock_media_time (GF_Clock *ck)
 
u32 gf_clock_elapsed_time (GF_Clock *ck)
 
Bool gf_clock_is_started (GF_Clock *ck)
 
void gf_clock_buffer_on (GF_Clock *ck)
 
void gf_clock_buffer_off (GF_Clock *ck)
 
void gf_clock_set_speed (GF_Clock *ck, Fixed speed)
 
void gf_clock_set_audio_delay (GF_Clock *ck, s32 ms_delay)
 
u32 gf_timestamp_to_clocktime (u64 ts, u32 timescale)
 
u64 gf_clock_time_absolute (GF_Clock *ck)
 
s32 gf_clock_diff (GF_Clock *ck, u32 ck_time, u32 ts)
 

Function Documentation

◆ gf_clock_new()

static GF_Clock* gf_clock_new ( GF_Compositor *  compositor)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_clock_del()

void gf_clock_del ( GF_Clock *  ck)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_clock_find()

GF_Clock* gf_clock_find ( GF_List *  Clocks,
u16  clock_id,
u16  ES_ID 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_ck_look_for_clock_dep()

static GF_Clock* gf_ck_look_for_clock_dep ( GF_Scene *  scene,
u16  clock_id 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_ck_resolve_clock_dep()

static void gf_ck_resolve_clock_dep ( GF_List *  clocks,
GF_Scene *  scene,
GF_Clock *  new_ck,
u16  Clock_ESID 
)
static
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_clock_attach()

GF_Clock* gf_clock_attach ( GF_List *  clocks,
GF_Scene *  scene,
u16  clock_id,
u16  ES_ID,
s32  hasOCR 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_clock_reset()

void gf_clock_reset ( GF_Clock *  ck)
+ Here is the caller graph for this function:

◆ gf_clock_set_time()

void gf_clock_set_time ( GF_Clock *  ck,
u64  ref_TS,
u32  timescale 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_clock_pause()

void gf_clock_pause ( GF_Clock *  ck)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_clock_resume()

void gf_clock_resume ( GF_Clock *  ck)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_clock_real_time()

u32 gf_clock_real_time ( GF_Clock *  ck)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_clock_time()

GF_EXPORT u32 gf_clock_time ( GF_Clock *  ck)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_clock_to_media_time()

u64 gf_clock_to_media_time ( GF_Clock *  ck,
u32  clock_val 
)
+ Here is the caller graph for this function:

◆ gf_clock_media_time()

u64 gf_clock_media_time ( GF_Clock *  ck)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_clock_elapsed_time()

u32 gf_clock_elapsed_time ( GF_Clock *  ck)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_clock_is_started()

Bool gf_clock_is_started ( GF_Clock *  ck)
+ Here is the caller graph for this function:

◆ gf_clock_buffer_on()

void gf_clock_buffer_on ( GF_Clock *  ck)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_clock_buffer_off()

void gf_clock_buffer_off ( GF_Clock *  ck)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_clock_set_speed()

void gf_clock_set_speed ( GF_Clock *  ck,
Fixed  speed 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_clock_set_audio_delay()

void gf_clock_set_audio_delay ( GF_Clock *  ck,
s32  ms_delay 
)
+ Here is the caller graph for this function:

◆ gf_timestamp_to_clocktime()

u32 gf_timestamp_to_clocktime ( u64  ts,
u32  timescale 
)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_clock_time_absolute()

u64 gf_clock_time_absolute ( GF_Clock *  ck)
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ gf_clock_diff()

s32 gf_clock_diff ( GF_Clock *  ck,
u32  ck_time,
u32  ts 
)
+ Here is the caller graph for this function: