20 #ifndef AVFORMAT_AVIO_H 21 #define AVFORMAT_AVIO_H 37 #define AVIO_SEEKABLE_NORMAL 0x0001 50 typedef struct AVIOInterruptCB { 51 int (*callback)(
void*);
217 int (*read_packet)(
void *opaque, uint8_t *buf,
int buf_size);
218 int (*write_packet)(
void *opaque, uint8_t *buf,
int buf_size);
219 int64_t (*seek)(
void *opaque, int64_t offset,
int whence);
227 unsigned long (*update_checksum)(
unsigned long checksum,
const uint8_t *buf,
unsigned int size);
232 int (*read_pause)(
void *opaque,
int pause);
238 int64_t (*read_seek)(
void *opaque,
int stream_index,
239 int64_t timestamp,
int flags);
302 int (*write_data_type)(
void *opaque, uint8_t *buf,
int buf_size,
425 unsigned char *buffer,
429 int (*read_packet)(
void *opaque, uint8_t *buf,
int buf_size),
430 int (*write_packet)(
void *opaque, uint8_t *buf,
int buf_size),
431 int64_t (*seek)(
void *opaque, int64_t offset,
int whence));
485 #define AVSEEK_SIZE 0x10000 493 #define AVSEEK_FORCE 0x20000 606 #define AVIO_FLAG_READ 1 607 #define AVIO_FLAG_WRITE 2 608 #define AVIO_FLAG_READ_WRITE (AVIO_FLAG_READ|AVIO_FLAG_WRITE) 625 #define AVIO_FLAG_NONBLOCK 8 633 #define AVIO_FLAG_DIRECT 0x8000 759 int64_t timestamp,
int flags);
int avio_open(AVIOContext **s, const char *url, int flags)
void avio_wb64(AVIOContext *s, uint64_t val)
unsigned long checksum
Definition: avio.h:225
void avio_wl16(AVIOContext *s, unsigned int val)
int64_t filemode
Definition: avio.h:92
int64_t modification_timestamp
Definition: avio.h:84
int64_t avio_size(AVIOContext *s)
int64_t last_time
Definition: avio.h:315
struct AVIODirEntry AVIODirEntry
int avpriv_io_delete(const char *url)
int avio_put_str16be(AVIOContext *s, const char *str)
int avio_close_dyn_buf(AVIOContext *s, uint8_t **pbuffer)
int write_flag
Definition: avio.h:223
int avio_read_to_bprint(AVIOContext *h, struct AVBPrint *pb, size_t max_size)
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
int64_t avio_skip(AVIOContext *s, int64_t offset)
int error
Definition: avio.h:228
unsigned int avio_rb16(AVIOContext *s)
int writeout_count
Definition: avio.h:274
int avio_get_str16le(AVIOContext *pb, int maxlen, char *buf, int buflen)
int avio_open_dyn_buf(AVIOContext **s)
int ignore_boundary_point
Definition: avio.h:309
const AVClass * av_class
Definition: avio.h:160
int64_t group_id
Definition: avio.h:91
int avio_accept(AVIOContext *s, AVIOContext **c)
void avio_wl32(AVIOContext *s, unsigned int val)
unsigned int avio_rb32(AVIOContext *s)
struct AVIODirContext AVIODirContext
void avio_write_marker(AVIOContext *s, int64_t time, enum AVIODataMarkerType type)
unsigned char * buf_end
Definition: avio.h:211
uint64_t avio_rb64(AVIOContext *s)
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
const char * protocol_whitelist
Definition: avio.h:292
int avio_read(AVIOContext *s, unsigned char *buf, int size)
int avio_check(const char *url, int flags)
void avio_wl64(AVIOContext *s, uint64_t val)
unsigned char * buf_ptr
Definition: avio.h:210
int buffer_size
Definition: avio.h:209
int64_t bytes_read
Definition: avio.h:262
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))
unsigned int avio_rl32(AVIOContext *s)
int utf8
Definition: avio.h:81
const char * avio_enum_protocols(void **opaque, int output)
int avio_close(AVIOContext *s)
int64_t access_timestamp
Definition: avio.h:86
struct AVDictionary AVDictionary
Definition: dict.h:90
int64_t user_id
Definition: avio.h:90
int64_t maxsize
Definition: avio.h:249
#define av_printf_format(fmtpos, attrpos)
Definition: attributes.h:159
int avio_r8(AVIOContext *s)
void * opaque
Definition: avio.h:52
struct AVIOInterruptCB AVIOInterruptCB
int void avio_flush(AVIOContext *s)
unsigned int avio_rb24(AVIOContext *s)
void avio_free_directory_entry(AVIODirEntry **entry)
AVIODataMarkerType
Definition: avio.h:103
void avio_wb24(AVIOContext *s, unsigned int val)
int seekable
Definition: avio.h:243
int avpriv_io_move(const char *url_src, const char *url_dst)
int avio_put_str(AVIOContext *s, const char *str)
int direct
Definition: avio.h:256
int max_packet_size
Definition: avio.h:224
struct URLContext * url_context
Definition: avio.h:96
int must_flush
Definition: avio.h:221
int short_seek_threshold
Definition: avio.h:287
void avio_w8(AVIOContext *s, int b)
char * name
Definition: avio.h:79
struct AVIOContext AVIOContext
const char * avio_find_protocol_name(const char *url)
int avio_put_str16le(AVIOContext *s, const char *str)
int avio_open2(AVIOContext **s, const char *url, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options)
int avio_handshake(AVIOContext *c)
int avio_close_dir(AVIODirContext **s)
const char * protocol_blacklist
Definition: avio.h:297
void avio_wl24(AVIOContext *s, unsigned int val)
int avio_pause(AVIOContext *h, int pause)
void avio_wb16(AVIOContext *s, unsigned int val)
#define attribute_deprecated
Definition: attributes.h:98
int64_t pos
Definition: avio.h:220
int orig_buffer_size
Definition: avio.h:281
int seek_count
Definition: avio.h:268
unsigned int avio_rl16(AVIOContext *s)
unsigned char * buffer
Definition: avio.h:208
int avio_get_str16be(AVIOContext *pb, int maxlen, char *buf, int buflen)
AVIODirEntryType
Definition: avio.h:58
int eof_reached
Definition: avio.h:222
int64_t avio_seek_time(AVIOContext *h, int stream_index, int64_t timestamp, int flags)
int64_t status_change_timestamp
Definition: avio.h:88
int avio_read_dir(AVIODirContext *s, AVIODirEntry **next)
int avio_open_dir(AVIODirContext **s, const char *url, AVDictionary **options)
void avio_wb32(AVIOContext *s, unsigned int val)
void * opaque
Definition: avio.h:215
#define av_always_inline
Definition: attributes.h:43
int avio_get_str(AVIOContext *pb, int maxlen, char *buf, int buflen)
int avio_feof(AVIOContext *s)
unsigned int avio_rl24(AVIOContext *s)
int type
Definition: avio.h:80
unsigned char * checksum_ptr
Definition: avio.h:226
int avio_closep(AVIOContext **s)
uint64_t avio_rl64(AVIOContext *s)
int avio_printf(AVIOContext *s, const char *fmt,...) av_printf_format(2
int64_t size
Definition: avio.h:83