Functions | |
int | bgav_open (bgav_t *bgav, const char *location) |
Open a file or URL. | |
int | bgav_open_vcd (bgav_t *bgav, const char *location) |
Open a VCD device. | |
int | bgav_open_dvd (bgav_t *bgav, const char *location) |
Open a DVD device. | |
int | bgav_open_dvb (bgav_t *bgav, const char *location) |
Open a DVB device. | |
int | bgav_open_fd (bgav_t *bgav, int fd, int64_t total_size, const char *mimetype) |
Open a decoder from a filedescriptor. | |
int | bgav_open_callbacks (bgav_t *bgav, int(*read_callback)(void *priv, uint8_t *data, int len), int64_t(*seek_callback)(void *priv, uint64_t pos, int whence), void *priv, const char *filename, const char *mimetype) |
Open a decoder with callbacks. |
int bgav_open | ( | bgav_t * | bgav, | |
const char * | location | |||
) |
Open a file or URL.
bgav | A decoder instance | |
location | The URL or path to open |
int bgav_open_vcd | ( | bgav_t * | bgav, | |
const char * | location | |||
) |
Open a VCD device.
bgav | A decoder instance | |
location | The device node |
int bgav_open_dvd | ( | bgav_t * | bgav, | |
const char * | location | |||
) |
Open a DVD device.
bgav | A decoder instance | |
location | The device node |
int bgav_open_dvb | ( | bgav_t * | bgav, | |
const char * | location | |||
) |
Open a DVB device.
bgav | A decoder instance | |
location | The device directory |
int bgav_open_fd | ( | bgav_t * | bgav, | |
int | fd, | |||
int64_t | total_size, | |||
const char * | mimetype | |||
) |
Open a decoder from a filedescriptor.
bgav | A decoder instance | |
fd | The filedescriptor | |
total_size | The total number of available bytes or 0 if this info is not known. | |
mimetype | The mimetype of the input or NULL if this info is not known. |
int bgav_open_callbacks | ( | bgav_t * | bgav, | |
int(*)(void *priv, uint8_t *data, int len) | read_callback, | |||
int64_t(*)(void *priv, uint64_t pos, int whence) | seek_callback, | |||
void * | priv, | |||
const char * | filename, | |||
const char * | mimetype | |||
) |
Open a decoder with callbacks.
bgav | A decoder instance | |
read_callback | Callback for reading data | |
seek_callback | Callback for seeking | |
priv | Private argument for the callbacks | |
filename | The filename of the input or NULL if this info is not known. | |
mimetype | The mimetype of the input or NULL if this info is not known. |