Data Structures |
| struct | AVIOContext |
| | Bytestream IO Context. More...
|
| struct | URLContext |
| | URL Context. More...
|
| struct | URLProtocol |
| struct | URLPollEntry |
Defines |
| #define | AVIO_SEEKABLE_NORMAL 0x0001 |
| | Seeking works like for a local file.
|
| #define | URL_PROTOCOL_FLAG_NESTED_SCHEME 1 |
| #define | URL_FLAG_NONBLOCK 4 |
| | Use non-blocking mode.
|
| #define | URL_EOF (-1) |
| #define | AVSEEK_SIZE 0x10000 |
| | Passing this as the "whence" parameter to a seek function causes it to return the filesize without seeking anywhere.
|
| #define | AVSEEK_FORCE 0x20000 |
| | Oring this flag as into the "whence" parameter to a seek function causes it to seek by any means (like reopening and linear reading) or other normally unreasonble means that can be extreemly slow.
|
| #define | AVIO_FLAG_NONBLOCK 4 |
| | Use non-blocking mode.
|
|
The flags argument to avio_open must be one of the following constants, optionally ORed with other flags.
|
| #define | URL_RDONLY 0 |
| | read-only
|
| #define | URL_WRONLY 1 |
| | write-only
|
| #define | URL_RDWR 2 |
| | read-write
|
| #define | AVIO_RDONLY 0 |
| | read-only
|
| #define | AVIO_WRONLY 1 |
| | write-only
|
| #define | AVIO_RDWR 2 |
| | read-write
|
Typedefs |
| typedef struct URLContext | URLContext |
| | URL Context.
|
| typedef struct URLProtocol | URLProtocol |
| typedef struct URLPollEntry | URLPollEntry |
| typedef int | URLInterruptCB (void) |
typedef attribute_deprecated
AVIOContext | ByteIOContext |
Functions |
| attribute_deprecated int | url_poll (URLPollEntry *poll_table, int n, int timeout) |
| attribute_deprecated int | url_open_protocol (URLContext **puc, struct URLProtocol *up, const char *url, int flags) |
| attribute_deprecated int | url_alloc (URLContext **h, const char *url, int flags) |
| attribute_deprecated int | url_connect (URLContext *h) |
| attribute_deprecated int | url_open (URLContext **h, const char *url, int flags) |
| attribute_deprecated int | url_read (URLContext *h, unsigned char *buf, int size) |
| attribute_deprecated int | url_read_complete (URLContext *h, unsigned char *buf, int size) |
| attribute_deprecated int | url_write (URLContext *h, const unsigned char *buf, int size) |
| attribute_deprecated int64_t | url_seek (URLContext *h, int64_t pos, int whence) |
| attribute_deprecated int | url_close (URLContext *h) |
| attribute_deprecated int64_t | url_filesize (URLContext *h) |
| attribute_deprecated int | url_get_file_handle (URLContext *h) |
| attribute_deprecated int | url_get_max_packet_size (URLContext *h) |
| attribute_deprecated void | url_get_filename (URLContext *h, char *buf, int buf_size) |
| attribute_deprecated int | av_url_read_pause (URLContext *h, int pause) |
| attribute_deprecated int64_t | av_url_read_seek (URLContext *h, int stream_index, int64_t timestamp, int flags) |
| attribute_deprecated void | url_set_interrupt_cb (int(*interrupt_cb)(void)) |
| URLProtocol * | av_protocol_next (URLProtocol *p) |
| | returns the next registered protocol after the given protocol (the first if NULL is given), or NULL if protocol is the last one.
|
| attribute_deprecated int | av_register_protocol2 (URLProtocol *protocol, int size) |
| | Register the URLProtocol protocol.
|
| attribute_deprecated int | init_put_byte (AVIOContext *s, unsigned char *buffer, int buffer_size, int write_flag, void *opaque, int(*read_packet)(void *opaque, uint8_t *buf, int buf_size), int(*write_packet)(void *opaque, uint8_t *buf, int buf_size), int64_t(*seek)(void *opaque, int64_t offset, int whence)) |
| attribute_deprecated AVIOContext * | av_alloc_put_byte (unsigned char *buffer, int buffer_size, int write_flag, void *opaque, int(*read_packet)(void *opaque, uint8_t *buf, int buf_size), int(*write_packet)(void *opaque, uint8_t *buf, int buf_size), int64_t(*seek)(void *opaque, int64_t offset, int whence)) |
| attribute_deprecated int | get_buffer (AVIOContext *s, unsigned char *buf, int size) |
| attribute_deprecated int | get_partial_buffer (AVIOContext *s, unsigned char *buf, int size) |
| attribute_deprecated int | get_byte (AVIOContext *s) |
| attribute_deprecated unsigned int | get_le16 (AVIOContext *s) |
| attribute_deprecated unsigned int | get_le24 (AVIOContext *s) |
| attribute_deprecated unsigned int | get_le32 (AVIOContext *s) |
| attribute_deprecated uint64_t | get_le64 (AVIOContext *s) |
| attribute_deprecated unsigned int | get_be16 (AVIOContext *s) |
| attribute_deprecated unsigned int | get_be24 (AVIOContext *s) |
| attribute_deprecated unsigned int | get_be32 (AVIOContext *s) |
| attribute_deprecated uint64_t | get_be64 (AVIOContext *s) |
| attribute_deprecated void | put_byte (AVIOContext *s, int b) |
| attribute_deprecated void | put_nbyte (AVIOContext *s, int b, int count) |
| attribute_deprecated void | put_buffer (AVIOContext *s, const unsigned char *buf, int size) |
| attribute_deprecated void | put_le64 (AVIOContext *s, uint64_t val) |
| attribute_deprecated void | put_be64 (AVIOContext *s, uint64_t val) |
| attribute_deprecated void | put_le32 (AVIOContext *s, unsigned int val) |
| attribute_deprecated void | put_be32 (AVIOContext *s, unsigned int val) |
| attribute_deprecated void | put_le24 (AVIOContext *s, unsigned int val) |
| attribute_deprecated void | put_be24 (AVIOContext *s, unsigned int val) |
| attribute_deprecated void | put_le16 (AVIOContext *s, unsigned int val) |
| attribute_deprecated void | put_be16 (AVIOContext *s, unsigned int val) |
| attribute_deprecated void | put_tag (AVIOContext *s, const char *tag) |
| attribute_deprecated int | av_url_read_fpause (AVIOContext *h, int pause) |
| attribute_deprecated int64_t | av_url_read_fseek (AVIOContext *h, int stream_index, int64_t timestamp, int flags) |
| attribute_deprecated int | url_fopen (AVIOContext **s, const char *url, int flags) |
| attribute_deprecated int | url_fclose (AVIOContext *s) |
| attribute_deprecated int64_t | url_fseek (AVIOContext *s, int64_t offset, int whence) |
| attribute_deprecated int | url_fskip (AVIOContext *s, int64_t offset) |
| attribute_deprecated int64_t | url_ftell (AVIOContext *s) |
| attribute_deprecated int64_t | url_fsize (AVIOContext *s) |
| attribute_deprecated int | url_fgetc (AVIOContext *s) |
| attribute_deprecated int | url_setbufsize (AVIOContext *s, int buf_size) |
| attribute_deprecated int | url_fprintf (AVIOContext *s, const char *fmt,...) |
| attribute_deprecated void | put_flush_packet (AVIOContext *s) |
| attribute_deprecated int | url_open_dyn_buf (AVIOContext **s) |
| attribute_deprecated int | url_open_dyn_packet_buf (AVIOContext **s, int max_packet_size) |
| attribute_deprecated int | url_close_dyn_buf (AVIOContext *s, uint8_t **pbuffer) |
| attribute_deprecated int | url_fdopen (AVIOContext **s, URLContext *h) |
| attribute_deprecated int | url_ferror (AVIOContext *s) |
| attribute_deprecated int | udp_set_remote_url (URLContext *h, const char *uri) |
| attribute_deprecated int | udp_get_local_port (URLContext *h) |
| attribute_deprecated void | init_checksum (AVIOContext *s, unsigned long(*update_checksum)(unsigned long c, const uint8_t *p, unsigned int len), unsigned long checksum) |
| attribute_deprecated unsigned long | get_checksum (AVIOContext *s) |
| attribute_deprecated void | put_strz (AVIOContext *s, const char *buf) |
| attribute_deprecated char * | url_fgets (AVIOContext *s, char *buf, int buf_size) |
| attribute_deprecated char * | get_strz (AVIOContext *s, char *buf, int maxlen) |
| static attribute_deprecated int | url_is_streamed (AVIOContext *s) |
| attribute_deprecated URLContext * | url_fileno (AVIOContext *s) |
| attribute_deprecated int | url_fget_max_packet_size (AVIOContext *s) |
| attribute_deprecated int | url_open_buf (AVIOContext **s, uint8_t *buf, int buf_size, int flags) |
| attribute_deprecated int | url_close_buf (AVIOContext *s) |
| | return the written or read size
|
| attribute_deprecated int | url_exist (const char *url) |
| | Return a non-zero value if the resource indicated by url exists, 0 otherwise.
|
| int | avio_check (const char *url, int flags) |
| | Return AVIO_* access flags corresponding to the access permissions of the resource in url, or a negative value corresponding to an AVERROR code in case of failure.
|
| void | avio_set_interrupt_cb (int(*interrupt_cb)(void)) |
| | The callback is called in blocking functions to test regulary if asynchronous interruption is needed.
|
| attribute_deprecated int | register_protocol (URLProtocol *protocol) |
| attribute_deprecated int | av_register_protocol (URLProtocol *protocol) |
| AVIOContext * | avio_alloc_context (unsigned char *buffer, int buffer_size, int write_flag, void *opaque, int(*read_packet)(void *opaque, uint8_t *buf, int buf_size), int(*write_packet)(void *opaque, uint8_t *buf, int buf_size), int64_t(*seek)(void *opaque, int64_t offset, int whence)) |
| | Allocate and initialize an AVIOContext for buffered I/O.
|
| void | avio_w8 (AVIOContext *s, int b) |
| void | avio_write (AVIOContext *s, const unsigned char *buf, int size) |
| void | avio_wl64 (AVIOContext *s, uint64_t val) |
| void | avio_wb64 (AVIOContext *s, uint64_t val) |
| void | avio_wl32 (AVIOContext *s, unsigned int val) |
| void | avio_wb32 (AVIOContext *s, unsigned int val) |
| void | avio_wl24 (AVIOContext *s, unsigned int val) |
| void | avio_wb24 (AVIOContext *s, unsigned int val) |
| void | avio_wl16 (AVIOContext *s, unsigned int val) |
| void | avio_wb16 (AVIOContext *s, unsigned int val) |
| int | avio_put_str (AVIOContext *s, const char *str) |
| | Write a NULL-terminated string.
|
| int | avio_put_str16le (AVIOContext *s, const char *str) |
| | Convert an UTF-8 string to UTF-16LE and write it.
|
| int64_t | avio_seek (AVIOContext *s, int64_t offset, int whence) |
| | fseek() equivalent for AVIOContext.
|
| int64_t | avio_skip (AVIOContext *s, int64_t offset) |
| | Skip given number of bytes forward.
|
| static av_always_inline int64_t | avio_tell (AVIOContext *s) |
| | ftell() equivalent for AVIOContext.
|
| int64_t | avio_size (AVIOContext *s) |
| | Get the filesize.
|
| int | url_feof (AVIOContext *s) |
| | feof() equivalent for AVIOContext.
|
| int | avio_printf (AVIOContext *s, const char *fmt,...) |
| void | avio_flush (AVIOContext *s) |
| int | avio_read (AVIOContext *s, unsigned char *buf, int size) |
| | Read size bytes from AVIOContext into buf.
|
| int | avio_get_str (AVIOContext *pb, int maxlen, char *buf, int buflen) |
| | Read a string from pb into buf.
|
| int | avio_get_str16le (AVIOContext *pb, int maxlen, char *buf, int buflen) |
| | Read a UTF-16 string from pb and convert it to UTF-8.
|
| int | avio_get_str16be (AVIOContext *pb, int maxlen, char *buf, int buflen) |
| int | url_resetbuf (AVIOContext *s, int flags) |
| | Reset the buffer for reading or writing.
|
| int | avio_open (AVIOContext **s, const char *url, int flags) |
| | Create and initialize a AVIOContext for accessing the resource indicated by url.
|
| int | avio_close (AVIOContext *s) |
| | Close the resource accessed by the AVIOContext s and free it.
|
| int | avio_open_dyn_buf (AVIOContext **s) |
| | Open a write only memory stream.
|
| int | avio_close_dyn_buf (AVIOContext *s, uint8_t **pbuffer) |
| | Return the written size and a pointer to the buffer.
|
| int | udp_get_file_handle (URLContext *h) |
| | Return the udp file handle for select() usage to wait for several RTP streams at the same time.
|
| const char * | avio_enum_protocols (void **opaque, int output) |
| | Iterate through names of available protocols.
|
| int | avio_pause (AVIOContext *h, int pause) |
| | Pause and resume playing - only meaningful if using a network streaming protocol (e.g.
|
| int64_t | avio_seek_time (AVIOContext *h, int stream_index, int64_t timestamp, int flags) |
| | Seek to a given timestamp relative to some component stream.
|
|
- Note:
- return 0 if EOF, so you cannot use it if EOF handling is necessary
|
| int | avio_r8 (AVIOContext *s) |
| unsigned int | avio_rl16 (AVIOContext *s) |
| unsigned int | avio_rl24 (AVIOContext *s) |
| unsigned int | avio_rl32 (AVIOContext *s) |
| uint64_t | avio_rl64 (AVIOContext *s) |
| unsigned int | avio_rb16 (AVIOContext *s) |
| unsigned int | avio_rb24 (AVIOContext *s) |
| unsigned int | avio_rb32 (AVIOContext *s) |
| uint64_t | avio_rb64 (AVIOContext *s) |
Variables |
| URLInterruptCB * | url_interrupt_cb |
| URLProtocol * | first_protocol |
Buffered I/O operations.