Seeking
[Decoding of multimedia streams]


Functions

int bgav_can_seek (bgav_t *bgav)
 Check if a track is seekabkle.
void bgav_seek (bgav_t *bgav, gavl_time_t *time)
 Seek to a specific time.
void bgav_seek_scaled (bgav_t *bgav, gavl_time_t *time, int scale)
 Seek to a specific stream position.

Function Documentation

int bgav_can_seek ( bgav_t bgav  ) 

Check if a track is seekabkle.

Parameters:
bgav A decoder handle
Returns:
1 if the track is seekable, 0 else.

void bgav_seek ( bgav_t bgav,
gavl_time_t time 
)

Seek to a specific time.

Parameters:
bgav A decoder handle
time The time to seek to.
The time argument is changed to the actually seeked time, which can be different.

void bgav_seek_scaled ( bgav_t bgav,
gavl_time_t time,
int  scale 
)

Seek to a specific stream position.

Parameters:
bgav A decoder handle
time The time to seek to.
scale Timescale
This function allows sample and frame accurate seeking, if the following conditions are met:

Typically, only one stream will be positioned accurately. For editing applications, it's recommended, that separate decoder instances are opened for audio and video. They can then be positoned independently.

The time argument might be changed to the actually seeked time, which can be different. For sample accurate formats, it should always be unchanged.


Generated on Wed Jan 9 19:33:10 2008 for gmerlin_avdecoder by  doxygen 1.5.3