Main Page | Modules | Directories | File List

Encoding related functions


Functions

void lqt_gavl_add_audio_track (quicktime_t *file, const gavl_audio_format_t *format, lqt_codec_info_t *codec)
 Set up an audio stream for encoding.
void lqt_gavl_add_video_track (quicktime_t *file, const gavl_video_format_t *format, lqt_codec_info_t *codec)
 Set up a video stream for encoding.
void lqt_gavl_encode_video (quicktime_t *file, int track, gavl_video_frame_t *frame, uint8_t **rows)
 Encode a video frame.
void lqt_gavl_encode_audio (quicktime_t *file, int track, gavl_audio_frame_t *frame)
 Encode a video frame.

Function Documentation

void lqt_gavl_add_audio_track quicktime_t file,
const gavl_audio_format_t format,
lqt_codec_info_t codec
 

Set up an audio stream for encoding.

Parameters:
file A quicktime handle
format Audio format
codec The codec to use
This function sets up an audio stream for encoding. You must get the actual format with lqt_gavl_get_audio_format after you configured the codec with lqt_set_audio_parameter.

void lqt_gavl_add_video_track quicktime_t file,
const gavl_video_format_t format,
lqt_codec_info_t codec
 

Set up a video stream for encoding.

Parameters:
file A quicktime handle
format Video format
codec The codec to use
This function sets up a video stream for encoding. You must get the actual format with lqt_gavl_get_video_format after you configured the codec with lqt_set_video_parameter.

void lqt_gavl_encode_video quicktime_t file,
int  track,
gavl_video_frame_t frame,
uint8_t **  rows
 

Encode a video frame.

Parameters:
file A quicktime handle
track Track index (starting with 0)
frame Video frame
rows Rows (created with lqt_gavl_rows_create)
Pass one audio frame to libquicktime for encoding. The format must be the same as returned by lqt_gavl_add_audio_track. The samples_per_frame member of the frame can be larger than the samples_per_frame member of the format.

void lqt_gavl_encode_audio quicktime_t file,
int  track,
gavl_audio_frame_t frame
 

Encode a video frame.

Parameters:
file A quicktime handle
track Track index (starting with 0)
frame Video frame
Pass one video frame to libquicktime for encoding. The format must be the same as returned by lqt_gavl_add_video_track. If the time_scaled member of the frame is no multiple of the frame_duration the framerate is variable.


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