AVIOContext Struct Reference

Bytestream IO Context. More...

#include <avio.h>


Data Fields

unsigned char * buffer
int buffer_size
unsigned char * buf_ptr
unsigned char * buf_end
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)
int64_t pos
 position in the file of the current buffer
int must_flush
 true if the next seek should flush
int eof_reached
 true if eof reached
int write_flag
 true if open for writing
int is_streamed
int max_packet_size
unsigned long checksum
unsigned char * checksum_ptr
unsigned long(* update_checksum )(unsigned long checksum, const uint8_t *buf, unsigned int size)
int error
 contains the error code or 0 if no error happened
int(* read_pause )(void *opaque, int pause)
int64_t(* read_seek )(void *opaque, int stream_index, int64_t timestamp, int flags)


Detailed Description

Bytestream IO Context.

New fields can be added to the end with minor version bumps. Removal, reordering and changes to existing fields require a major version bump. sizeof(AVIOContext) must not be used outside libav*.

Definition at line 342 of file avio.h.


Field Documentation

unsigned char* AVIOContext::buffer

unsigned char* AVIOContext::buf_ptr

unsigned char * AVIOContext::buf_end

int(* AVIOContext::read_packet)(void *opaque, uint8_t *buf, int buf_size)

int(* AVIOContext::write_packet)(void *opaque, uint8_t *buf, int buf_size)

Referenced by ffio_init_context(), and flush_buffer().

int64_t(* AVIOContext::seek)(void *opaque, int64_t offset, int whence)

true if the next seek should flush

Definition at line 351 of file avio.h.

Referenced by avio_seek(), ffio_init_context(), ffio_rewind_with_probe_data(), and put_flush_packet().

true if open for writing

Definition at line 353 of file avio.h.

Referenced by avio_seek(), ffio_rewind_with_probe_data(), url_resetbuf(), and url_setbufsize().

Definition at line 355 of file avio.h.

Referenced by ffio_init_context(), fill_buffer(), rtp_write_header(), and url_fget_max_packet_size().

unsigned long AVIOContext::checksum

Definition at line 356 of file avio.h.

Referenced by fill_buffer(), flush_buffer(), get_checksum(), and init_checksum().

unsigned char* AVIOContext::checksum_ptr

Definition at line 357 of file avio.h.

Referenced by fill_buffer(), flush_buffer(), get_checksum(), and init_checksum().

unsigned long(* AVIOContext::update_checksum)(unsigned long checksum, const uint8_t *buf, unsigned int size)

contains the error code or 0 if no error happened

Definition at line 359 of file avio.h.

Referenced by avio_read(), ffio_init_context(), fill_buffer(), flush_buffer(), and url_ferror().

int(* AVIOContext::read_pause)(void *opaque, int pause)

int64_t(* AVIOContext::read_seek)(void *opaque, int stream_index, int64_t timestamp, int flags)


The documentation for this struct was generated from the following file:

Generated on Mon May 2 19:50:33 2011 for FFmpeg by  doxygen 1.5.6