Functions | |
int | bgav_read_video (bgav_t *bgav, gavl_video_frame_t *frame, int stream) |
Decode a video frame. | |
int | bgav_read_audio (bgav_t *bgav, gavl_audio_frame_t *frame, int stream, int num_samples) |
Decode audio samples. | |
int | bgav_has_subtitle (bgav_t *bgav, int stream) |
Check, if a new subtitle is available. | |
int | bgav_read_subtitle_overlay (bgav_t *bgav, gavl_overlay_t *ovl, int stream) |
Decode an overlay subtitle. | |
int | bgav_read_subtitle_text (bgav_t *bgav, char **ret, int *ret_alloc, int64_t *start_time, int64_t *duration, int stream) |
Decode a text subtitle. |
int bgav_read_video | ( | bgav_t * | bgav, | |
gavl_video_frame_t * | frame, | |||
int | stream | |||
) |
Decode a video frame.
bgav | A decoder instance | |
frame | The frame to which the image will be decoded. | |
stream | Stream index (starting with 0) |
int bgav_read_audio | ( | bgav_t * | bgav, | |
gavl_audio_frame_t * | frame, | |||
int | stream, | |||
int | num_samples | |||
) |
Decode audio samples.
bgav | A decoder instance | |
frame | The frame to which the samples will be decoded. | |
stream | Stream index (starting with 0) | |
num_samples | Number of samples to be decoded |
int bgav_has_subtitle | ( | bgav_t * | bgav, | |
int | stream | |||
) |
Check, if a new subtitle is available.
bgav | A decoder instance | |
stream | Stream index (starting with 0) |
int bgav_read_subtitle_overlay | ( | bgav_t * | bgav, | |
gavl_overlay_t * | ovl, | |||
int | stream | |||
) |
Decode an overlay subtitle.
bgav | A decoder instance | |
ovl | The overlay to which the subtitle will be decoded. | |
stream | Stream index (starting with 0) |
int bgav_read_subtitle_text | ( | bgav_t * | bgav, | |
char ** | ret, | |||
int * | ret_alloc, | |||
int64_t * | start_time, | |||
int64_t * | duration, | |||
int | stream | |||
) |
Decode a text subtitle.
bgav | A decoder instance | |
ret | The string, where the text will be stored. | |
ret_alloc | The number of allocated bytes for ret | |
start_time | Returns the start time | |
duration | Returns the duration | |
stream | Stream index (starting with 0) |