FFmpeg
|
Bytestream IO Context. More...
#include <avio.h>
Data Fields | |
const AVClass * | av_class |
A class for private options. More... | |
unsigned char * | buffer |
Start of the buffer. More... | |
int | buffer_size |
Maximum buffer size. More... | |
unsigned char * | buf_ptr |
Current position in the buffer. More... | |
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. More... | |
void * | opaque |
A private pointer, passed to the read/write/seek/... More... | |
int(* | read_packet )(void *opaque, uint8_t *buf, int buf_size) |
int(* | write_packet )(void *opaque, const 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 More... | |
int | eof_reached |
true if was unable to read due to error or eof More... | |
int | error |
contains the error code or 0 if no error happened More... | |
int | write_flag |
true if open for writing More... | |
int | max_packet_size |
int | min_packet_size |
Try to buffer at least this amount of data before flushing it. More... | |
unsigned long | checksum |
unsigned char * | checksum_ptr |
unsigned long(* | update_checksum )(unsigned long checksum, const uint8_t *buf, unsigned int size) |
int(* | read_pause )(void *opaque, int pause) |
Pause or resume playback for network streaming protocols - e.g. More... | |
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. More... | |
int | seekable |
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable. More... | |
int | direct |
avio_read and avio_write should if possible be satisfied directly instead of going through a buffer, and avio_seek will always call the underlying seek function directly. More... | |
const char * | protocol_whitelist |
',' separated list of allowed protocols. More... | |
const char * | protocol_blacklist |
',' separated list of disallowed protocols. More... | |
int(* | write_data_type )(void *opaque, const uint8_t *buf, int buf_size, enum AVIODataMarkerType type, int64_t time) |
A callback that is used instead of write_packet. More... | |
int | ignore_boundary_point |
If set, don't call write_data_type separately for AVIO_DATA_MARKER_BOUNDARY_POINT, but ignore them and treat them as AVIO_DATA_MARKER_UNKNOWN (to avoid needlessly small chunks of data returned from the callback). More... | |
unsigned char * | buf_ptr_max |
Maximum reached position before a backward seek in the write buffer, used keeping track of already written data for a later flush. More... | |
int64_t | bytes_read |
Read-only statistic of bytes read for this AVIOContext. More... | |
int64_t | bytes_written |
Read-only statistic of bytes written for this AVIOContext. More... | |
Bytestream IO Context.
New public fields can be added with minor version bumps. Removal, reordering and changes to existing public fields require a major version bump. sizeof(AVIOContext) must not be used outside libav*.
const AVClass* AVIOContext::av_class |
A class for private options.
If this AVIOContext is created by avio_open2(), av_class is set and passes the options down to protocols.
If this AVIOContext is manually allocated, then av_class may be set by the caller.
warning – this field can be NULL, be sure to not pass this AVIOContext to any av_opt_* functions in that case.
Definition at line 173 of file avio.h.
Referenced by av_probe_input_buffer2().
unsigned char* AVIOContext::buffer |
Start of the buffer.
Definition at line 225 of file avio.h.
Referenced by asf_write_trailer(), close_demux_for_component(), ff_wms_parse_sdp_a_line(), free_playlist_list(), free_representation(), hls_read_header(), LLVMFuzzerTestOneInput(), main(), and wtvfile_close().
unsigned char* AVIOContext::buf_ptr |
Current position in the buffer.
Definition at line 227 of file avio.h.
Referenced by asf_write_trailer(), hls_read_header(), 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_tape_descriptor(), mxf_write_track(), and read_gab2_sub().
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 228 of file avio.h.
Referenced by hls_read_header(), init_packetizer(), and read_gab2_sub().
void* AVIOContext::opaque |
A private pointer, passed to the read/write/seek/...
functions.
Definition at line 232 of file avio.h.
Referenced by wtvfile_close().
Definition at line 235 of file avio.h.
Referenced by ffio_open_null_buf().
int64_t AVIOContext::pos |
position in the file of the current buffer
Definition at line 237 of file avio.h.
Referenced by asfrtp_parse_packet(), hls_read_header(), init_packetizer(), and read_header().
int AVIOContext::eof_reached |
true if was unable to read due to error or eof
Definition at line 238 of file avio.h.
Referenced by amf_skip_tag(), ape_read_header(), asf_read_packet(), asfrtp_parse_packet(), decode_frame_header(), decode_main_header(), ebml_read_num(), ff_mov_read_chan(), ff_mov_read_stsd_entries(), ff_read_riff_info(), get_line(), get_str(), gxf_packet(), hls_read_header(), hnm_read_packet(), label_string(), mov_metadata_hmmt(), mov_parse_auxiliary_info(), mov_read_chap(), mov_read_ctts(), mov_read_elst(), mov_read_pssh(), mov_read_saio(), mov_read_sample_encryption_info(), mov_read_sbgp(), mov_read_sdtp(), mov_read_senc(), mov_read_sgpd(), mov_read_stco(), mov_read_stps(), mov_read_stsc(), mov_read_stss(), mov_read_stts(), mov_read_trun(), parse_multipart_header(), read_thread(), read_whole_file(), recheck_discard_flags(), skip_reserved(), and xwma_read_header().
int AVIOContext::error |
contains the error code or 0 if no error happened
Definition at line 239 of file avio.h.
Referenced by asf_get_packet(), avi_sync(), cin_read_frame_header(), ebml_read_num(), end_ebml_master_crc32_tentatively(), film_write_header(), film_write_packet(), gdv_read_packet(), get_line(), label_string(), mkv_assemble_codecprivate(), mkv_assemble_cues(), mkv_write_tag(), mov_read_dfla(), read_kuki_chunk(), read_thread(), and wtvfile_read_packet().
int AVIOContext::min_packet_size |
int AVIOContext::seekable |
A combination of AVIO_SEEKABLE_ flags or 0 when the stream is not seekable.
Definition at line 261 of file avio.h.
Referenced by aea_write_trailer(), aiff_read_header(), amf_parse_object(), ape_read_header(), apng_write_trailer(), asf_read_data(), asf_read_header(), asf_write_header1(), avi_read_header(), avi_write_header(), avi_write_idx1(), avi_write_ix(), avi_write_packet(), avi_write_packet_internal(), avi_write_trailer(), caf_write_header(), caf_write_trailer(), cine_read_seek(), dsf_read_header(), dtshd_read_header(), estimate_timings(), flac_write_trailer(), flv_write_header(), gif_read_header(), gif_read_packet(), gxf_write_header(), ico_write_header(), ivf_write_trailer(), mov_parse_auxiliary_info(), mov_read_default(), mov_read_header(), mov_read_moof(), mov_read_sidx(), mpc8_read_header(), mv_read_packet(), mv_read_seek(), mxf_parse_handle_essence(), nut_read_header(), ogg_read_page(), pdv_read_header(), pdv_read_packet(), read_header(), read_seek(), reopen_demux_for_component(), rm_read_header(), rsd_read_header(), seek_back(), seg_init(), seg_write_header(), segment_start(), sga_read_header(), smjpeg_write_trailer(), tak_read_header(), webm_chunk_init(), wsaud_write_init(), wv_read_block_header(), and wv_write_trailer().
int AVIOContext::direct |
avio_read and avio_write should if possible be satisfied directly instead of going through a buffer, and avio_seek will always call the underlying seek function directly.
Definition at line 268 of file avio.h.
Referenced by mkv_write_packet_internal().
const char* AVIOContext::protocol_whitelist |
const char* AVIOContext::protocol_blacklist |
int(* AVIOContext::write_data_type) (void *opaque, const uint8_t *buf, int buf_size, enum AVIODataMarkerType type, int64_t time) |
A callback that is used instead of write_packet.
Definition at line 283 of file avio.h.
Referenced by init_fps().
int AVIOContext::ignore_boundary_point |
unsigned char* AVIOContext::buf_ptr_max |
int64_t AVIOContext::bytes_read |
Read-only statistic of bytes read for this AVIOContext.
int64_t AVIOContext::bytes_written |
Read-only statistic of bytes written for this AVIOContext.