Functions | |
BGAV_PUBLIC const gavl_audio_format_t * | bgav_get_audio_format (bgav_t *bgav, int stream) |
Get the format of an audio stream. | |
BGAV_PUBLIC const gavl_video_format_t * | bgav_get_video_format (bgav_t *bgav, int stream) |
Get the format of a video stream. | |
BGAV_PUBLIC gavl_frame_table_t * | bgav_get_frame_table (bgav_t *bgav, int stream) |
Get the frame table of a video stream. | |
BGAV_PUBLIC const gavl_video_format_t * | bgav_get_subtitle_format (bgav_t *bgav, int stream) |
Get the video format of a subtitle stream. | |
BGAV_PUBLIC int | bgav_subtitle_is_text (bgav_t *bgav, int stream) |
Check if a subtitle is text or graphics based. | |
BGAV_PUBLIC const char * | bgav_get_audio_description (bgav_t *bgav, int stream) |
Get the description of an audio stream. | |
BGAV_PUBLIC const char * | bgav_get_audio_info (bgav_t *bgav, int stream) |
Get additional info about an audio stream. | |
BGAV_PUBLIC const char * | bgav_get_video_description (bgav_t *bgav, int stream) |
Get the description of a video stream. | |
BGAV_PUBLIC const char * | bgav_get_subtitle_description (bgav_t *bgav, int stream) |
Get the description of a subtitle stream. | |
BGAV_PUBLIC const char * | bgav_get_subtitle_info (bgav_t *bgav, int stream) |
Get additional info about a subtitle stream. | |
BGAV_PUBLIC int | bgav_can_pause (bgav_t *bgav) |
Query if a track is pausable. |
BGAV_PUBLIC const gavl_audio_format_t* bgav_get_audio_format | ( | bgav_t * | bgav, | |
int | stream | |||
) |
Get the format of an audio stream.
bgav | A decoder instance | |
stream | Stream index (starting with 0) |
BGAV_PUBLIC const gavl_video_format_t* bgav_get_video_format | ( | bgav_t * | bgav, | |
int | stream | |||
) |
Get the format of a video stream.
bgav | A decoder instance | |
stream | Stream index (starting with 0) |
Special care has to be taken, if the video stream consists of (a) still image(s). This is the case, when the framerate_mode member of the format is GAVL_FRAMERATE_STILL. See bgav_video_has_still.
BGAV_PUBLIC gavl_frame_table_t* bgav_get_frame_table | ( | bgav_t * | bgav, | |
int | stream | |||
) |
Get the frame table of a video stream.
bgav | A decoder instance | |
stream | Stream index (starting with 0) |
If you want to make sure that the frame table is available for as many files as possible, use sample accurate mode (see bgav_options_set_sample_accurate) The returned table (if non-null) must be freed by the caller with gavl_frame_table_destroy.
Since 1.0.2
BGAV_PUBLIC const gavl_video_format_t* bgav_get_subtitle_format | ( | bgav_t * | bgav, | |
int | stream | |||
) |
Get the video format of a subtitle stream.
bgav | A decoder instance | |
stream | Stream index (starting with 0) |
BGAV_PUBLIC int bgav_subtitle_is_text | ( | bgav_t * | bgav, | |
int | stream | |||
) |
Check if a subtitle is text or graphics based.
bgav | A decoder instance | |
stream | Stream index (starting with 0) |
BGAV_PUBLIC const char* bgav_get_audio_description | ( | bgav_t * | bgav, | |
int | stream | |||
) |
Get the description of an audio stream.
bgav | A decoder instance | |
stream | Stream index (starting with 0) |
BGAV_PUBLIC const char* bgav_get_audio_info | ( | bgav_t * | bgav, | |
int | stream | |||
) |
Get additional info about an audio stream.
bgav | A decoder instance | |
stream | Stream index (starting with 0) |
Note, that you can trust the return value of this function only, if you enabled the stream (see bgav_set_audio_stream) and started the decoders (see bgav_start).
BGAV_PUBLIC const char* bgav_get_video_description | ( | bgav_t * | bgav, | |
int | stream | |||
) |
Get the description of a video stream.
bgav | A decoder instance | |
stream | Stream index (starting with 0) |
BGAV_PUBLIC const char* bgav_get_subtitle_description | ( | bgav_t * | bgav, | |
int | stream | |||
) |
Get the description of a subtitle stream.
bgav | A decoder instance | |
stream | Stream index (starting with 0) |
BGAV_PUBLIC const char* bgav_get_subtitle_info | ( | bgav_t * | bgav, | |
int | stream | |||
) |
Get additional info about a subtitle stream.
bgav | A decoder instance | |
stream | Stream index (starting with 0) |
Note, that you can trust the return value of this function only, if you enabled the stream (see bgav_set_subtitle_stream) and started the decoders (see bgav_start).
BGAV_PUBLIC int bgav_can_pause | ( | bgav_t * | bgav | ) |
Query if a track is pausable.
bgav | A decoder instance |