Main Page | Modules | Directories | File List

Decoding related functions


Functions

int lqt_gavl_get_audio_format (quicktime_t *file, int track, gavl_audio_format_t *format)
 Get the audio format for decoding.
int lqt_gavl_get_video_format (quicktime_t *file, int track, gavl_video_format_t *format)
 Get the video format for decoding.
int lqt_gavl_decode_video (quicktime_t *file, int track, gavl_video_frame_t *frame, uint8_t **rows)
 Decode one video frame.
int lqt_gavl_decode_audio (quicktime_t *file, int track, gavl_audio_frame_t *frame, int samples)
 Decode one audio frame.
void lqt_gavl_seek (quicktime_t *file, gavl_time_t *time)
 Seek all tracks to a specific point.
gavl_time_t lqt_gavl_duration (quicktime_t *file)
 Get the total duration.

Function Documentation

int lqt_gavl_get_audio_format quicktime_t file,
int  track,
gavl_audio_format_t format
 

Get the audio format for decoding.

Parameters:
file A quicktime handle
track Track index (starting with 0)
format Returns the format.
Returns:
1 on success, 0 if there is no such track.

int lqt_gavl_get_video_format quicktime_t file,
int  track,
gavl_video_format_t format
 

Get the video format for decoding.

Parameters:
file A quicktime handle
track Track index (starting with 0)
format Returns the format.
Returns:
1 on success, 0 if there is no such track.

int lqt_gavl_decode_video quicktime_t file,
int  track,
gavl_video_frame_t frame,
uint8_t **  rows
 

Decode one video frame.

Parameters:
file A quicktime handle
track Track index (starting with 0)
frame The frame
rows Rows (created with lqt_gavl_rows_create)
Returns:
1 on success, 0 for EOF.

int lqt_gavl_decode_audio quicktime_t file,
int  track,
gavl_audio_frame_t frame,
int  samples
 

Decode one audio frame.

Parameters:
file A quicktime handle
track Track index (starting with 0)
frame The frame
samples Number of samples to decode.
Returns:
The real number of decoded samples, 0 for EOF.

void lqt_gavl_seek quicktime_t file,
gavl_time_t time
 

Seek all tracks to a specific point.

Parameters:
file A quicktime handle
time The time to seek to.
This call sets the time argument to the real time, we have now. It might be changed if you seek between 2 video frames.

gavl_time_t lqt_gavl_duration quicktime_t file  ) 
 

Get the total duration.

Parameters:
file A quicktime handle
Returns:
The duration
Return the whole duration of the file as a gavl_time_t


Generated on Thu Jun 8 01:40:10 2006 for lqtgavl by  doxygen 1.4.4