void(* AVSyncFrameFree)(AVSyncVideoFrame *frame)
Frame delete callback prototype.
Definition avsync-soc.h:105
int avsync_soc_set_mode(void *sync, int type)
Sets Mode for AV Sync session.
AVSyncVideoFrame * avsync_soc_pop_frame(void *sync)
Pop a video frame from the AVSync module.
void avsync_soc_free_frame_callback(void *sync, AVSyncFrameFree *freeCB)
Registers the callback to free the allocated video frames and metadata.
bool avsync_soc_push_frame(void *sync, AVSyncVideoFrame *f)
Push a video frame to the AVSync module.
void avsync_soc_eos(void *sync)
Signals EOS for AV Sync session.
void avsync_soc_pause(void *sync, bool pause)
Pauses or resume AV Sync session.
void * avsync_soc_init(int refreshRate, int syncType, int *sessionId, int *session)
Initializes AV Sync session.
void avsync_soc_set_interval(void *sync, uint32_t interval)
Sets vsync interval for AV Sync session.
struct AVSyncVideoFrame_ AVSyncVideoFrame
void avsync_soc_set_rate(void *sync, float rate)
Sets playback rate for AV Sync session.
void avsync_soc_term(void *sync, int session)
Terminates AV Sync session.
This structure is to encapsulate information related to a video frame's metadata.
Definition avsync-soc.h:89
uint32_t pts
Definition avsync-soc.h:96
uint32_t duration
Definition avsync-soc.h:97
void * sync
Definition avsync-soc.h:92
void * syncFrame
Definition avsync-soc.h:95
void * videoFrame
Definition avsync-soc.h:94
void * context
Definition avsync-soc.h:90