#include <avio.h>
Data Fields | |
unsigned char * | buffer |
Start of the buffer. | |
int | buffer_size |
Maximum buffer size. | |
unsigned char * | buf_ptr |
Current position in the buffer. | |
unsigned char * | buf_end |
End of the data, may be less than buffer+buffer_size if the read function returned less data than requested, e.g. | |
void * | opaque |
A private pointer, passed to the read/write/seek/. | |
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 | |
attribute_deprecated 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) |
Pause or resume playback for network streaming protocols - e.g. | |
int64_t(* | read_seek )(void *opaque, int stream_index, int64_t timestamp, int flags) |
Seek to a given timestamp in stream with the specified stream_index. | |
int | seekable |
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable. |
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 50 of file avio.h.
unsigned char* AVIOContext::buf_end |
End of the data, may be less than buffer+buffer_size if the read function returned less data than requested, e.g.
for streams where no more data has been received yet.
Definition at line 54 of file avio.h.
Referenced by avio_r8(), avio_read(), avio_seek(), avio_seek_time(), avio_w8(), avio_write(), ffio_fill(), ffio_init_context(), ffio_read_partial(), ffio_rewind_with_probe_data(), fill_buffer(), init_packetizer(), read_gab2_sub(), url_fgetc(), and url_resetbuf().
unsigned char* AVIOContext::buf_ptr |
Current position in the buffer.
Definition at line 53 of file avio.h.
Referenced by asf_write_trailer(), avio_r8(), avio_read(), avio_seek(), avio_seek_time(), avio_w8(), avio_write(), ffio_fill(), ffio_get_checksum(), ffio_init_checksum(), ffio_init_context(), ffio_read_partial(), ffio_rewind_with_probe_data(), ffio_set_buf_size(), fill_buffer(), flush_buffer(), mxf_write_content_storage(), mxf_write_identification(), mxf_write_multi_descriptor(), mxf_write_package(), mxf_write_preface(), mxf_write_sequence(), mxf_write_structural_component(), mxf_write_track(), read_gab2_sub(), rv10_write_header(), url_close_buf(), and url_fgetc().
unsigned char* AVIOContext::buffer |
Start of the buffer.
Definition at line 51 of file avio.h.
Referenced by asf_write_trailer(), avio_close(), avio_read(), avio_seek(), ffio_init_context(), ffio_rewind_with_probe_data(), ffio_set_buf_size(), fill_buffer(), flush_buffer(), free_variant_list(), url_close_buf(), and url_resetbuf().
Maximum buffer size.
Definition at line 52 of file avio.h.
Referenced by avio_read(), ff_gen_syncpoint_search(), ffio_init_context(), ffio_rewind_with_probe_data(), ffio_set_buf_size(), fill_buffer(), and url_resetbuf().
unsigned long AVIOContext::checksum |
Definition at line 71 of file avio.h.
Referenced by ffio_get_checksum(), ffio_init_checksum(), fill_buffer(), and flush_buffer().
unsigned char* AVIOContext::checksum_ptr |
Definition at line 72 of file avio.h.
Referenced by ffio_get_checksum(), ffio_init_checksum(), fill_buffer(), and flush_buffer().
true if eof reached
Definition at line 65 of file avio.h.
Referenced by applehttp_read_seek(), asfrtp_parse_packet(), avio_read(), avio_seek(), dfa_read_packet(), ff_asf_get_packet(), ffio_init_context(), ffio_rewind_with_probe_data(), fill_buffer(), read_thread(), recheck_discard_flags(), url_feof(), and xwma_read_header().
contains the error code or 0 if no error happened
Definition at line 74 of file avio.h.
Referenced by avio_read(), cin_read_frame_header(), ff_asf_get_packet(), ffio_init_context(), ffio_read_partial(), fill_buffer(), flush_buffer(), flv_write_packet(), mxg_read_packet(), read_thread(), url_ferror(), and wtvfile_read_packet().
Definition at line 70 of file avio.h.
Referenced by avio_close_dyn_buf(), ffio_init_context(), fill_buffer(), rtp_write_header(), and url_fget_max_packet_size().
true if the next seek should flush
Definition at line 64 of file avio.h.
Referenced by avio_flush(), avio_seek(), ffio_init_context(), and ffio_rewind_with_probe_data().
void* AVIOContext::opaque |
A private pointer, passed to the read/write/seek/.
.. functions.
Definition at line 58 of file avio.h.
Referenced by avio_close(), avio_close_dyn_buf(), avio_pause(), avio_read(), avio_seek(), avio_seek_time(), avio_size(), ffio_init_context(), fill_buffer(), flush_buffer(), url_fileno(), and wtvfile_close().
int64_t AVIOContext::pos |
position in the file of the current buffer
Definition at line 63 of file avio.h.
Referenced by asfrtp_parse_packet(), avio_read(), avio_seek(), avio_seek_time(), avio_size(), ffio_init_context(), ffio_rewind_with_probe_data(), ffm_read_packet(), fill_buffer(), flush_buffer(), and init_packetizer().
int(* AVIOContext::read_packet)(void *opaque, uint8_t *buf, int buf_size) |
Referenced by avio_read(), ffio_init_context(), and fill_buffer().
int(* AVIOContext::read_pause)(void *opaque, int pause) |
Pause or resume playback for network streaming protocols - e.g.
MMS.
Referenced by avio_pause(), and ffio_init_context().
int64_t(* AVIOContext::read_seek)(void *opaque, int stream_index, int64_t timestamp, int flags) |
Seek to a given timestamp in stream with the specified stream_index.
Needed for some network streaming protocols which don't support seeking to byte position.
Referenced by avio_seek_time(), and ffio_init_context().
int64_t(* AVIOContext::seek)(void *opaque, int64_t offset, int whence) |
Referenced by avio_seek(), avio_seek_time(), avio_size(), ffio_init_context(), and nut_read_header().
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
Definition at line 89 of file avio.h.
Referenced by aiff_read_header(), aiff_write_trailer(), amf_parse_object(), ape_read_header(), applehttp_read_header(), asf_write_header1(), asf_write_trailer(), av_estimate_timings(), avi_read_header(), avi_write_header(), avi_write_idx1(), avi_write_ix(), avi_write_packet(), avi_write_trailer(), avio_seek(), caf_write_trailer(), ff_id3v1_read(), ff_mov_write_packet(), ffio_init_context(), ffm_read_header(), flac_write_trailer(), flv_read_packet(), gxf_write_header(), http_prepare_data(), http_receive_data(), matroska_execute_seekhead(), mkv_write_header(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_trailer(), mov_find_next_sample(), mov_read_default(), mov_read_header(), mov_read_packet(), mov_write_header(), mpc_read_header(), mpegps_read_pes_header(), mxf_write_footer(), nut_read_header(), ogg_get_length(), r3d_read_header(), read_header(), read_seek(), rm_read_header(), rm_write_trailer(), rso_write_header(), rv10_write_header(), sox_write_trailer(), swf_write_trailer(), url_is_streamed(), vc1test_write_trailer(), voc_get_packet(), wv_read_block_header(), and wv_read_header().
unsigned long(* AVIOContext::update_checksum)(unsigned long checksum, const uint8_t *buf, unsigned int size) |
Referenced by avio_read(), ffio_get_checksum(), ffio_init_checksum(), ffio_init_context(), fill_buffer(), and flush_buffer().
true if open for writing
Definition at line 66 of file avio.h.
Referenced by avio_seek(), ffio_rewind_with_probe_data(), ffio_set_buf_size(), and url_resetbuf().
int(* AVIOContext::write_packet)(void *opaque, uint8_t *buf, int buf_size) |
Referenced by ffio_init_context(), and flush_buffer().