FFmpeg
|
#include "libavutil/bprint.h"
#include "libavutil/crc.h"
#include "libavutil/dict.h"
#include "libavutil/intreadwrite.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
#include "libavutil/avassert.h"
#include "avformat.h"
#include "avio.h"
#include "avio_internal.h"
#include "internal.h"
#include "url.h"
#include <stdarg.h>
Go to the source code of this file.
Data Structures | |
struct | AVIOInternal |
struct | DynBuffer |
Macros | |
#define | IO_BUFFER_SIZE 32768 |
#define | SHORT_SEEK_THRESHOLD 4096 |
Do seeks within this distance ahead of the current buffer by skipping data instead of calling the protocol seek function, for seekable protocols. More... | |
#define | OFFSET(x) offsetof(AVIOContext,x) |
#define | E AV_OPT_FLAG_ENCODING_PARAM |
#define | D AV_OPT_FLAG_DECODING_PARAM |
#define | PUT_STR16(type, big_endian) |
#define | GET_STR16(type, read) |
Functions | |
static void * | ff_avio_child_next (void *obj, void *prev) |
static const AVClass * | ff_avio_child_class_next (const AVClass *prev) |
static void | fill_buffer (AVIOContext *s) |
static int | url_resetbuf (AVIOContext *s, int flags) |
int | ffio_init_context (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)) |
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. More... | |
void | avio_context_free (AVIOContext **ps) |
Free the supplied IO context and everything associated with it. More... | |
static void | writeout (AVIOContext *s, const uint8_t *data, int len) |
static void | flush_buffer (AVIOContext *s) |
void | avio_w8 (AVIOContext *s, int b) |
void | ffio_fill (AVIOContext *s, int b, int count) |
void | avio_write (AVIOContext *s, const unsigned char *buf, int size) |
void | avio_flush (AVIOContext *s) |
Force flushing of buffered data. More... | |
int64_t | avio_seek (AVIOContext *s, int64_t offset, int whence) |
fseek() equivalent for AVIOContext. More... | |
int64_t | avio_skip (AVIOContext *s, int64_t offset) |
Skip given number of bytes forward. More... | |
int64_t | avio_size (AVIOContext *s) |
Get the filesize. More... | |
int | avio_feof (AVIOContext *s) |
feof() equivalent for AVIOContext. More... | |
void | avio_wl32 (AVIOContext *s, unsigned int val) |
void | avio_wb32 (AVIOContext *s, unsigned int val) |
int | avio_put_str (AVIOContext *s, const char *str) |
Write a NULL-terminated string. More... | |
static int | put_str16 (AVIOContext *s, const char *str, const int be) |
int | ff_get_v_length (uint64_t val) |
Get the length in bytes which is needed to store val as v. More... | |
void | ff_put_v (AVIOContext *bc, uint64_t val) |
Put val using a variable number of bytes. More... | |
void | avio_wl64 (AVIOContext *s, uint64_t val) |
void | avio_wb64 (AVIOContext *s, uint64_t val) |
void | avio_wl16 (AVIOContext *s, unsigned int val) |
void | avio_wb16 (AVIOContext *s, unsigned int val) |
void | avio_wl24 (AVIOContext *s, unsigned int val) |
void | avio_wb24 (AVIOContext *s, unsigned int val) |
void | avio_write_marker (AVIOContext *s, int64_t time, enum AVIODataMarkerType type) |
Mark the written bytestream as a specific type. More... | |
static int | read_packet_wrapper (AVIOContext *s, uint8_t *buf, int size) |
unsigned long | ff_crc04C11DB7_update (unsigned long checksum, const uint8_t *buf, unsigned int len) |
unsigned long | ff_crcEDB88320_update (unsigned long checksum, const uint8_t *buf, unsigned int len) |
unsigned long | ff_crcA001_update (unsigned long checksum, const uint8_t *buf, unsigned int len) |
unsigned long | ffio_get_checksum (AVIOContext *s) |
void | ffio_init_checksum (AVIOContext *s, unsigned long(*update_checksum)(unsigned long c, const uint8_t *p, unsigned int len), unsigned long checksum) |
int | avio_r8 (AVIOContext *s) |
int | avio_read (AVIOContext *s, unsigned char *buf, int size) |
Read size bytes from AVIOContext into buf. More... | |
int | ffio_read_size (AVIOContext *s, unsigned char *buf, int size) |
Read size bytes from AVIOContext into buf. More... | |
int | ffio_read_indirect (AVIOContext *s, unsigned char *buf, int size, const unsigned char **data) |
Read size bytes from AVIOContext, returning a pointer. More... | |
int | avio_read_partial (AVIOContext *s, unsigned char *buf, int size) |
Read size bytes from AVIOContext into buf. More... | |
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) |
int | ff_get_line (AVIOContext *s, char *buf, int maxlen) |
Read a whole line of text from AVIOContext. More... | |
int | ff_get_chomp_line (AVIOContext *s, char *buf, int maxlen) |
Same as ff_get_line but strip the white-space characters in the text tail. More... | |
int64_t | ff_read_line_to_bprint (AVIOContext *s, AVBPrint *bp) |
Read a whole line of text from AVIOContext to an AVBPrint buffer. More... | |
int64_t | ff_read_line_to_bprint_overwrite (AVIOContext *s, AVBPrint *bp) |
Read a whole line of text from AVIOContext to an AVBPrint buffer overwriting its contents. More... | |
int | avio_get_str (AVIOContext *s, int maxlen, char *buf, int buflen) |
Read a string from pb into buf. More... | |
uint64_t | avio_rb64 (AVIOContext *s) |
uint64_t | ffio_read_varlen (AVIOContext *bc) |
static int | io_read_packet (void *opaque, uint8_t *buf, int buf_size) |
static int | io_write_packet (void *opaque, uint8_t *buf, int buf_size) |
static int64_t | io_seek (void *opaque, int64_t offset, int whence) |
static int | io_short_seek (void *opaque) |
static int | io_read_pause (void *opaque, int pause) |
static int64_t | io_read_seek (void *opaque, int stream_index, int64_t timestamp, int flags) |
int | ffio_fdopen (AVIOContext **s, URLContext *h) |
Create and initialize a AVIOContext for accessing the resource referenced by the URLContext h. More... | |
URLContext * | ffio_geturlcontext (AVIOContext *s) |
Return the URLContext associated with the AVIOContext. More... | |
int | ffio_ensure_seekback (AVIOContext *s, int64_t buf_size) |
Ensures that the requested seekback buffer size will be available. More... | |
int | ffio_set_buf_size (AVIOContext *s, int buf_size) |
int | ffio_rewind_with_probe_data (AVIOContext *s, unsigned char **bufp, int buf_size) |
Rewind the AVIOContext using the specified buffer containing the first buf_size bytes of the file. More... | |
int | avio_open (AVIOContext **s, const char *filename, int flags) |
Create and initialize a AVIOContext for accessing the resource indicated by url. More... | |
int | ffio_open_whitelist (AVIOContext **s, const char *filename, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options, const char *whitelist, const char *blacklist) |
int | avio_open2 (AVIOContext **s, const char *filename, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options) |
Create and initialize a AVIOContext for accessing the resource indicated by url. More... | |
int | ffio_open2_wrapper (struct AVFormatContext *s, AVIOContext **pb, const char *url, int flags, const AVIOInterruptCB *int_cb, AVDictionary **options) |
int | avio_close (AVIOContext *s) |
Close the resource accessed by the AVIOContext s and free it. More... | |
int | avio_closep (AVIOContext **s) |
Close the resource accessed by the AVIOContext *s, free it and set the pointer pointing to it to NULL. More... | |
int | avio_printf (AVIOContext *s, const char *fmt,...) |
int | avio_pause (AVIOContext *s, int pause) |
Pause and resume playing - only meaningful if using a network streaming protocol (e.g. More... | |
int64_t | avio_seek_time (AVIOContext *s, int stream_index, int64_t timestamp, int flags) |
Seek to a given timestamp relative to some component stream. More... | |
int | avio_read_to_bprint (AVIOContext *h, AVBPrint *pb, size_t max_size) |
Read contents of h into print buffer, up to max_size bytes, or up to EOF. More... | |
int | avio_accept (AVIOContext *s, AVIOContext **c) |
Accept and allocate a client context on a server context. More... | |
int | avio_handshake (AVIOContext *c) |
Perform one step of the protocol handshake to accept a new client. More... | |
static int | dyn_buf_write (void *opaque, uint8_t *buf, int buf_size) |
static int | dyn_packet_buf_write (void *opaque, uint8_t *buf, int buf_size) |
static int64_t | dyn_buf_seek (void *opaque, int64_t offset, int whence) |
static int | url_open_dyn_buf_internal (AVIOContext **s, int max_packet_size) |
int | avio_open_dyn_buf (AVIOContext **s) |
Open a write only memory stream. More... | |
int | ffio_open_dyn_packet_buf (AVIOContext **s, int max_packet_size) |
Open a write only packetized memory stream with a maximum packet size of 'max_packet_size'. More... | |
int | avio_get_dyn_buf (AVIOContext *s, uint8_t **pbuffer) |
Return the written size and a pointer to the buffer. More... | |
int | avio_close_dyn_buf (AVIOContext *s, uint8_t **pbuffer) |
Return the written size and a pointer to the buffer. More... | |
void | ffio_free_dyn_buf (AVIOContext **s) |
Free a dynamic buffer. More... | |
static int | null_buf_write (void *opaque, uint8_t *buf, int buf_size) |
int | ffio_open_null_buf (AVIOContext **s) |
Open a write-only fake memory stream. More... | |
int | ffio_close_null_buf (AVIOContext *s) |
Close a null buffer. More... | |
Variables | |
static const AVOption | ff_avio_options [] |
const AVClass | ff_avio_class |
#define IO_BUFFER_SIZE 32768 |
Definition at line 36 of file aviobuf.c.
Referenced by ffio_ensure_seekback(), ffio_fdopen(), and fill_buffer().
#define SHORT_SEEK_THRESHOLD 4096 |
Do seeks within this distance ahead of the current buffer by skipping data instead of calling the protocol seek function, for seekable protocols.
Definition at line 43 of file aviobuf.c.
Referenced by ffio_init_context().
#define OFFSET | ( | x | ) | offsetof(AVIOContext,x) |
#define E AV_OPT_FLAG_ENCODING_PARAM |
#define D AV_OPT_FLAG_DECODING_PARAM |
#define PUT_STR16 | ( | type, | |
big_endian | |||
) |
#define GET_STR16 | ( | type, | |
read | |||
) |
|
static |
Definition at line 549 of file aviobuf.c.
Referenced by avio_feof(), avio_r8(), avio_read(), avio_read_partial(), and avio_seek().
|
static |
Definition at line 1097 of file aviobuf.c.
Referenced by ffio_init_context(), and ffio_set_buf_size().
int ffio_init_context | ( | AVIOContext * | s, |
unsigned char * | buffer, | ||
int | buffer_size, | ||
int | write_flag, | ||
void * | opaque, | ||
int(*)(void *opaque, uint8_t *buf, int buf_size) | read_packet, | ||
int(*)(void *opaque, uint8_t *buf, int buf_size) | write_packet, | ||
int64_t(*)(void *opaque, int64_t offset, int whence) | seek | ||
) |
Definition at line 81 of file aviobuf.c.
Referenced by asf_write_header(), asfrtp_parse_packet(), avio_alloc_context(), ff_parse_mpeg2_descriptor(), ff_text_init_buf(), flush_packet(), handle_id3(), hls_read_header(), id3v2_parse(), init_MP4DescrParseContext(), init_packetizer(), intercept_id3(), m4sl_cb(), matroska_ebmlnum_uint(), matroska_parse_tracks(), mkv_write_video_projection(), mms_put_utf16(), mov_read_cmov(), qt_rtp_parse_packet(), rdt_load_mdpr(), rdt_parse_packet(), reopen_demux_for_component(), and sap_read_header().
AVIOContext* avio_alloc_context | ( | unsigned char * | buffer, |
int | buffer_size, | ||
int | write_flag, | ||
void * | opaque, | ||
int(*)(void *opaque, uint8_t *buf, int buf_size) | read_packet, | ||
int(*)(void *opaque, uint8_t *buf, int buf_size) | write_packet, | ||
int64_t(*)(void *opaque, int64_t offset, int whence) | seek | ||
) |
Allocate and initialize an AVIOContext for buffered I/O.
It must be later freed with avio_context_free().
buffer | Memory block for input/output operations via AVIOContext. The buffer must be allocated with av_malloc() and friends. It may be freed and replaced with a new buffer by libavformat. AVIOContext.buffer holds the buffer currently in use, which must be later freed with av_free(). |
buffer_size | The buffer size is very important for performance. For protocols with fixed blocksize it should be set to this blocksize. For others a typical size is a cache page, e.g. 4kb. |
write_flag | Set to 1 if the buffer should be writable, 0 otherwise. |
opaque | An opaque pointer to user-specific data. |
read_packet | A function for refilling the buffer, may be NULL. For stream protocols, must never return 0 but rather a proper AVERROR code. |
write_packet | A function for writing the buffer contents, may be NULL. The function may not change the input buffers content. |
seek | A function for seeking to specified byte position, may be NULL. |
Definition at line 131 of file aviobuf.c.
Referenced by ff_flac_parse_picture(), ffio_fdopen(), hds_write_header(), init_fps(), ism_write_header(), main(), mpjpeg_read_probe(), open_null_ctx(), rdt_parse_packet(), read_gab2_sub(), swf_read_header(), url_open_dyn_buf_internal(), and wtvfile_open_sector().
void avio_context_free | ( | AVIOContext ** | s | ) |
Free the supplied IO context and everything associated with it.
s | Double pointer to the IO context. This function will write NULL into s. |
Definition at line 148 of file aviobuf.c.
Referenced by avio_close(), avio_close_dyn_buf(), close_null_ctxp(), ff_flac_parse_picture(), ffio_close_null_buf(), finish(), hds_free(), ism_free(), mpjpeg_read_probe(), rdt_parse_packet(), read_gab2_sub(), and wtvfile_close().
|
static |
Definition at line 153 of file aviobuf.c.
Referenced by avio_write(), and flush_buffer().
|
static |
Definition at line 180 of file aviobuf.c.
Referenced by avio_flush(), avio_seek(), avio_w8(), avio_write(), and ffio_fill().
void avio_w8 | ( | AVIOContext * | s, |
int | b | ||
) |
Definition at line 196 of file aviobuf.c.
Referenced by aiff_write_trailer(), asf_write_header1(), avi_write_ix(), avi_write_packet(), avi_write_packet_internal(), avio_put_str(), avio_wb16(), avio_wb24(), avio_wb32(), avio_wl16(), avio_wl24(), avio_wl32(), caf_write_header(), decode_str(), describe_filter_link(), ff_end_tag(), ff_id3v2_start(), ff_id3v2_write_apic(), ff_isom_write_avcc(), ff_isom_write_vpcc(), ff_mov_cenc_avc_parse_nal_units(), ff_put_bmp_header(), ff_put_v(), ff_put_wav_header(), ff_riff_write_info_tag(), ff_rtp_check_and_send_back_rr(), ff_rtp_send_data(), ff_rtp_send_punch_packets(), ff_rtp_send_rtcp_feedback(), film_write_header(), flac_write_block_padding(), flac_write_picture(), flush(), flush_packet(), flv_write_codec_header(), flv_write_header(), flv_write_packet(), flv_write_trailer(), get_line(), gif_image_write_header(), gif_write_trailer(), gxf_write_dv_auxiliary(), gxf_write_map_packet(), gxf_write_material_data_section(), gxf_write_media_preamble(), gxf_write_mpeg_auxiliary(), gxf_write_packet_header(), gxf_write_padding(), gxf_write_timecode_auxiliary(), gxf_write_track_description(), gxf_write_umf_media_description(), gxf_write_umf_packet(), h261_handle_packet(), h263_handle_packet(), hvcc_write(), ico_write_packet(), ico_write_trailer(), id3v2_put_priv(), id3v2_put_size(), id3v2_put_ttag(), klv_encode_ber4_length(), klv_encode_ber9_length(), klv_encode_ber_length(), mkv_write_block(), mkv_write_codecprivate(), mkv_write_vtt_blocks(), mov_cenc_write_saio_tag(), mov_cenc_write_saiz_tag(), mov_cenc_write_schi_tag(), mov_create_chapter_track(), mov_write_3gp_udta_tag(), mov_write_amr_tag(), mov_write_chan_tag(), mov_write_chpl_tag(), mov_write_colr_tag(), mov_write_ctts_tag(), mov_write_d263_tag(), mov_write_dfla_tag(), mov_write_dops_tag(), mov_write_edts_tag(), mov_write_esds_tag(), mov_write_hdlr_tag(), mov_write_int8_metadata(), mov_write_iods_tag(), mov_write_itunes_hdlr_tag(), mov_write_loci_tag(), mov_write_mdhd_tag(), mov_write_mdta_hdlr_tag(), mov_write_mvhd_tag(), mov_write_prft_tag(), mov_write_sdtp_tag(), mov_write_sidx_tag(), mov_write_st3d_tag(), mov_write_tcmi_tag(), mov_write_tfdt_tag(), mov_write_tfhd_tag(), mov_write_tfra_tag(), mov_write_tfrf_tag(), mov_write_tfxd_tag(), mov_write_tkhd_tag(), mov_write_tmcd_tag(), mov_write_traf_tag(), mov_write_trun_tag(), mov_write_video_tag(), mov_write_vpcc_tag(), mp3_write_xing(), mxf_write_cdci_common(), mxf_write_d10_audio_packet(), mxf_write_generic_sound_common(), mxf_write_index_table_segment(), mxf_write_mpegvideo_desc(), mxf_write_system_item(), mxf_write_timecode_component(), mxf_write_umid(), nut_write_header(), nut_write_packet(), ogg_write_page(), oma_write_header(), output_immediate(), output_match(), print_csv_escaped_str(), put_amf_bool(), put_amf_byte(), put_amf_double(), put_amf_dword_array(), put_avc_eos_tag(), put_descr(), put_ebml_id(), put_ebml_num(), put_ebml_sint(), put_ebml_size_unknown(), put_ebml_uint(), put_id3v2_tags(), put_meta(), put_padding_packet(), put_payload_header(), put_payload_parsing_info(), put_str(), put_str8(), put_timestamp(), put_vcd_padding_sector(), put_xiph_codecpriv(), put_xiph_size(), read_file(), rm_write_audio(), rm_write_video(), smjpeg_write_header(), swf_write_header(), swf_write_video(), vc1test_write_header(), voc_write_packet(), voc_write_trailer(), write_abst(), write_escape_str(), write_header(), write_metadata(), write_odml_master(), write_streamheader(), write_table_entries_attrib(), write_tags(), and write_trailer().
void ffio_fill | ( | AVIOContext * | s, |
int | b, | ||
int | count | ||
) |
Definition at line 204 of file aviobuf.c.
Referenced by ff_ape_write_tag(), ff_id3v2_finish(), flac_write_block_padding(), ircam_write_header(), mov_write_tfrf_tag(), mov_write_trailer(), mp3_write_xing(), mxf_write_klv_fill(), put_ebml_size_unknown(), put_ebml_void(), put_xiph_size(), sox_write_header(), and spdif_write_packet().
void avio_write | ( | AVIOContext * | s, |
const unsigned char * | buf, | ||
int | size | ||
) |
Definition at line 218 of file aviobuf.c.
Referenced by a64_write_header(), ac3_handle_packet(), adts_write_packet(), aiff_write_header(), aiff_write_packet(), apng_write_chunk(), asf_write_header1(), asf_write_markers(), asfrtp_parse_packet(), ast_write_packet(), avi_write_packet_internal(), avio_close_dyn_buf(), avio_printf(), avio_put_str(), caf_write_header(), caf_write_packet(), caf_write_trailer(), chunk_end(), codec2_write_header(), copy_moof(), copy_tag(), crc_write_trailer(), dash_write_packet(), daud_write_packet(), decode_packet(), do_encrypt(), dump_attachment(), dv_handle_packet(), dv_write_packet(), end_ebml_master_crc32(), end_ebml_master_crc32_preliminary(), ff_ape_write_tag(), ff_av1_filter_obus(), ff_avc_parse_nal_units(), ff_flac_write_header(), ff_hevc_annexb2mp4(), ff_id3v2_write_apic(), ff_isom_write_av1c(), ff_isom_write_avcc(), ff_isom_write_hvcc(), ff_mov_cenc_avc_write_nal_units(), ff_mov_write_packet(), ff_put_bmp_header(), ff_put_guid(), ff_put_wav_header(), ff_raw_write_packet(), ff_rtp_check_and_send_back_rr(), ff_rtp_send_data(), film_write_packet(), fits_write_packet(), flac_write_audio_packet(), flac_write_block_comment(), flac_write_picture(), flac_write_trailer(), flush(), flush_dynbuf(), flush_packet(), flv_write_codec_header(), flv_write_header(), flv_write_packet(), framecrc_write_packet(), get_video_private_data(), gif_image_write_header(), gxf_write_material_data_section(), gxf_write_mpeg_auxiliary(), gxf_write_packet(), gxf_write_track_description(), gxf_write_umf_media_description(), h261_handle_packet(), h263_handle_packet(), hds_write(), hls_write_packet(), hls_write_trailer(), hvcc_write(), ico_write_packet(), id3v2_put_priv(), id3v2_put_ttag(), ilbc_write_header(), ilbc_write_packet(), init_file(), ivf_write_header(), ivf_write_packet(), jacosub_write_header(), jpeg_parse_packet(), latm_parse_packet(), latm_write_packet(), main(), matroska_parse_tracks(), microdvd_write_header(), microdvd_write_packet(), mkv_write_block(), mkv_write_codecprivate(), mkv_write_native_codecprivate(), mkv_write_video_color(), mkv_write_video_projection(), mov_cenc_write_encrypted(), mov_cenc_write_saiz_tag(), mov_cenc_write_schi_tag(), mov_cenc_write_senc_tag(), mov_flush_fragment(), mov_flush_fragment_interleaving(), mov_write_3gp_udta_tag(), mov_write_ac3_tag(), mov_write_chpl_tag(), mov_write_covr(), mov_write_dfla_tag(), mov_write_dops_tag(), mov_write_dvc1_tag(), mov_write_eac3_tag(), mov_write_esds_tag(), mov_write_extradata_tag(), mov_write_glbl_tag(), mov_write_hdlr_tag(), mov_write_isml_manifest(), mov_write_loci_tag(), mov_write_mdta_keys_tag(), mov_write_raw_metadata_tag(), mov_write_source_reference_tag(), mov_write_string_data_tag(), mov_write_subtitle_tag(), mov_write_tcmi_tag(), mov_write_tfrf_tag(), mov_write_tfxd_tag(), mov_write_tmcd_tag(), mov_write_track_metadata(), mov_write_track_udta_tag(), mov_write_udta_sdp(), mov_write_udta_tag(), mov_write_video_tag(), mp3_update_xing(), mp3_write_trailer(), mp3_write_xing(), mpa_robust_parse_packet(), mpegts_insert_null_packet(), mpegts_insert_pcr_only(), mpegts_prefix_m2ts_header(), mpegts_write_pes(), mpjpeg_write_packet(), mxf_write_cdci_common(), mxf_write_common_fields(), mxf_write_essence_container_refs(), mxf_write_generic_desc(), mxf_write_index_table_segment(), mxf_write_klv_fill(), mxf_write_metadata_key(), mxf_write_multi_descriptor(), mxf_write_opatom_body_partition(), mxf_write_opatom_packet(), mxf_write_packet(), mxf_write_partition(), mxf_write_preface(), mxf_write_primer_pack(), mxf_write_random_index_pack(), mxf_write_system_item(), mxf_write_tagged_value(), mxf_write_track(), mxf_write_umid(), mxf_write_uuid(), nut_write_header(), nut_write_packet(), ogg_write_page(), output_immediate(), print_file(), print_report(), process_client(), put_amf_string(), put_ebml_binary(), put_flac_codecpriv(), put_frame(), put_meta(), put_packet(), put_str(), put_str16(), put_swf_matrix(), put_swf_rect(), put_wv_codecpriv(), put_xiph_codecpriv(), read_file(), rm_write_audio(), rm_write_video(), roq_write_header(), rso_write_packet(), section_write_packet(), shift_data(), smjpeg_write_header(), smjpeg_write_packet(), sox_write_header(), spdif_write_packet(), srt_write_packet(), sup_write_packet(), svq3_parse_packet(), swf_write_header(), swf_write_video(), tta_queue_flush(), tta_write_header(), tta_write_trailer(), vc1test_write_header(), vc1test_write_packet(), vc2hq_handle_frame_fragment(), voc_write_header(), voc_write_packet(), vp8_handle_packet(), vp9_handle_packet(), webp_write_packet(), webvtt_write_packet(), write_chapter(), write_frame(), write_globalinfo(), write_header(), write_hint_packets(), write_image_header(), write_keyword_value(), write_mainheader(), write_packet(), write_root_table(), write_sm_data(), write_stream_codec_info(), write_streamheader(), write_streaminfo(), write_table0_header_legacy_attrib(), write_table_entries_attrib(), write_trailer(), wv_write_packet(), xiph_handle_packet(), and yuv4_write_packet().
void avio_flush | ( | AVIOContext * | s | ) |
Force flushing of buffered data.
For write streams, force the buffered data to be immediately written to the output, without to wait to fill the internal buffer.
For read streams, discard all currently buffered data, and advance the reported file position to that of the underlying stream. This does not read new data, and does not perform any seeks.
Definition at line 238 of file aviobuf.c.
Referenced by aiff_write_header(), aiff_write_trailer(), asf_write_header(), asf_write_trailer(), ast_write_header(), ast_write_trailer(), av_write_trailer(), avio_close(), avio_close_dyn_buf(), avio_get_dyn_buf(), avio_write(), avio_write_marker(), caf_write_header(), caf_write_trailer(), close_file(), copy_moof(), dash_init(), dash_write_packet(), dashenc_io_close(), dump_attachment(), ff_framehash_write_header(), ff_rtp_check_and_send_back_rr(), ff_rtp_send_data(), ff_rtp_send_punch_packets(), ff_rtp_send_rtcp_feedback(), ffio_close_null_buf(), film_write_header(), flac_write_trailer(), flush_dynbuf(), flush_if_needed(), flush_packet(), gif_image_write_header(), gxf_write_header(), gxf_write_trailer(), hds_flush(), hds_write_header(), hls_mux_init(), hls_write_packet(), hls_write_trailer(), hlsenc_io_close(), ico_write_header(), ilbc_write_header(), ism_flush(), ism_write_header(), jacosub_write_header(), main(), microdvd_write_header(), mkv_start_new_cluster(), mkv_write_flush_packet(), mkv_write_header(), mov_flush_fragment(), mov_write_header(), mpjpeg_write_header(), mxf_write_opatom_packet(), mxf_write_packet(), mxf_write_partition(), nut_write_header(), ogg_write_page(), print_report(), process_client(), put_vcd_padding_sector(), rm_write_header(), roq_write_header(), rso_write_header(), segment_end(), shift_data(), smjpeg_write_header(), sox_write_header(), sox_write_trailer(), swf_write_header(), tta_write_trailer(), update_odml_entry(), vc1test_write_trailer(), webvtt_write_header(), write_fragment(), write_header(), write_manifest(), write_packet(), and write_trailer().
int64_t avio_seek | ( | AVIOContext * | s, |
int64_t | offset, | ||
int | whence | ||
) |
fseek() equivalent for AVIOContext.
Definition at line 246 of file aviobuf.c.
Referenced by aa_read_header(), aa_read_seek(), adts_aac_read_header(), adx_read_header(), aiff_read_header(), aiff_write_trailer(), aix_read_header(), align_position(), ape_read_header(), ape_read_packet(), ape_read_seek(), apng_read_header(), apng_read_packet(), apng_write_trailer(), asf_build_simple_index(), asf_get_packet(), asf_read_frame_header(), asf_read_header(), asf_read_packet(), asf_read_payload(), asf_read_pts(), asf_read_seek(), asf_read_subpayload(), asf_read_timestamp(), asf_write_header1(), asf_write_trailer(), ast_write_trailer(), avi_load_index(), avi_read_header(), avi_read_idx1(), avi_read_seek(), avi_write_counters(), avi_write_packet(), avi_write_trailer(), avio_flush(), avio_skip(), avio_tell(), bfi_read_header(), caf_write_trailer(), check(), check_tag(), cine_read_header(), cine_read_packet(), close_file(), do_encrypt(), dsf_read_header(), dss_read_header(), dss_read_metadata_date(), dss_read_metadata_string(), dss_read_seek(), dtshd_read_header(), dv_read_header(), dv_read_seek(), dv_read_timecode(), dxa_read_header(), dxa_read_packet(), ea_read_packet(), efi_read(), end_ebml_master(), end_header(), estimate_timings_from_pts(), ff_ape_parse_tag(), ff_end_tag(), ff_get_qtpalette(), ff_id3v1_read(), ff_id3v2_finish(), ff_img_read_header(), ff_img_read_packet(), ff_pcm_read_seek(), ff_read_riff_info(), ff_rm_read_mdpr_codecdata(), ff_sauce_read(), ff_seek_frame_binary(), film_read_packet(), film_read_seek(), film_write_header(), find_and_decode_index(), find_any_startcode(), find_index_range(), find_sidx(), finish_chunk_noindex(), flac_read_header(), flac_read_timestamp(), flac_seek(), flac_write_trailer(), flic_read_header(), flv_data_packet(), flv_read_header(), flv_read_packet(), flv_write_codec_header(), flv_write_packet(), flv_write_trailer(), fsb_read_header(), genh_read_header(), get_attachment(), get_tag(), gif_read_header(), gif_read_packet(), guess_ni_flag(), gxf_read_timestamp(), gxf_resync_media(), gxf_seek(), gxf_write_trailer(), gxf_write_umf_media_description(), hnm_read_packet(), ico_write_trailer(), id3v2_parse(), id3v2_read_internal(), idcin_read_seek(), iff_read_header(), ipmovie_read_header(), ivf_write_trailer(), ivr_read_header(), load_ipmovie_packet(), lvf_read_header(), matroska_parse_seekhead_entry(), matroska_read_seek(), matroska_resync(), mkv_check_new_extra_data(), mkv_write_seekhead(), mkv_write_trailer(), mov_parse_auxiliary_info(), mov_parse_stsd_video(), mov_read_chapters(), mov_read_custom(), mov_read_default(), mov_read_dref(), mov_read_dvc1(), mov_read_glbl(), mov_read_header(), mov_read_meta(), mov_read_mfra(), mov_read_packet(), mov_read_rtmd_track(), mov_read_timecode_track(), mov_read_udta_string(), mov_switch_root(), mov_write_mdta_keys_tag(), mov_write_sidx_tag(), mov_write_stsc_tag(), mov_write_stss_tag(), mov_write_tfrf_tag(), mov_write_tfrf_tags(), mov_write_trailer(), mp3_parse_vbr_tags(), mp3_parse_vbri_tag(), mp3_read_header(), mp3_sync(), mp3_update_xing(), mpc8_handle_chunk(), mpc8_parse_seektable(), mpc8_read_header(), mpc8_read_seek(), mpc_read_header(), mpc_read_packet(), mpegps_read_dts(), mpegps_read_header(), mpegps_read_packet(), mpegps_read_pes_header(), mpegts_get_dts(), mpegts_get_pcr(), mpegts_raw_read_packet(), mpegts_resync(), mpjpeg_read_header(), mpjpeg_read_packet(), mpl2_read_header(), mtaf_read_header(), mtv_read_header(), musx_read_header(), mv_read_packet(), mxf_parse_handle_essence(), mxf_parse_klv(), mxf_read_header(), mxf_read_local_tags(), mxf_read_packet(), mxf_read_random_index_pack(), mxf_read_seek(), mxf_seek_to_previous_partition(), mxf_update_klv_size(), mxf_write_footer(), mxf_write_partition(), nsv_parse_NSVf_header(), nsv_read_seek(), nut_read_header(), nuv_read_dts(), ogg_get_length(), ogg_read_page(), ogg_read_timestamp(), ogg_replace_stream(), ogg_restore(), ogg_update_checksum(), oma_read_seek(), open_input(), parse_fragment(), parse_keyframes_index(), parse_media_type(), parse_mp4_descr(), process_ea_header(), put_id3v2_tags(), put_swf_end_tag(), pva_read_timestamp(), qt_rtp_parse_packet(), r3d_read_header(), r3d_seek(), rdt_load_mdpr(), read_apic(), read_dst_frame(), read_frame(), read_header(), read_id3(), read_mfra(), read_moof_duration(), read_odml_index(), read_packet(), read_seek(), read_tfra(), recover(), resync(), rl2_read_packet(), rm_read_dts(), rm_read_header(), rm_read_index(), rm_write_trailer(), roq_read_packet(), rpl_read_header(), rpl_read_packet(), rso_write_trailer(), sdr2_read_header(), seek_back(), seek_by_sector(), seek_data(), seek_frame_byte(), seek_frame_generic(), seq_fill_buffer(), seq_init_frame_buffers(), seq_parse_frame_data(), seq_read_packet(), set_spdif(), shift_data(), skip_reserved(), skip_tag(), smacker_read_packet(), smjpeg_write_trailer(), sox_write_trailer(), str_read_header(), swf_write_trailer(), tak_read_header(), thp_read_header(), thp_read_packet(), tmv_read_seek(), tta_read_header(), tta_read_seek(), ty_read_header(), update_odml_entry(), update_size(), updatePacketSize(), updateSize(), vag_read_header(), vc1test_write_trailer(), vc2hq_handle_frame_fragment(), vmd_read_header(), vmd_read_packet(), voc_read_seek(), vqf_read_seek(), wc3_read_header(), wc3_read_packet(), webm_clusters_start_with_keyframe(), webm_dash_manifest_cues(), webp_write_trailer(), write_fragments(), write_hint_packets(), write_metadata(), write_root_table(), write_stream_codec_info(), write_trailer(), wsd_read_header(), wsvqa_read_header(), wv_read_block_header(), wv_read_header(), wv_write_trailer(), xmv_fetch_audio_packet(), xmv_fetch_new_packet(), xmv_fetch_video_packet(), yop_read_header(), yop_read_seek(), and yuv4_read_seek().
int64_t avio_skip | ( | AVIOContext * | s, |
int64_t | offset | ||
) |
Skip given number of bytes forward.
Definition at line 331 of file aviobuf.c.
Referenced by aa_read_header(), aa_read_packet(), aal_read_packet(), ads_read_header(), aea_read_header(), afc_read_header(), aiff_read_header(), aix_read_header(), aix_read_packet(), amf_get_string(), amf_parse_object(), amf_skip_tag(), ape_read_header(), apng_read_packet(), asf_build_simple_index(), asf_parse_packet(), asf_read_content_desc(), asf_read_data(), asf_read_ext_content_desc(), asf_read_ext_stream_properties(), asf_read_frame_header(), asf_read_header(), asf_read_language_list(), asf_read_marker(), asf_read_metadata(), asf_read_metadata_obj(), asf_read_multiple_payload(), asf_read_packet(), asf_read_packet_header(), asf_read_properties(), asf_read_replicated_data(), asf_read_simple_index(), asf_read_single_payload(), asf_read_stream_properties(), asf_read_subpayload(), asf_read_unknown(), asfrtp_parse_packet(), ast_read_header(), ast_read_packet(), ast_write_trailer(), avformat_open_input(), avi_read_header(), avi_read_nikon(), avi_sync(), avi_write_trailer(), avr_read_header(), avs_read_header(), avs_read_packet(), bfi_read_header(), cdata_read_header(), cdxl_read_packet(), check_file_header(), cine_read_header(), cine_read_packet(), dcstr_read_header(), decode_fctl_chunk(), decode_frame(), dfa_read_header(), dfa_read_packet(), dsf_read_header(), dsf_read_packet(), dss_read_seek(), dss_skip_audio_header(), dtshd_read_header(), dxa_read_header(), ea_read_packet(), ebml_parse_elem(), epaf_read_header(), ff_flac_parse_picture(), ff_get_line(), ff_get_qtpalette(), ff_get_wav_header(), ff_img_read_packet(), ff_mov_read_chan(), ff_mov_read_stsd_entries(), ff_mp4_parse_es_descr(), ff_read_line_to_bprint(), ff_read_riff_info(), ff_rm_read_mdpr_codecdata(), ff_sauce_read(), ff_spdif_read_packet(), ff_voc_get_packet(), finished_reading_packet(), fits_read_packet(), flac_read_header(), flic_read_packet(), flv_read_header(), flv_read_packet(), flv_set_video_codec(), flv_write_codec_header(), fourxm_read_header(), fourxm_read_packet(), frm_read_header(), fsb_read_header(), gdv_read_header(), genh_read_header(), get_aiff_header(), get_codec_data(), get_meta(), get_packet_header(), get_strl(), get_tag(), gif_read_ext(), gif_read_packet(), gif_skip_subblocks(), gxf_header(), gxf_material_tags(), gxf_packet(), gxf_read_index(), gxf_track_tags(), hnm_read_header(), hnm_read_packet(), ico_write_header(), id3v2_parse(), idcin_read_packet(), iff_read_header(), iff_read_packet(), ingenient_read_packet(), ircam_read_header(), ivr_read_header(), ivr_read_packet(), lmlm4_read_packet(), lvf_read_header(), lvf_read_packet(), lxf_read_header(), matroska_parse_tracks(), mmf_read_header(), mov_metadata_loci(), mov_parse_stsd_data(), mov_parse_stsd_video(), mov_read_ares(), mov_read_av1c(), mov_read_chan(), mov_read_coll(), mov_read_covr(), mov_read_custom(), mov_read_default(), mov_read_dref(), mov_read_keys(), mov_read_moov(), mov_read_mvhd(), mov_read_rtmd_track(), mov_read_smdm(), mov_read_st3d(), mov_read_strf(), mov_read_sv3d(), mov_read_uuid(), mov_read_vpcc(), mov_read_wave(), mov_read_wide(), mov_skip_multiple_stsd(), mov_write_header(), mp3_parse_info_tag(), mp3_parse_vbri_tag(), mpc8_handle_chunk(), mpc8_read_header(), mpegps_psm_parse(), mpegps_read_dts(), mpegps_read_packet(), mpegps_read_pes_header(), msf_read_header(), msnwc_tcp_read_packet(), mtaf_read_header(), mtv_read_header(), mtv_read_packet(), musx_read_header(), mv_read_header(), mv_read_packet(), mxf_decrypt_triplet(), mxf_get_eia608_packet(), mxf_read_header(), mxf_read_index_entry_array(), mxf_read_packet(), mxf_read_partition_pack(), mxf_read_random_index_pack(), mxf_read_strong_ref_array(), nc_read_packet(), nist_read_header(), nsp_read_header(), nsv_read_chunk(), nut_read_packet(), nuv_header(), nuv_packet(), nuv_read_dts(), ogg_read_page(), ogg_replace_stream(), parse_chunks(), parse_dsd_diin(), parse_dsd_prop(), parse_global_var(), parse_media_type(), parse_video_info(), parse_video_var(), parse_videoinfoheader2(), pmp_header(), pmp_packet(), process_audio_header_eacs(), process_ea_header(), process_ipmovie_chunk(), process_video_header_cmv(), process_video_header_mdec(), process_video_header_vp6(), pvf_read_header(), qcp_read_header(), qcp_read_packet(), qt_rtp_parse_packet(), r3d_read_packet(), r3d_read_red1(), r3d_read_reos(), rdt_load_mdpr(), read_chapter(), read_dst_frame(), read_gab2_sub(), read_header(), read_index(), read_kuki_chunk(), read_packet(), read_pakt_chunk(), read_part_of_packet(), read_sm_data(), read_string(), read_table(), rl2_read_header(), rm_read_audio_stream_info(), rm_read_dts(), rm_read_header(), rm_read_index(), rm_sync(), roq_read_packet(), rpl_read_packet(), rsd_read_header(), scan_file(), sdr2_read_header(), sdr2_read_packet(), sds_read_header(), sds_read_packet(), sdx_read_header(), ser_read_header(), siff_parse_soun(), siff_parse_vbv1(), siff_read_header(), smjpeg_read_header(), smush_read_header(), smush_read_packet(), sol_read_header(), sox_read_header(), svag_read_header(), swf_read_header(), swf_read_packet(), tak_read_header(), threedostr_read_header(), threedostr_read_packet(), tmv_read_packet(), tta_read_header(), txd_read_packet(), update_odml_entry(), vag_read_header(), var_read_string(), vc1t_read_header(), vid_read_header(), vivo_read_header(), vivo_read_packet(), voc_read_header(), vpk_read_header(), vpk_read_packet(), vqf_read_header(), wc3_read_header(), write_metadata(), wsd_read_header(), wsvqa_read_header(), wsvqa_read_packet(), wv_read_block_header(), wv_read_header(), wve_read_header(), xa_read_header(), xmv_read_header(), xvag_read_header(), xwma_read_header(), yop_read_header(), and yop_read_packet().
int64_t avio_size | ( | AVIOContext * | s | ) |
Get the filesize.
Definition at line 336 of file aviobuf.c.
Referenced by adp_read_header(), ape_read_header(), apng_read_header(), asf_read_stream_properties(), avi_read_header(), cdxl_read_header(), dv_frame_offset(), estimate_timings(), estimate_timings_from_bit_rate(), estimate_timings_from_pts(), event_loop(), ff_ape_parse_tag(), ff_dnn_load_model_native(), ff_find_last_ts(), ff_id3v1_read(), ff_img_read_packet(), ff_sauce_read(), ff_voc_get_packet(), ffio_limit(), find_and_decode_index(), flv_read_packet(), gxf_write_material_data_section(), import_pem(), main(), modplug_read_header(), mov_read_default(), mov_read_header(), mov_read_mfra(), mov_read_sidx(), mp3_parse_info_tag(), mp3_read_header(), mp3_seek(), mxf_read_random_index_pack(), ogg_get_length(), open_output_file(), parse_manifest(), pmp_header(), print_report(), r3d_read_header(), read_graph(), read_header(), read_header_gme(), read_header_openmpt(), read_header_vs(), read_mfra(), read_xing_toc(), rm_read_index(), rsd_read_header(), sds_read_header(), seek_frame_byte(), show_format(), thp_read_header(), update_init_section(), update_stream_timings(), wtvfile_open_sector(), yop_read_seek(), and yuv4_read_header().
int avio_feof | ( | AVIOContext * | s | ) |
feof() equivalent for AVIOContext.
Definition at line 358 of file aviobuf.c.
Referenced by aal_read_packet(), adp_read_packet(), adts_aac_read_header(), aix_read_packet(), amr_read_packet(), ape_read_packet(), apng_read_header(), aqt_read_header(), asf_build_simple_index(), asf_get_packet(), asf_parse_packet(), asf_read_header(), asf_read_marker(), ast_read_packet(), avi_load_index(), avi_read_header(), avi_read_idx1(), avi_read_nikon(), avi_sync(), avio_read(), avio_read_partial(), bfi_read_packet(), cdxl_read_packet(), cin_read_frame_header(), cine_read_header(), daud_packet(), dfa_read_packet(), dtshd_read_header(), dv_read_header(), dxa_read_header(), dxa_read_packet(), ea_read_packet(), ebml_read_num(), ff_get_line(), ff_img_read_packet(), ff_read_line_to_bprint(), ff_read_riff_info(), ff_spdif_read_packet(), ff_text_eof(), ff_text_peek_r8(), find_any_startcode(), find_next_start_code(), flac_read_header(), flic_read_packet(), flv_read_packet(), fourxm_read_packet(), fsb_read_packet(), gdv_read_packet(), genh_read_packet(), get_chunk(), get_codec_data(), get_line(), get_swf_tag(), get_tag(), gif_read_packet(), gxf_packet(), hls_read_packet(), idcin_read_packet(), iff_read_header(), iff_read_packet(), ipmovie_read_header(), ivr_read_header(), ivr_read_packet(), jacosub_read_header(), lrc_read_header(), lvf_read_header(), lvf_read_packet(), lxf_sync(), matroska_resync(), microdvd_read_header(), mmf_read_packet(), mov_read_default(), mov_read_dref(), mov_switch_root(), mpc8_read_header(), mpc8_read_packet(), mpegps_read_pes_header(), mpegts_resync(), mpl2_read_header(), mpsub_read_header(), msnwc_tcp_read_header(), mv_read_header(), mxf_read_header(), mxf_read_index_entry_array(), mxf_read_local_tags(), mxf_read_packet(), mxf_read_sync(), mxg_read_packet(), nc_read_packet(), nist_read_header(), nsp_read_header(), nsv_parse_NSVf_header(), nsv_read_chunk(), nsv_resync(), nut_read_packet(), nuv_packet(), nuv_read_dts(), nuv_resync(), ogg_read_page(), parse_chunks(), parse_dsd_diin(), parse_dsd_prop(), parse_legacy_attrib(), parse_playlist(), pjs_read_header(), pmp_header(), pmp_packet(), process_audio_header_elements(), process_ipmovie_chunk(), qcp_read_packet(), read_dst_frame(), read_header(), read_info_chunk(), read_line(), read_odml_index(), read_packet(), read_part_of_packet(), read_table(), read_tfra(), read_thread(), redspark_read_packet(), resync(), rl2_read_header(), rm_read_header(), rm_read_packet(), rm_sync(), roq_read_packet(), rsd_read_packet(), s337m_read_packet(), scan_file(), sds_read_packet(), sdx_read_header(), should_retry(), smacker_read_packet(), smjpeg_read_header(), smjpeg_read_packet(), smush_read_header(), smush_read_packet(), sol_read_packet(), stl_read_header(), str_read_packet(), subviewer1_read_header(), subviewer_read_header(), sup_read_packet(), tak_read_header(), threedostr_read_header(), threedostr_read_packet(), tmv_read_packet(), txd_read_packet(), ty_read_packet(), vc1t_read_packet(), vid_read_packet(), vivo_get_packet_header(), vivo_read_packet(), vplayer_read_header(), vqf_read_header(), wc3_read_header(), wc3_read_packet(), wtvfile_read_packet(), wv_read_block_header(), and wv_read_packet().
void avio_wl32 | ( | AVIOContext * | s, |
unsigned int | val | ||
) |
Definition at line 369 of file aviobuf.c.
Referenced by aiff_write_header(), asf_write_header1(), asf_write_index(), asf_write_markers(), ast_write_header(), avi_write_counters(), avi_write_header(), avi_write_idx1(), avi_write_ix(), avi_write_packet(), avi_write_packet_internal(), avi_write_trailer(), avio_wl64(), caf_write_header(), ff_ape_write_tag(), ff_end_tag(), ff_mov_cenc_write_sinf_tag(), ff_put_bmp_header(), ff_put_wav_header(), ff_riff_write_info_tag(), ff_start_tag(), ffio_wfourcc(), finish_chunk_noindex(), flush(), gxf_write_flt_packet(), gxf_write_timecode_auxiliary(), gxf_write_umf_material_description(), gxf_write_umf_media_audio(), gxf_write_umf_media_description(), gxf_write_umf_media_dv(), gxf_write_umf_media_mpeg(), gxf_write_umf_media_timecode(), gxf_write_umf_payload(), ico_write_packet(), ico_write_trailer(), init_file(), ircam_write_header(), ivf_write_header(), ivf_write_packet(), matroska_parse_tracks(), mkv_write_codecprivate(), mkv_write_native_codecprivate(), mov_write_audio_tag(), mov_write_ms_tag(), mov_write_subtitle_tag(), mov_write_tref_tag(), mov_write_video_tag(), mov_write_wave_tag(), mxf_write_d10_audio_packet(), nut_write_packet(), ogg_write_page(), oma_write_header(), put_chunk(), put_id3v2_tags(), put_meta(), put_packet(), put_payload_header(), put_payload_parsing_info(), put_swf_end_tag(), put_swf_tag(), smjpeg_write_header(), smjpeg_write_packet(), smjpeg_write_trailer(), sox_write_header(), swf_write_header(), swf_write_trailer(), tta_write_header(), tta_write_packet(), tta_write_trailer(), update_odml_entry(), vc1test_write_header(), vc1test_write_packet(), voc_write_packet(), webp_write_trailer(), write_abst(), write_chunk_header(), write_fat(), write_header(), write_index(), write_metadata_header(), write_odml_master(), write_root_table(), write_stream_codec(), write_stream_codec_info(), write_stream_data(), write_streamheader(), write_table0_header_events(), write_table0_header_legacy_attrib(), write_table0_header_time(), write_table_entries_attrib(), write_tag_int32(), write_trailer(), and wv_write_trailer().
void avio_wb32 | ( | AVIOContext * | s, |
unsigned int | val | ||
) |
Definition at line 377 of file aviobuf.c.
Referenced by aiff_write_header(), aiff_write_trailer(), apng_write_chunk(), ast_write_header(), ast_write_packet(), ast_write_trailer(), avi_write_packet(), avio_wb64(), caf_write_header(), caf_write_trailer(), close_file(), copy_tag(), ff_avc_parse_nal_units(), ff_hevc_annexb2mp4(), ff_id3v2_start(), ff_id3v2_write_apic(), ff_mov_cenc_avc_parse_nal_units(), ff_mov_cenc_write_sinf_tag(), ff_mov_write_chan(), ff_rtp_check_and_send_back_rr(), ff_rtp_send_data(), ff_rtp_send_punch_packets(), ff_rtp_send_rtcp_feedback(), film_write_header(), film_write_packet_to_header(), flac_write_picture(), flush_packet(), flv_write_codec_header(), flv_write_header(), flv_write_packet(), get_video_private_data(), gxf_write_material_data_section(), gxf_write_media_preamble(), gxf_write_packet_header(), gxf_write_track_description(), gxf_write_umf_packet(), hvcc_write(), id3v2_put_priv(), id3v2_put_ttag(), init_file(), mkv_write_codecprivate(), mkv_write_video_projection(), mov_cenc_write_saio_tag(), mov_cenc_write_saiz_tag(), mov_cenc_write_schi_tag(), mov_cenc_write_senc_tag(), mov_create_chapter_track(), mov_flush_fragment(), mov_preroll_write_stbl_atoms(), mov_write_3gp_udta_tag(), mov_write_ac3_tag(), mov_write_amr_tag(), mov_write_audio_tag(), mov_write_av1c_tag(), mov_write_avcc_tag(), mov_write_avid_tag(), mov_write_chan_tag(), mov_write_chpl_tag(), mov_write_clap_tag(), mov_write_colr_tag(), mov_write_covr(), mov_write_ctts_tag(), mov_write_d263_tag(), mov_write_dfla_tag(), mov_write_dinf_tag(), mov_write_dops_tag(), mov_write_dpxe_tag(), mov_write_dref_tag(), mov_write_dvc1_tag(), mov_write_eac3_tag(), mov_write_edts_tag(), mov_write_enda_tag(), mov_write_enda_tag_be(), mov_write_esds_tag(), mov_write_fiel_tag(), mov_write_ftyp_tag(), mov_write_gama_tag(), mov_write_glbl_tag(), mov_write_gmhd_tag(), mov_write_gpmd_tag(), mov_write_hdlr_tag(), mov_write_hmhd_tag(), mov_write_hvcc_tag(), mov_write_ilst_tag(), mov_write_int8_metadata(), mov_write_iods_tag(), mov_write_isml_manifest(), mov_write_itunes_hdlr_tag(), mov_write_loci_tag(), mov_write_mdat_tag(), mov_write_mdhd_tag(), mov_write_mdia_tag(), mov_write_mdta_hdlr_tag(), mov_write_mdta_ilst_tag(), mov_write_mdta_keys_tag(), mov_write_meta_tag(), mov_write_mfhd_tag(), mov_write_mfra_tag(), mov_write_minf_tag(), mov_write_moof_tag_internal(), mov_write_moov_tag(), mov_write_ms_tag(), mov_write_mvex_tag(), mov_write_mvhd_tag(), mov_write_nmhd_tag(), mov_write_pasp_tag(), mov_write_prft_tag(), mov_write_psp_udta_tag(), mov_write_raw_metadata_tag(), mov_write_rtp_tag(), mov_write_sdtp_tag(), mov_write_sidx_tag(), mov_write_smhd_tag(), mov_write_source_reference_tag(), mov_write_st3d_tag(), mov_write_stbl_tag(), mov_write_stco_tag(), mov_write_string_data_tag(), mov_write_string_tag(), mov_write_stsc_tag(), mov_write_stsd_tag(), mov_write_stss_tag(), mov_write_stsz_tag(), mov_write_stts_tag(), mov_write_subtitle_tag(), mov_write_sv3d_tag(), mov_write_tapt_tag(), mov_write_tcmi_tag(), mov_write_tfdt_tag(), mov_write_tfhd_tag(), mov_write_tfra_tag(), mov_write_tfrf_tag(), mov_write_tfxd_tag(), mov_write_tkhd_tag(), mov_write_tmcd_tag(), mov_write_tmpo_tag(), mov_write_track_metadata(), mov_write_track_udta_tag(), mov_write_traf_tag(), mov_write_trailer(), mov_write_trak_tag(), mov_write_tref_tag(), mov_write_trex_tag(), mov_write_trkn_tag(), mov_write_trun_tag(), mov_write_udta_sdp(), mov_write_udta_tag(), mov_write_uuid_tag_ipod(), mov_write_uuid_tag_psp(), mov_write_uuidprof_tag(), mov_write_uuidusmt_tag(), mov_write_video_tag(), mov_write_vmhd_tag(), mov_write_vpcc_tag(), mov_write_wave_tag(), mov_write_wfex_tag(), mp3_write_xing(), mxf_write_cdci_common(), mxf_write_essence_container_data(), mxf_write_generic_desc(), mxf_write_generic_sound_common(), mxf_write_index_table_segment(), mxf_write_mpegvideo_desc(), mxf_write_multi_descriptor(), mxf_write_partition(), mxf_write_preface(), mxf_write_primer_pack(), mxf_write_random_index_pack(), mxf_write_refs_count(), mxf_write_structural_component(), mxf_write_system_item(), mxf_write_track(), mxf_write_wav_common(), ogg_update_checksum(), oma_write_header(), output_match(), put_amf_dword_array(), put_avc_eos_tag(), put_id3v2_tags(), put_meta(), put_padding_packet(), rm_write_trailer(), rm_write_video(), rv10_write_header(), shift_data(), smjpeg_write_header(), smjpeg_write_packet(), smjpeg_write_trailer(), sox_write_header(), sup_write_packet(), swf_write_video(), update_size(), updatePacketSize(), write_abst(), write_chapter(), write_hint_packets(), write_matrix(), write_metadata(), write_styp(), and write_trailer().
int avio_put_str | ( | AVIOContext * | s, |
const char * | str | ||
) |
Write a NULL-terminated string.
Definition at line 385 of file aviobuf.c.
Referenced by caf_write_header(), ff_ape_write_tag(), ff_id3v2_write_apic(), ff_riff_write_info_tag(), id3v2_encode_string(), mov_write_sv3d_tag(), and write_chapter().
|
inlinestatic |
int ff_get_v_length | ( | uint64_t | val | ) |
Get the length in bytes which is needed to store val as v.
Definition at line 437 of file aviobuf.c.
Referenced by ff_put_v(), and nut_write_packet().
void ff_put_v | ( | AVIOContext * | bc, |
uint64_t | val | ||
) |
Put val using a variable number of bytes.
Definition at line 447 of file aviobuf.c.
Referenced by nut_write_packet(), put_packet(), put_s(), put_str(), put_tt(), write_chapter(), write_globalinfo(), write_index(), write_mainheader(), write_sm_data(), write_streamheader(), and write_streaminfo().
void avio_wl64 | ( | AVIOContext * | s, |
uint64_t | val | ||
) |
Definition at line 457 of file aviobuf.c.
Referenced by asf_write_header1(), asf_write_index(), asf_write_markers(), avi_write_ix(), end_header(), gxf_write_dv_auxiliary(), gxf_write_track_description(), gxf_write_umf_material_description(), gxf_write_umf_media_audio(), ivf_write_header(), ivf_write_packet(), ivf_write_trailer(), ogg_write_page(), put_header(), sox_write_header(), sox_write_trailer(), update_odml_entry(), write_chunk_header(), write_chunk_header2(), write_index(), write_odml_master(), write_root_table(), write_sync(), write_table0_header_events(), write_table0_header_time(), write_table_entries_events(), write_table_entries_time(), write_table_redirector_legacy_attrib(), and write_timestamp().
void avio_wb64 | ( | AVIOContext * | s, |
uint64_t | val | ||
) |
Definition at line 463 of file aviobuf.c.
Referenced by aiff_write_header(), apng_write_header(), ast_write_header(), ast_write_packet(), caf_write_header(), caf_write_trailer(), klv_encode_ber9_length(), mov_cenc_write_saio_tag(), mov_write_audio_tag(), mov_write_avid_tag(), mov_write_chpl_tag(), mov_write_edts_tag(), mov_write_mdhd_tag(), mov_write_mvhd_tag(), mov_write_prft_tag(), mov_write_sidx_tag(), mov_write_stco_tag(), mov_write_tfdt_tag(), mov_write_tfhd_tag(), mov_write_tfra_tag(), mov_write_tfrf_tag(), mov_write_tfxd_tag(), mov_write_tkhd_tag(), mov_write_trailer(), mov_write_vmhd_tag(), mxf_write_common_fields(), mxf_write_footer(), mxf_write_generic_sound_common(), mxf_write_identification(), mxf_write_index_table_segment(), mxf_write_package(), mxf_write_partition(), mxf_write_preface(), mxf_write_random_index_pack(), mxf_write_structural_component(), mxf_write_system_item(), mxf_write_timecode_component(), mxf_write_track(), put_amf_double(), put_ebml_float(), put_packet(), sox_write_header(), sox_write_trailer(), write_abst(), and write_index().
void avio_wl16 | ( | AVIOContext * | s, |
unsigned int | val | ||
) |
Definition at line 469 of file aviobuf.c.
Referenced by asf_write_header1(), asf_write_index(), asf_write_markers(), avi_write_header(), avi_write_ix(), avi_write_packet(), avio_wl24(), ff_put_bmp_header(), ff_put_wav_header(), flush(), flush_packet(), gif_image_write_header(), gxf_write_umf_material_description(), gxf_write_umf_media_description(), gxf_write_umf_track_description(), ico_write_header(), ico_write_trailer(), id3v2_encode_string(), ivf_write_header(), matroska_parse_tracks(), mxf_write_d10_audio_packet(), oma_write_header(), put_chunk(), put_payload_header(), put_payload_parsing_info(), put_str16(), put_swf_end_tag(), put_swf_tag(), put_wv_codecpriv(), spdif_put_16(), swf_write_header(), swf_write_trailer(), swf_write_video(), tta_write_header(), voc_write_header(), voc_write_packet(), webp_write_trailer(), write_odml_master(), and write_root_table().
void avio_wb16 | ( | AVIOContext * | s, |
unsigned int | val | ||
) |
Definition at line 475 of file aviobuf.c.
Referenced by aiff_write_header(), ascii_to_wc(), ast_write_header(), ast_write_trailer(), avio_wb24(), caf_write_header(), daud_write_packet(), ff_id3v2_write_apic(), ff_isom_write_avcc(), ff_isom_write_vpcc(), ff_rtp_check_and_send_back_rr(), ff_rtp_send_data(), ff_rtp_send_punch_packets(), ff_rtp_send_rtcp_feedback(), film_write_header(), flush_packet(), gxf_write_material_data_section(), gxf_write_media_preamble(), gxf_write_track_description(), gxf_write_track_description_section(), gxf_write_umf_media_description(), hvcc_write(), id3v2_put_priv(), id3v2_put_ttag(), mkv_write_block(), mkv_write_vtt_blocks(), mov_create_chapter_track(), mov_preroll_write_stbl_atoms(), mov_write_3gp_udta_tag(), mov_write_amr_tag(), mov_write_audio_tag(), mov_write_colr_tag(), mov_write_dops_tag(), mov_write_enda_tag(), mov_write_enda_tag_be(), mov_write_esds_tag(), mov_write_fiel_tag(), mov_write_gmhd_tag(), mov_write_gpmd_tag(), mov_write_hmhd_tag(), mov_write_iods_tag(), mov_write_loci_tag(), mov_write_mdhd_tag(), mov_write_mvhd_tag(), mov_write_psp_udta_tag(), mov_write_rtp_tag(), mov_write_sidx_tag(), mov_write_smhd_tag(), mov_write_source_reference_tag(), mov_write_string_data_tag(), mov_write_subtitle_tag(), mov_write_tcmi_tag(), mov_write_tkhd_tag(), mov_write_tmcd_tag(), mov_write_tmpo_tag(), mov_write_trkn_tag(), mov_write_uuidprof_tag(), mov_write_uuidusmt_tag(), mov_write_video_tag(), mp3_write_xing(), mxf_write_cdci_common(), mxf_write_local_tag(), mxf_write_mpegvideo_desc(), mxf_write_partition(), mxf_write_preface(), mxf_write_primer_pack(), mxf_write_system_item(), mxf_write_timecode_component(), mxf_write_uuid(), mxf_write_wav_common(), output_match(), put_amf_string(), put_padding_packet(), put_str(), put_str16(), put_timestamp(), rm_write_video(), rso_write_header(), rso_write_trailer(), rv10_write_header(), smjpeg_write_header(), spdif_put_16(), store_version(), sup_write_packet(), updateSize(), write_chapter(), write_hint_packets(), write_packet_header(), and write_trailer().
void avio_wl24 | ( | AVIOContext * | s, |
unsigned int | val | ||
) |
Definition at line 481 of file aviobuf.c.
Referenced by flush(), vc1test_write_header(), vc1test_write_trailer(), and voc_write_packet().
void avio_wb24 | ( | AVIOContext * | s, |
unsigned int | val | ||
) |
Definition at line 487 of file aviobuf.c.
Referenced by codec2_write_header(), flac_write_block_padding(), flac_write_picture(), flv_write_codec_header(), flv_write_header(), flv_write_packet(), gif_image_write_header(), gxf_write_media_preamble(), klv_encode_ber4_length(), mov_cenc_write_saio_tag(), mov_cenc_write_schi_tag(), mov_write_chan_tag(), mov_write_ctts_tag(), mov_write_dfla_tag(), mov_write_edts_tag(), mov_write_esds_tag(), mov_write_mdhd_tag(), mov_write_mvhd_tag(), mov_write_prft_tag(), mov_write_sidx_tag(), mov_write_tfdt_tag(), mov_write_tfhd_tag(), mov_write_tfra_tag(), mov_write_tfrf_tag(), mov_write_tfxd_tag(), mov_write_tkhd_tag(), mov_write_trun_tag(), mov_write_vpcc_tag(), mp3_write_xing(), mxf_write_metadata_key(), mxf_write_umid(), put_avc_eos_tag(), put_timestamp(), shift_data(), and write_metadata().
void avio_write_marker | ( | AVIOContext * | s, |
int64_t | time, | ||
enum AVIODataMarkerType | type | ||
) |
Mark the written bytestream as a specific type.
Zero-length ranges are omitted from the output.
time | the stream time the current bytestream pos corresponds to (in AV_TIME_BASE units), or AV_NOPTS_VALUE if unknown or not applicable |
type | the kind of data written starting at the current pos |
Definition at line 493 of file aviobuf.c.
Referenced by av_write_trailer(), avformat_write_header(), flush_if_needed(), flv_write_packet(), mkv_write_packet(), mov_flush_fragment(), and mov_write_trailer().
|
static |
Definition at line 529 of file aviobuf.c.
Referenced by avio_read(), avio_read_partial(), and fill_buffer().
unsigned long ff_crc04C11DB7_update | ( | unsigned long | checksum, |
const uint8_t * | buf, | ||
unsigned int | len | ||
) |
Definition at line 601 of file aviobuf.c.
Referenced by get_packetheader(), nut_write_packet(), ogg_write_page(), and put_packet().
unsigned long ff_crcEDB88320_update | ( | unsigned long | checksum, |
const uint8_t * | buf, | ||
unsigned int | len | ||
) |
Definition at line 607 of file aviobuf.c.
Referenced by tta_read_header(), and tta_write_header().
Definition at line 613 of file aviobuf.c.
Referenced by mp3_parse_vbr_tags().
unsigned long ffio_get_checksum | ( | AVIOContext * | s | ) |
Definition at line 619 of file aviobuf.c.
Referenced by decode_info_header(), decode_main_header(), decode_stream_header(), decode_syncpoint(), find_and_decode_index(), get_packetheader(), nut_write_packet(), ogg_update_checksum(), put_packet(), tak_read_header(), tta_read_header(), and tta_write_trailer().
void ffio_init_checksum | ( | AVIOContext * | s, |
unsigned long(*)(unsigned long c, const uint8_t *p, unsigned int len) | update_checksum, | ||
unsigned long | checksum | ||
) |
Definition at line 627 of file aviobuf.c.
Referenced by get_packetheader(), mp3_parse_vbr_tags(), nut_write_packet(), ogg_write_page(), put_packet(), tak_read_header(), tta_read_header(), and tta_write_header().
int avio_r8 | ( | AVIOContext * | s | ) |
Definition at line 639 of file aviobuf.c.
Referenced by adts_aac_read_header(), aea_read_header(), aix_read_header(), aix_read_packet(), amf_parse_object(), amf_skip_tag(), amr_read_packet(), ape_read_header(), ape_tag_read_field(), asf_get_packet(), asf_parse_packet(), asf_read_frame_header(), asf_read_header(), asf_read_language_list(), asf_read_packet_header(), asf_read_payload(), asf_read_picture(), asf_read_stream_properties(), asf_read_subpayload(), asfrtp_parse_packet(), avi_read_header(), avi_sync(), avio_get_str(), avio_rb16(), avio_rb24(), avio_rl16(), avio_rl24(), avs_read_packet(), bfi_read_packet(), bmv_read_packet(), cdata_read_header(), cin_read_file_header(), cin_read_frame_header(), decode_fctl_chunk(), decode_str(), dss_723_1_read_packet(), dss_read_header(), dv_read_header(), dxa_read_header(), ebml_read_num(), ebml_read_sint(), ebml_read_uint(), efi_read(), ff_get_line(), ff_get_qtpalette(), ff_mp4_parse_es_descr(), ff_mp4_read_dec_config_descr(), ff_mp4_read_descr(), ff_mp4_read_descr_len(), ff_read_line_to_bprint(), ff_sauce_read(), ff_spdif_read_packet(), ff_text_init_avio(), ff_text_r8(), ff_voc_get_packet(), ffio_read_varlen(), find_any_startcode(), find_next_start_code(), flv_data_packet(), flv_read_header(), flv_read_metabody(), flv_read_packet(), flv_set_video_codec(), frm_read_header(), fsb_read_header(), fsb_read_packet(), g723_1_read_packet(), gdv_read_header(), genh_read_packet(), get_attachment(), get_codec_data(), get_line(), get_pts(), get_size(), get_str(), get_str8(), get_token(), gif_read_ext(), gif_read_packet(), gif_skip_subblocks(), guess_ni_flag(), gxf_header(), gxf_material_tags(), gxf_packet(), gxf_resync_media(), gxf_track_tags(), iff_read_header(), ipmovie_read_header(), ivr_read_header(), ivr_read_packet(), klv_decode_ber_length(), lvf_read_header(), lxf_sync(), matroska_resync(), mmf_read_header(), mov_metadata_gnre(), mov_metadata_int8_bypass_padding(), mov_metadata_int8_no_padding(), mov_parse_stsd_video(), mov_read_chpl(), mov_read_coll(), mov_read_colr(), mov_read_ctts(), mov_read_dfla(), mov_read_dops(), mov_read_dref(), mov_read_dvc1(), mov_read_elst(), mov_read_hdlr(), mov_read_mac_string(), mov_read_mdhd(), mov_read_mvhd(), mov_read_pssh(), mov_read_rtmd_track(), mov_read_saio(), mov_read_saiz(), mov_read_sbgp(), mov_read_senc(), mov_read_sidx(), mov_read_smdm(), mov_read_st3d(), mov_read_stco(), mov_read_stsc(), mov_read_stsd(), mov_read_stss(), mov_read_stsz(), mov_read_stts(), mov_read_sv3d(), mov_read_tenc(), mov_read_tfdt(), mov_read_tfhd(), mov_read_tkhd(), mov_read_trex(), mov_read_trun(), mov_read_udta_string(), mov_read_vpcc(), mpc8_read_header(), mpc_read_header(), mpegps_psm_parse(), mpegps_read_packet(), mpegps_read_pes_header(), mpegts_resync(), msnwc_tcp_read_header(), mtaf_read_header(), mtv_read_header(), mxf_get_eia608_packet(), mxf_read_generic_descriptor(), mxf_read_index_entry_array(), mxf_read_pixel_layout(), mxf_read_sequence(), mxf_read_sync(), mxf_read_timecode_component(), nc_read_packet(), nsv_parse_NSVs_header(), nsv_read_chunk(), nsv_resync(), nut_read_packet(), nuv_header(), nuv_resync(), ogg_read_page(), parse_chunks(), parse_dsd_prop(), parse_keyframes_index(), parse_MP4IODescrTag(), parse_MP4SLDescrTag(), parse_packet_header(), pmp_packet(), process_audio_header_eacs(), process_audio_header_elements(), qcp_read_header(), qcp_read_packet(), r3d_read_red1(), r3d_read_reda(), r3d_read_redv(), read_apic(), read_arbitrary(), read_comment(), read_frame(), read_geobtag(), read_header(), read_line(), read_moof_duration(), read_odml_index(), read_part_of_packet(), read_tfra(), read_trun_duration(), read_ttag(), read_uint8(), read_uslt(), read_xing_toc(), resync(), rm_assemble_video_frame(), rm_read_audio_stream_info(), rm_read_dts(), rm_read_metadata(), rm_sync(), rsd_read_header(), rsd_read_packet(), s337m_read_packet(), sds_read_header(), sds_read_packet(), sdx_read_header(), seq_parse_frame_data(), skip_reserved(), smacker_read_header(), smacker_read_packet(), smjpeg_read_header(), sol_read_header(), swf_read_header(), swf_read_packet(), tak_read_header(), tmv_read_header(), vc1t_read_header(), vc1t_read_packet(), vid_read_packet(), vivo_get_packet_header(), wsd_read_header(), wv_read_block_header(), yop_read_header(), yuv4_read_header(), and yuv4_read_packet().
int avio_read | ( | AVIOContext * | s, |
unsigned char * | buf, | ||
int | size | ||
) |
Read size bytes from AVIOContext into buf.
Definition at line 648 of file aviobuf.c.
Referenced by aa_read_packet(), acm_read_header(), add_metadata(), amf_get_string(), amr_read_header(), amr_read_packet(), ape_read_header(), ape_read_packet(), ape_tag_read_field(), apng_read_header(), append_extradata(), append_packet_chunked(), asf_parse_packet(), asf_read_multiple_payload(), asf_read_single_payload(), asf_read_stream_properties(), asf_read_value(), av_probe_input_buffer2(), avi_read_header(), avi_read_nikon(), avi_read_tag(), avio_read_to_bprint(), avs_read_packet(), avs_read_video_packet(), bfi_read_header(), bmv_read_packet(), cdxl_read_packet(), check(), check_file_header(), check_tag(), cin_read_packet(), copy_moof(), copy_tag(), decode_frame(), decode_main_header(), dsf_read_packet(), dss_723_1_read_packet(), dss_read_metadata_date(), dss_read_metadata_string(), dss_read_seek(), dss_sp_read_packet(), dtshd_read_header(), dv_read_header(), dv_read_packet(), dv_read_timecode(), dxa_read_packet(), ebml_read_ascii(), ebml_read_binary(), ff_ape_parse_tag(), ff_flac_parse_picture(), ff_get_extradata(), ff_get_guid(), ff_id3v1_read(), ff_img_read_header(), ff_img_read_packet(), ff_read_riff_info(), ff_sauce_read(), ff_spdif_read_packet(), ffio_read_indirect(), ffio_read_size(), film_read_header(), find_index_range(), fits_read_packet(), flac_read_header(), flic_read_header(), flic_read_packet(), flv_queue_extradata(), fourxm_read_header(), fourxm_read_packet(), fsb_read_header(), g723_1_read_packet(), genh_read_header(), get_chunk(), get_meta(), get_metadata(), get_packet_header(), get_pts(), get_riff(), get_str(), get_tag(), gif_read_ext(), gif_read_packet(), hls_encryption_start(), id3v2_parse(), id3v2_read_internal(), idcin_read_packet(), iff_read_header(), ilbc_read_header(), ilbc_read_packet(), import_pem(), ipmovie_read_header(), is_image(), klv_read_packet(), load_ipmovie_packet(), lxf_read_header(), lxf_read_packet(), lxf_sync(), main(), modplug_read_header(), mov_read_adrm(), mov_read_ddts(), mov_read_default(), mov_read_dfla(), mov_read_dops(), mov_read_free(), mov_read_keys(), mov_read_pssh(), mov_read_sample_encryption_info(), mov_read_tenc(), mov_read_uuid(), mov_read_wave(), mov_try_read_block(), mpc8_parse_seektable(), mpc_read_packet(), mpegps_read_packet(), mpegps_read_pes_header(), mpegts_get_pcr(), mpegts_raw_read_packet(), mpegts_read_header(), mxf_decrypt_triplet(), mxf_read_cryptographic_context(), mxf_read_essence_container_data(), mxf_read_generic_descriptor(), mxf_read_indirect_value(), mxf_read_local_tags(), mxf_read_package(), mxf_read_partition_pack(), mxf_read_primer_pack(), mxf_read_pulldown_component(), mxf_read_sequence(), mxf_read_source_clip(), mxf_read_strong_ref_array(), mxf_read_track(), mxg_update_cache(), next_byte(), nsv_parse_NSVf_header(), nuv_header(), nuv_packet(), nuv_read_dts(), ogg_read_page(), ogg_replace_stream(), oma_read_header(), oma_read_seek(), open_input(), open_output_file(), parse_chunks(), parse_fragment(), parse_manifest(), parse_MP4DecConfigDescrTag(), parse_video_info(), process_client(), process_ipmovie_chunk(), qcp_read_header(), r3d_read_red1(), read_apic(), read_chapter(), read_file(), read_frame(), read_from_url(), read_geobtag(), read_graph(), read_header(), read_header_gme(), read_header_openmpt(), read_header_vs(), read_kuki_chunk(), read_packet(), read_part_of_packet(), read_priv(), read_sm_data(), read_string(), read_table(), read_uslt(), read_whole_file(), readfull(), rm_assemble_video_frame(), rm_read_audio_stream_info(), roq_read_header(), roq_read_packet(), rsd_read_header(), s337m_read_packet(), sdr2_read_packet(), sds_read_packet(), seq_fill_buffer(), seq_read_packet(), set_spdif(), siff_read_packet(), smacker_read_header(), smacker_read_packet(), smjpeg_read_header(), sox_read_header(), str_read_header(), str_read_packet(), swf_read_packet(), tak_read_header(), thp_read_header(), tta_read_header(), ty_read_header(), vid_read_packet(), vivo_read_header(), vmd_read_header(), vmd_read_packet(), vpk_read_packet(), vqf_read_header(), vqf_read_packet(), wc3_read_header(), wc3_read_packet(), wsaud_read_header(), wsaud_read_packet(), wsvqa_read_header(), wsvqa_read_packet(), wtvfile_read_packet(), wv_read_block_header(), wv_read_packet(), xmv_process_packet_header(), yop_read_header(), and yop_read_packet().
int ffio_read_size | ( | AVIOContext * | s, |
unsigned char * | buf, | ||
int | size | ||
) |
Read size bytes from AVIOContext into buf.
Check that exactly size bytes have been read.
Definition at line 697 of file aviobuf.c.
Referenced by codec2_read_header(), mov_parse_uuid_spherical(), mov_read_atom_into_extradata(), mov_read_chpl(), mov_read_cmov(), mov_read_colr(), mov_read_custom(), mov_read_dref(), mov_read_ftyp(), mov_read_hdlr(), mov_read_stsz(), and mov_read_udta_string().
int ffio_read_indirect | ( | AVIOContext * | s, |
unsigned char * | buf, | ||
int | size, | ||
const unsigned char ** | data | ||
) |
Read size bytes from AVIOContext, returning a pointer.
Note that the data pointed at by the returned pointer is only valid until the next call that references the same IO context.
s | IO context |
buf | pointer to buffer into which to assemble the requested data if it is not available in contiguous addresses in the underlying buffer |
size | number of bytes requested |
data | address at which to store pointer: this will be a a direct pointer into the underlying buffer if the requested number of bytes are available at contiguous addresses, otherwise will be a copy of buf |
Definition at line 705 of file aviobuf.c.
Referenced by read_packet().
int avio_read_partial | ( | AVIOContext * | s, |
unsigned char * | buf, | ||
int | size | ||
) |
Read size bytes from AVIOContext into buf.
Unlike avio_read(), this is allowed to read fewer bytes than requested. The missing bytes can be read in the next call. This always tries to read at least 1 byte. Useful to reduce latency in certain cases.
Definition at line 717 of file aviobuf.c.
Referenced by ff_raw_read_partial_packet().
unsigned int avio_rl16 | ( | AVIOContext * | s | ) |
Definition at line 754 of file aviobuf.c.
Referenced by ape_read_header(), asf_build_simple_index(), asf_get_packet(), asf_read_content_desc(), asf_read_ext_content(), asf_read_ext_content_desc(), asf_read_ext_stream_properties(), asf_read_frame_header(), asf_read_generic_value(), asf_read_language_list(), asf_read_marker(), asf_read_metadata(), asf_read_metadata_obj(), asf_read_multiple_payload(), asf_read_stream_properties(), asf_read_subpayload(), avi_read_header(), avi_read_nikon(), avi_sync(), avio_rl24(), avio_rl32(), avs_read_header(), avs_read_packet(), cin_read_file_header(), cin_read_frame_header(), cine_read_header(), decode_str(), dfa_read_header(), ff_get_bmp_header(), ff_get_wav_header(), ff_sauce_read(), ff_spdif_read_packet(), ff_text_r8(), ff_voc_get_packet(), frm_read_header(), fsb_read_header(), gdv_read_header(), gdv_read_packet(), get_asf_string(), get_fourcc(), get_swf_tag(), get_tag(), get_value(), gif_read_ext(), gif_read_header(), guess_ni_flag(), hnm_read_header(), hnm_read_packet(), ingenient_read_packet(), lvf_read_header(), mpc8_get_chunk_header(), msnwc_tcp_read_packet(), mtv_read_header(), nc_read_packet(), nsv_parse_NSVs_header(), nsv_read_chunk(), parse_video_info(), parse_waveformatex(), pmp_header(), process_ea_header(), process_video_header_cmv(), process_video_header_mdec(), qcp_read_header(), qt_rtp_parse_packet(), read16(), read_frame(), read_gab2_sub(), read_header(), read_odml_index(), read_packet(), read_uint16(), rl2_read_header(), s337m_read_packet(), scan_file(), seq_init_frame_buffers(), seq_parse_frame_data(), siff_parse_soun(), siff_parse_vbv1(), siff_read_packet(), smush_read_header(), sol_read_header(), swf_read_header(), swf_read_packet(), tmv_read_header(), tta_read_header(), vid_read_header(), vid_read_packet(), voc_read_header(), wv_read_block_header(), xa_read_header(), xmv_read_header(), and yop_read_header().
unsigned int avio_rl24 | ( | AVIOContext * | s | ) |
Definition at line 762 of file aviobuf.c.
Referenced by bmv_read_packet(), ff_voc_get_packet(), hnm_read_packet(), mpc_read_header(), mtv_read_header(), read_comment(), read_header(), s337m_read_packet(), sds_read_header(), smacker_read_header(), tak_read_header(), vc1t_read_header(), vc1t_read_packet(), and wv_read_block_header().
unsigned int avio_rl32 | ( | AVIOContext * | s | ) |
Definition at line 770 of file aviobuf.c.
Referenced by ads_read_header(), aiff_read_header(), aix_read_header(), aix_read_packet(), apc_read_header(), ape_read_header(), ape_tag_read_field(), apng_read_header(), apng_read_packet(), asf_build_simple_index(), asf_get_packet(), asf_read_ext_stream_properties(), asf_read_file_properties(), asf_read_frame_header(), asf_read_generic_value(), asf_read_header(), asf_read_marker(), asf_read_metadata(), asf_read_metadata_obj(), asf_read_packet_header(), asf_read_picture(), asf_read_properties(), asf_read_replicated_data(), asf_read_simple_index(), asf_read_single_payload(), asf_read_stream_properties(), ast_read_packet(), avi_load_index(), avi_read_header(), avi_read_idx1(), avi_read_nikon(), avio_rl64(), avs_read_header(), bfi_read_header(), bfi_read_packet(), check_file_header(), cin_read_file_header(), cin_read_frame_header(), cine_read_header(), cine_read_packet(), dcstr_read_header(), dfa_read_header(), dsf_read_header(), dxa_read_header(), ea_read_packet(), epaf_read_header(), ff_ape_parse_tag(), ff_dnn_load_model_native(), ff_get_bmp_header(), ff_get_wav_header(), ff_mov_read_chan(), ff_mov_read_stsd_entries(), ff_read_riff_info(), ff_rm_read_mdpr_codecdata(), ff_voc_get_packet(), flac_read_header(), fourxm_read_packet(), fsb_read_header(), genh_read_header(), get_aiff_header(), get_attachment(), get_codec_data(), get_fourcc(), get_riff(), get_swf_tag(), get_tag(), get_value(), guess_ni_flag(), gxf_header(), gxf_read_index(), hnm_read_header(), idcin_read_header(), idcin_read_packet(), iff_read_header(), iff_read_packet(), ingenient_read_packet(), ircam_read_header(), ivr_read_header(), lvf_read_header(), lvf_read_packet(), mmf_read_header(), mov_read_cmov(), mov_read_custom(), mov_read_default(), mov_read_dref(), mov_read_frma(), mov_read_glbl(), mov_read_hdlr(), mov_read_keys(), mov_read_meta(), mov_read_sbgp(), mov_read_sv3d(), mov_read_udta_string(), mov_read_wide(), mpc8_read_header(), mpc_read_header(), mpc_read_packet(), msnwc_tcp_read_packet(), mtaf_read_header(), mtv_read_header(), musx_read_header(), nsp_read_header(), nsv_parse_NSVf_header(), nsv_parse_NSVs_header(), nsv_read_chunk(), nuv_header(), ogg_read_page(), parse_chunks(), parse_dsd_diin(), parse_dsd_prop(), parse_fragment(), parse_legacy_attrib(), parse_video_info(), parse_waveformatex(), pmp_header(), pmp_packet(), process_audio_header_eacs(), process_audio_header_sead(), process_ea_header(), process_video_header_vp6(), qcp_read_header(), qcp_read_packet(), qt_rtp_parse_packet(), rdt_load_mdpr(), read32(), read_atom(), read_desc_chunk(), read_dst_frame(), read_gab2_sub(), read_header(), read_ints(), read_odml_index(), read_packet(), read_table(), read_uint32(), rl2_read_header(), rm_read_audio_stream_info(), rm_read_header(), rm_read_index(), rpl_read_packet(), rsd_read_header(), scan_file(), sdr2_read_header(), sdr2_read_packet(), sdx_read_header(), ser_read_header(), siff_parse_soun(), siff_parse_vbv1(), siff_read_header(), siff_read_packet(), smacker_read_header(), smacker_read_packet(), smjpeg_read_header(), smjpeg_read_packet(), smush_read_header(), sol_read_header(), sox_read_header(), svag_read_header(), swf_read_header(), swf_read_packet(), tak_read_header(), threedostr_read_header(), threedostr_read_packet(), tmv_read_header(), tta_read_header(), txd_read_packet(), vag_read_header(), vc1t_read_header(), vc1t_read_packet(), vpk_read_header(), vqf_read_header(), wc3_read_header(), wc3_read_packet(), wv_read_block_header(), xa_read_header(), xmv_fetch_video_packet(), xmv_process_packet_header(), xmv_read_extradata(), xmv_read_header(), xvag_read_header(), and xwma_read_header().
uint64_t avio_rl64 | ( | AVIOContext * | s | ) |
Definition at line 778 of file aviobuf.c.
Referenced by asf_build_simple_index(), asf_read_content_desc(), asf_read_data(), asf_read_ext_content(), asf_read_ext_stream_properties(), asf_read_file_properties(), asf_read_frame_header(), asf_read_generic_value(), asf_read_header(), asf_read_language_list(), asf_read_marker(), asf_read_metadata_obj(), asf_read_properties(), asf_read_simple_index(), asf_read_stream_properties(), asf_read_unknown(), check_file_header(), cine_read_header(), dsf_read_header(), get_tag(), get_value(), gxf_track_tags(), nuv_header(), ogg_read_page(), parse_chunks(), read_header(), read_odml_index(), read_packet(), read_sm_data(), read_uint64(), and sox_read_header().
unsigned int avio_rb16 | ( | AVIOContext * | s | ) |
Definition at line 786 of file aviobuf.c.
Referenced by aal_read_packet(), adx_read_header(), afc_read_header(), aix_read_header(), aix_read_packet(), amf_get_string(), amf_skip_tag(), ast_read_header(), avio_rb24(), avio_rb32(), avr_read_header(), cdata_read_header(), daud_packet(), decode_fctl_chunk(), decode_str(), dtshd_read_header(), dxa_read_header(), ff_get_qtpalette(), ff_get_wav_header(), ff_mov_read_esds(), ff_mov_read_stsd_entries(), ff_mp4_parse_es_descr(), ff_rm_parse_packet(), ff_rm_read_mdpr_codecdata(), ff_text_r8(), flv_data_packet(), get_aiff_header(), get_num(), gxf_header(), id3v2_parse(), iff_read_header(), ivr_read_header(), ivr_read_packet(), lmlm4_read_packet(), matroska_parse_tracks(), mov_metadata_loci(), mov_metadata_track_or_disc_number(), mov_parse_stsd_audio(), mov_parse_stsd_video(), mov_read_ares(), mov_read_chapters(), mov_read_clli(), mov_read_coll(), mov_read_colr(), mov_read_dec3(), mov_read_dref(), mov_read_enda(), mov_read_fiel(), mov_read_mdcv(), mov_read_mdhd(), mov_read_mvhd(), mov_read_sample_encryption_info(), mov_read_sidx(), mov_read_smdm(), mov_read_tkhd(), mov_read_udta_string(), mov_read_vpcc(), mp3_parse_vbri_tag(), mpegps_psm_parse(), mpegps_read_packet(), mpegps_read_pes_header(), mv_read_header(), mxf_get_eia608_packet(), mxf_read_generic_descriptor(), mxf_read_local_tags(), mxf_read_timecode_component(), parse_dsd_prop(), parse_MP4IODescrTag(), parse_MP4ODescrTag(), parse_MP4SLDescrTag(), qt_rtp_parse_packet(), r3d_read_red1(), r3d_read_reda(), r3d_read_redv(), rdt_load_mdpr(), read16(), read_header(), read_packet(), read_part_of_packet(), rm_read_audio_stream_info(), rm_read_header(), rm_read_index(), rm_read_metadata(), rm_read_multi(), rm_sync(), rso_read_header(), sds_read_packet(), smjpeg_read_header(), sup_read_packet(), and xvag_read_header().
unsigned int avio_rb24 | ( | AVIOContext * | s | ) |
Definition at line 794 of file aviobuf.c.
Referenced by aal_read_packet(), asfrtp_parse_packet(), avr_read_header(), codec2_read_header(), dtshd_read_header(), ff_mp4_read_dec_config_descr(), flv_read_packet(), id3v2_parse(), mov_read_chpl(), mov_read_ctts(), mov_read_dac3(), mov_read_dec3(), mov_read_dfla(), mov_read_elst(), mov_read_hdlr(), mov_read_mdhd(), mov_read_mvhd(), mov_read_pssh(), mov_read_saio(), mov_read_saiz(), mov_read_sbgp(), mov_read_senc(), mov_read_sidx(), mov_read_stco(), mov_read_stsc(), mov_read_stsd(), mov_read_stss(), mov_read_stsz(), mov_read_stts(), mov_read_tenc(), mov_read_tfdt(), mov_read_tfhd(), mov_read_tkhd(), mov_read_trex(), mov_read_trun(), mov_read_udta_string(), mpl2_read_header(), read_moof_duration(), read_part_of_packet(), read_tfra(), read_trun_duration(), smush_read_header(), and tak_read_header().
unsigned int avio_rb32 | ( | AVIOContext * | s | ) |
Definition at line 801 of file aviobuf.c.
Referenced by aa_read_header(), aa_read_packet(), aal_read_packet(), afc_read_header(), aiff_read_header(), aix_read_header(), aix_read_packet(), amf_parse_object(), amf_skip_tag(), apng_read_header(), apng_read_packet(), ast_read_header(), ast_read_packet(), avi_sync(), avio_rb64(), copy_tag(), decode_fctl_chunk(), decode_frame_header(), dtshd_read_header(), dv_read_header(), dxa_read_header(), ea_read_packet(), ebml_read_float(), epaf_read_header(), ff_flac_parse_picture(), ff_get_qtpalette(), ff_get_wav_header(), ff_mov_read_chan(), ff_mov_read_esds(), ff_mov_read_stsd_entries(), ff_mp4_read_dec_config_descr(), ff_rm_read_mdpr_codecdata(), find_sidx(), flv_read_header(), flv_read_packet(), fsb_read_header(), get_aiff_header(), get_packetheader(), get_tag(), gxf_material_tags(), gxf_packet(), gxf_resync_media(), gxf_track_tags(), id3v2_parse(), iff_read_header(), iff_read_packet(), ircam_read_header(), ivr_read_header(), ivr_read_packet(), lmlm4_read_packet(), matroska_parse_tracks(), matroska_resync(), mmf_read_header(), mov_metadata_hmmt(), mov_metadata_loci(), mov_parse_stsd_audio(), mov_parse_stsd_video(), mov_read_ares(), mov_read_chap(), mov_read_chpl(), mov_read_cmov(), mov_read_ctts(), mov_read_custom(), mov_read_default(), mov_read_dref(), mov_read_elst(), mov_read_ftyp(), mov_read_glbl(), mov_read_hdlr(), mov_read_keys(), mov_read_mdcv(), mov_read_mdhd(), mov_read_mfra(), mov_read_mvhd(), mov_read_pasp(), mov_read_pssh(), mov_read_saio(), mov_read_saiz(), mov_read_sample_encryption_info(), mov_read_sbgp(), mov_read_schm(), mov_read_senc(), mov_read_sidx(), mov_read_smdm(), mov_read_stco(), mov_read_stps(), mov_read_stsc(), mov_read_stsd(), mov_read_stss(), mov_read_stsz(), mov_read_stts(), mov_read_sv3d(), mov_read_tfdt(), mov_read_tfhd(), mov_read_timecode_track(), mov_read_tkhd(), mov_read_tmcd(), mov_read_trex(), mov_read_trun(), mov_read_udta_string(), mov_read_wide(), mp3_parse_info_tag(), mp3_parse_vbr_tags(), mp3_parse_vbri_tag(), mpegps_psm_parse(), msf_read_header(), musx_read_header(), mv_read_header(), mxf_get_eia608_packet(), mxf_read_essence_container_data(), mxf_read_generic_descriptor(), mxf_read_index_entry_array(), mxf_read_index_table_segment(), mxf_read_partition_pack(), mxf_read_primer_pack(), mxf_read_random_index_pack(), mxf_read_source_clip(), mxf_read_strong_ref_array(), mxf_read_track(), nsp_read_header(), nuv_resync(), parse_dsd_diin(), parse_dsd_prop(), parse_fragment(), parse_keyframes_index(), parse_MP4SLDescrTag(), parse_packet_header(), process_audio_header_eacs(), qcp_read_header(), qt_rtp_parse_packet(), r3d_read_rdvo(), r3d_read_red1(), r3d_read_reda(), r3d_read_redv(), r3d_read_reos(), rdt_load_mdpr(), read32(), read_atom(), read_chapter(), read_desc_chunk(), read_dst_frame(), read_header(), read_index(), read_info_chunk(), read_mfra(), read_moof_duration(), read_packet(), read_pakt_chunk(), read_part_of_packet(), read_table(), read_tfra(), read_trun_duration(), redspark_read_header(), rl2_read_header(), rm_read_audio_stream_info(), rm_read_header(), rm_read_index(), rm_read_multi(), rm_sync(), rsd_read_header(), siff_parse_soun(), siff_parse_vbv1(), skip_tag(), smjpeg_read_header(), smjpeg_read_packet(), smush_read_header(), smush_read_packet(), sox_read_header(), sup_read_packet(), swf_read_header(), thp_read_header(), thp_read_packet(), threedostr_read_header(), threedostr_read_packet(), vag_read_header(), vqf_read_header(), wc3_read_header(), wc3_read_packet(), wsd_read_header(), wve_read_header(), and xvag_read_header().
int ff_get_line | ( | AVIOContext * | s, |
char * | buf, | ||
int | maxlen | ||
) |
Read a whole line of text from AVIOContext.
Stop reading after reaching either a \n, a \0 or EOF. The returned string is always \0-terminated, and may be truncated if the buffer is too small.
s | the read-only AVIOContext |
buf | buffer to store the read line |
maxlen | size of the buffer |
Definition at line 809 of file aviobuf.c.
Referenced by aqt_read_header(), ff_get_chomp_line(), get_line(), hls_encryption_start(), jacosub_read_header(), microdvd_read_header(), mpl2_read_header(), mpsub_read_header(), nist_read_header(), pjs_read_header(), pvf_read_header(), stl_read_header(), subviewer1_read_header(), subviewer_read_header(), and vplayer_read_header().
int ff_get_chomp_line | ( | AVIOContext * | s, |
char * | buf, | ||
int | maxlen | ||
) |
Same as ff_get_line but strip the white-space characters in the text tail.
s | the read-only AVIOContext |
buf | buffer to store the read line |
maxlen | size of the buffer |
Definition at line 826 of file aviobuf.c.
Referenced by parse_playlist().
int64_t ff_read_line_to_bprint | ( | AVIOContext * | s, |
AVBPrint * | bp | ||
) |
Read a whole line of text from AVIOContext to an AVBPrint buffer.
Stop reading after reaching a \r, a \n, a \r\n, a \0 or EOF. The line ending characters are NOT included in the buffer, but they are skipped on the input.
s | the read-only AVIOContext |
bp | the AVBPrint buffer |
Definition at line 834 of file aviobuf.c.
Referenced by ff_read_line_to_bprint_overwrite().
int64_t ff_read_line_to_bprint_overwrite | ( | AVIOContext * | s, |
AVBPrint * | bp | ||
) |
Read a whole line of text from AVIOContext to an AVBPrint buffer overwriting its contents.
Stop reading after reaching a \r, a \n, a \r\n, a \0 or EOF. The line ending characters are NOT included in the buffer, but they are skipped on the input.
s | the read-only AVIOContext |
bp | the AVBPrint buffer |
Definition at line 865 of file aviobuf.c.
Referenced by concat_read_header().
int avio_get_str | ( | AVIOContext * | pb, |
int | maxlen, | ||
char * | buf, | ||
int | buflen | ||
) |
Read a string from pb into buf.
The reading will terminate when either a NULL character was encountered, maxlen bytes have been read, or nothing more can be read from pb. The result is guaranteed to be NULL-terminated, it will be truncated if buf is too small. Note that the string is not interpreted or validated in any way, it might get truncated in the middle of a sequence for multi-byte encodings.
Definition at line 880 of file aviobuf.c.
Referenced by aa_read_header(), ape_tag_read_field(), cine_read_header(), get_strl(), ivr_read_header(), mov_metadata_loci(), mov_read_chapters(), mpegps_read_header(), nsp_read_header(), read_apic(), read_info_chunk(), and var_read_string().
uint64_t avio_rb64 | ( | AVIOContext * | s | ) |
Definition at line 922 of file aviobuf.c.
Referenced by amf_parse_object(), apng_read_header(), dtshd_read_header(), ebml_read_float(), find_and_decode_index(), get_aiff_header(), iff_read_header(), ivr_read_header(), ivr_read_packet(), mov_parse_stsd_audio(), mov_read_chpl(), mov_read_default(), mov_read_elst(), mov_read_mdhd(), mov_read_mvhd(), mov_read_saio(), mov_read_sidx(), mov_read_stco(), mov_read_tfdt(), mov_read_tfhd(), mov_read_tkhd(), mov_read_wave(), mxf_decrypt_triplet(), mxf_read_essence_group(), mxf_read_generic_descriptor(), mxf_read_index_entry_array(), mxf_read_index_table_segment(), mxf_read_partition_pack(), mxf_read_random_index_pack(), mxf_read_sequence(), mxf_read_source_clip(), mxf_read_timecode_component(), parse_dsd_diin(), parse_dsd_prop(), parse_fragment(), parse_keyframes_index(), read_desc_chunk(), read_dst_frame(), read_header(), read_moof_duration(), read_pakt_chunk(), read_tfra(), and sox_read_header().
uint64_t ffio_read_varlen | ( | AVIOContext * | bc | ) |
Definition at line 930 of file aviobuf.c.
Referenced by decode_frame_header(), decode_info_header(), decode_main_header(), decode_stream_header(), decode_syncpoint(), find_and_decode_index(), get_fourcc(), get_packetheader(), get_s(), get_str(), mpc8_get_chunk_header(), mpc8_handle_chunk(), mpc8_read_header(), and read_sm_data().
Definition at line 941 of file aviobuf.c.
Referenced by ffio_fdopen(), and ffio_geturlcontext().
Definition at line 947 of file aviobuf.c.
Referenced by ffio_fdopen().
Definition at line 953 of file aviobuf.c.
Referenced by ffio_fdopen().
Definition at line 959 of file aviobuf.c.
Referenced by ffio_fdopen().
Definition at line 965 of file aviobuf.c.
Referenced by ffio_fdopen().
|
static |
Definition at line 973 of file aviobuf.c.
Referenced by ffio_fdopen().
int ffio_fdopen | ( | AVIOContext ** | s, |
URLContext * | h | ||
) |
Create and initialize a AVIOContext for accessing the resource referenced by the URLContext h.
s | Used to return the pointer to the created AVIOContext. In case of failure the pointed to value is set to NULL. |
Definition at line 981 of file aviobuf.c.
Referenced by avio_accept(), ff_rtp_chain_mux_open(), and ffio_open_whitelist().
URLContext* ffio_geturlcontext | ( | AVIOContext * | s | ) |
Return the URLContext associated with the AVIOContext.
s | IO context |
Definition at line 1039 of file aviobuf.c.
Referenced by dashenc_io_close(), dashenc_io_open(), hlsenc_io_close(), hlsenc_io_open(), and open_url_keepalive().
int ffio_ensure_seekback | ( | AVIOContext * | s, |
int64_t | buf_size | ||
) |
Ensures that the requested seekback buffer size will be available.
Will ensure that when reading sequentially up to buf_size, seeking within the current pos and pos+buf_size is possible. Once the stream position moves outside this window this guarantee is lost.
Definition at line 1052 of file aviobuf.c.
Referenced by apng_read_header(), apng_read_packet(), id3v2_parse(), id3v2_read_internal(), ivr_read_header(), mov_read_wave(), mp3_read_header(), mpegps_read_pes_header(), mpegts_read_header(), mpjpeg_read_packet(), rm_read_header(), and set_spdif().
int ffio_set_buf_size | ( | AVIOContext * | s, |
int | buf_size | ||
) |
Definition at line 1081 of file aviobuf.c.
Referenced by ff_configure_buffers_for_index(), and fill_buffer().
int ffio_rewind_with_probe_data | ( | AVIOContext * | s, |
unsigned char ** | buf, | ||
int | buf_size | ||
) |
Rewind the AVIOContext using the specified buffer containing the first buf_size bytes of the file.
Used after probing to avoid seeking. Joins buf and s->buffer, taking any overlap into consideration.
s | The read-only AVIOContext to rewind |
buf | The probe buffer containing the first buf_size bytes of the file |
buf_size | The size of buf |
Definition at line 1111 of file aviobuf.c.
Referenced by av_probe_input_buffer2(), and ff_img_read_header().
int avio_open | ( | AVIOContext ** | s, |
const char * | url, | ||
int | flags | ||
) |
Create and initialize a AVIOContext for accessing the resource indicated by url.
s | Used to return the pointer to the created AVIOContext. In case of failure the pointed to value is set to NULL. |
url | resource to access |
flags | flags which control how the resource indicated by url is to be opened |
Definition at line 1154 of file aviobuf.c.
Referenced by ff_dnn_load_model_native(), init(), main(), open_output_file(), read_file(), and read_graph().
int ffio_open_whitelist | ( | AVIOContext ** | s, |
const char * | filename, | ||
int | flags, | ||
const AVIOInterruptCB * | int_cb, | ||
AVDictionary ** | options, | ||
const char * | whitelist, | ||
const char * | blacklist | ||
) |
Definition at line 1159 of file aviobuf.c.
Referenced by avio_open2(), ffio_open2_wrapper(), import_pem(), io_open_default(), and parse_playlist().
int avio_open2 | ( | AVIOContext ** | s, |
const char * | url, | ||
int | flags, | ||
const AVIOInterruptCB * | int_cb, | ||
AVDictionary ** | options | ||
) |
Create and initialize a AVIOContext for accessing the resource indicated by url.
s | Used to return the pointer to the created AVIOContext. In case of failure the pointed to value is set to NULL. |
url | resource to access |
flags | flags which control how the resource indicated by url is to be opened |
int_cb | an interrupt callback to be used at the protocols level |
options | A dictionary filled with protocol-private options. On return this parameter will be destroyed and replaced with a dict containing options that were not found. May be NULL. |
Definition at line 1178 of file aviobuf.c.
Referenced by avio_open(), dump_attachment(), find_sidx(), get_preset_file_2(), lavfi_read_header(), main(), open_output_file(), open_url(), opt_progress(), parse_manifest(), print_sdp(), process_client(), read_mfra(), and write_fragment().
int ffio_open2_wrapper | ( | struct AVFormatContext * | s, |
AVIOContext ** | pb, | ||
const char * | url, | ||
int | flags, | ||
const AVIOInterruptCB * | int_cb, | ||
AVDictionary ** | options | ||
) |
int avio_close | ( | AVIOContext * | s | ) |
Close the resource accessed by the AVIOContext s and free it.
This function can only be used if s was opened by avio_open().
The internal buffer is automatically flushed before closing the resource.
Definition at line 1190 of file aviobuf.c.
Referenced by avformat_close_input(), avio_closep(), do_encrypt(), dump_attachment(), find_sidx(), import_pem(), io_close_default(), main(), parse_manifest(), parse_playlist(), process_client(), read_mfra(), and write_fragment().
int avio_closep | ( | AVIOContext ** | s | ) |
Close the resource accessed by the AVIOContext *s, free it and set the pointer pointing to it to NULL.
This function can only be used if s was opened by avio_open().
The internal buffer is automatically flushed before closing the resource.
Definition at line 1215 of file aviobuf.c.
Referenced by avformat_open_input(), ff_dnn_load_model_native(), ff_rtp_chain_mux_open(), ff_rtsp_undo_setup(), ffio_fdopen(), ffmpeg_cleanup(), lavfi_read_header(), main(), new_output_stream(), open_output_file(), print_report(), print_sdp(), read_file(), read_graph(), sap_write_close(), and uninit().
int avio_printf | ( | AVIOContext * | s, |
const char * | fmt, | ||
... | |||
) |
int avio_pause | ( | AVIOContext * | h, |
int | pause | ||
) |
Pause and resume playing - only meaningful if using a network streaming protocol (e.g.
MMS).
h | IO context from which to call the read_pause function pointer |
pause | 1 for pause, 0 for resume |
Definition at line 1235 of file aviobuf.c.
Referenced by av_read_pause(), and av_read_play().
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.
Only meaningful if using a network streaming protocol (e.g. MMS.).
h | IO context from which to call the seek function pointers |
stream_index | The stream index that the timestamp is relative to. If stream_index is (-1) the timestamp should be in AV_TIME_BASE units from the beginning of the presentation. If a stream_index >= 0 is used and the protocol does not support seeking based on component streams, the call will fail. |
timestamp | timestamp in AVStream.time_base units or if there is no stream specified then in AV_TIME_BASE units. |
flags | Optional combination of AVSEEK_FLAG_BACKWARD, AVSEEK_FLAG_BYTE and AVSEEK_FLAG_ANY. The protocol may silently ignore AVSEEK_FLAG_BACKWARD and AVSEEK_FLAG_ANY, but AVSEEK_FLAG_BYTE will fail if used and not supported. |
Definition at line 1242 of file aviobuf.c.
Referenced by asf_read_seek(), and flv_read_seek().
int avio_read_to_bprint | ( | AVIOContext * | h, |
struct AVBPrint * | pb, | ||
size_t | max_size | ||
) |
Read contents of h into print buffer, up to max_size bytes, or up to EOF.
Definition at line 1261 of file aviobuf.c.
Referenced by lavfi_read_header().
int avio_accept | ( | AVIOContext * | s, |
AVIOContext ** | c | ||
) |
int avio_handshake | ( | AVIOContext * | c | ) |
Perform one step of the protocol handshake to accept a new client.
This function must be called on a client returned by avio_accept() before using it as a read/write context. It is separate from avio_accept() because it may block. A step of the handshake is defined by places where the application may decide to change the proceedings. For example, on a protocol with a request header and a reply header, each one can constitute a step because the application may use the parameters from the request to change parameters in the reply; or each individual chunk of the request can constitute a step. If the handshake is already finished, avio_handshake() does nothing and returns 0 immediately.
c | the client context to perform the handshake on |
Definition at line 1291 of file aviobuf.c.
Referenced by process_client().
Definition at line 1307 of file aviobuf.c.
Referenced by dyn_packet_buf_write(), and url_open_dyn_buf_internal().
Definition at line 1340 of file aviobuf.c.
Referenced by url_open_dyn_buf_internal().
Definition at line 1355 of file aviobuf.c.
Referenced by url_open_dyn_buf_internal().
|
static |
Definition at line 1369 of file aviobuf.c.
Referenced by avio_open_dyn_buf(), ffio_open_dyn_packet_buf(), and ffio_open_null_buf().
int avio_open_dyn_buf | ( | AVIOContext ** | s | ) |
Open a write only memory stream.
s | new IO context |
Definition at line 1391 of file aviobuf.c.
Referenced by ac3_handle_packet(), asf_write_header1(), asf_write_markers(), asfrtp_parse_packet(), choose_pix_fmts(), chunk_start(), dash_init(), decode_str(), describe_filter_link(), dv_handle_packet(), ff_ape_write_tag(), ff_av1_filter_obus_buf(), ff_avc_parse_nal_units_buf(), ff_hevc_annexb2mp4_buf(), ff_id3v2_write_apic(), ff_isom_write_av1c(), ff_isom_write_avcc(), ff_mov_add_hinted_packet(), ff_mov_write_packet(), ff_rtp_check_and_send_back_rr(), ff_rtp_send_punch_packets(), ff_rtp_send_rtcp_feedback(), flush_dynbuf(), get_line(), get_video_private_data(), h261_handle_packet(), h263_handle_packet(), hls_mux_init(), hls_write_packet(), hls_write_trailer(), id3v2_put_priv(), id3v2_put_ttag(), jpeg_parse_packet(), latm_parse_packet(), mkv_check_new_extra_data(), mkv_write_codecprivate(), mkv_write_video_color(), mkv_write_video_projection(), mov_create_chapter_track(), mov_flush_fragment_interleaving(), mov_write_track_udta_tag(), mov_write_udta_tag(), mp3_write_xing(), mpa_robust_parse_packet(), mpegts_write_packet_internal(), nut_write_packet(), nut_write_trailer(), ogg_write_page(), put_str16(), read_file(), rtp_mpegts_write_header(), rtp_mpegts_write_packet(), set_codec_str(), start_ebml_master_crc32(), svq3_parse_packet(), tta_write_header(), vc2hq_handle_frame_fragment(), vp8_handle_packet(), vp9_handle_packet(), write_chapter(), write_globalinfo(), write_headers(), write_sm_data(), write_streaminfo(), and xiph_handle_packet().
int ffio_open_dyn_packet_buf | ( | AVIOContext ** | s, |
int | max_packet_size | ||
) |
Open a write only packetized memory stream with a maximum packet size of 'max_packet_size'.
The stream is stored in a memory buffer with a big-endian 4 byte header giving the packet size in bytes.
s | new IO context |
max_packet_size | maximum packet size (must be > 0) |
Definition at line 1396 of file aviobuf.c.
Referenced by ff_mov_add_hinted_packet(), ff_rtp_chain_mux_open(), and ff_rtsp_tcp_write_packet().
int avio_get_dyn_buf | ( | AVIOContext * | s, |
uint8_t ** | pbuffer | ||
) |
Return the written size and a pointer to the buffer.
The AVIOContext stream is left intact. The buffer must NOT be freed. No padding is added to the buffer.
s | IO context |
pbuffer | pointer to a byte buffer |
Definition at line 1403 of file aviobuf.c.
Referenced by dash_write_packet(), and end_ebml_master_crc32_preliminary().
int avio_close_dyn_buf | ( | AVIOContext * | s, |
uint8_t ** | pbuffer | ||
) |
Return the written size and a pointer to the buffer.
The buffer must be freed with av_free(). Padding of AV_INPUT_BUFFER_PADDING_SIZE is added to the buffer.
s | IO context |
pbuffer | pointer to a byte buffer |
Definition at line 1420 of file aviobuf.c.
Referenced by asf_write_header1(), asf_write_markers(), asfrtp_parse_packet(), choose_pix_fmts(), chunk_end(), decode_str(), describe_filter_link(), end_ebml_master_crc32(), ff_ape_write_tag(), ff_av1_filter_obus_buf(), ff_avc_parse_nal_units_buf(), ff_hevc_annexb2mp4_buf(), ff_id3v2_write_apic(), ff_isom_write_av1c(), ff_isom_write_avcc(), ff_mov_add_hinted_packet(), ff_rtp_check_and_send_back_rr(), ff_rtp_finalize_packet(), ff_rtp_send_punch_packets(), ff_rtp_send_rtcp_feedback(), ff_rtsp_tcp_write_packet(), ffio_free_dyn_buf(), flush_dynbuf(), get_line(), get_video_private_data(), hls_write_packet(), hls_write_trailer(), id3v2_put_priv(), id3v2_put_ttag(), latm_parse_packet(), mkv_check_new_extra_data(), mkv_free(), mkv_write_codecprivate(), mkv_write_video_color(), mkv_write_video_projection(), mov_create_chapter_track(), mov_flush_fragment(), mov_flush_fragment_interleaving(), mov_write_track_udta_tag(), mov_write_udta_tag(), mp3_write_xing(), mpegts_write_packet_internal(), nut_write_packet(), ogg_write_page(), put_packet(), put_str16(), read_file(), rtp_mpegts_write_packet(), set_codec_str(), tta_write_trailer(), write_chapter(), write_globalinfo(), write_sm_data(), and write_streaminfo().
void ffio_free_dyn_buf | ( | AVIOContext ** | s | ) |
Free a dynamic buffer.
s | a pointer to an IO context opened by avio_open_dyn_buf() |
Definition at line 1450 of file aviobuf.c.
Referenced by ac3_close_context(), ac3_handle_packet(), asfrtp_close_context(), asfrtp_parse_packet(), dash_free(), decode_str(), dv_close_context(), dv_handle_packet(), ff_mov_close_hinting(), ff_rtp_chain_mux_open(), ff_rtsp_undo_setup(), h261_close_context(), h261_handle_packet(), h263_close_context(), h263_handle_packet(), id3v2_put_priv(), jpeg_close_context(), jpeg_parse_packet(), latm_close_context(), latm_parse_packet(), mpa_robust_close_context(), mpa_robust_parse_packet(), mpegts_write_packet_internal(), rtp_mpegts_write_close(), rtp_mpegts_write_header(), set_codec_str(), svq3_close_context(), svq3_parse_packet(), vc2hq_handle_frame_fragment(), vc2hq_handle_packet(), vp8_broken_sequence(), vp8_close_context(), vp8_handle_packet(), vp9_close_context(), vp9_handle_packet(), write_headers(), xiph_close_context(), and xiph_handle_packet().
Definition at line 1460 of file aviobuf.c.
Referenced by ffio_open_null_buf().
int ffio_open_null_buf | ( | AVIOContext ** | s | ) |
Open a write-only fake memory stream.
The written data is not stored anywhere - this is only used for measuring the amount of data written.
s | new IO context |
Definition at line 1470 of file aviobuf.c.
Referenced by get_moov_size(), get_sidx_size(), mov_write_moof_tag(), and mov_write_sidx_tags().
int ffio_close_null_buf | ( | AVIOContext * | s | ) |
Close a null buffer.
s | an IO context opened by ffio_open_null_buf |
Definition at line 1480 of file aviobuf.c.
Referenced by get_moov_size(), get_sidx_size(), mov_write_moof_tag(), and mov_write_sidx_tags().
|
static |
const AVClass ff_avio_class |
Definition at line 69 of file aviobuf.c.
Referenced by ffio_fdopen(), and format_child_class_next().