FFmpeg
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
avio.h File Reference

Buffered I/O operations. More...

#include <stdint.h>
#include "libavutil/common.h"
#include "libavutil/dict.h"
#include "libavutil/log.h"
#include "libavformat/version.h"

Go to the source code of this file.

Data Structures

struct  AVIOInterruptCB
 Callback for checking whether to abort blocking functions. More...
 
struct  AVIOContext
 Bytestream IO Context. More...
 

Macros

#define AVIO_SEEKABLE_NORMAL   0x0001
 Seeking works like for a local file.
 
#define AVSEEK_SIZE   0x10000
 Passing this as the "whence" parameter to a seek function causes it to return the filesize without seeking anywhere.
 
#define AVSEEK_FORCE   0x20000
 Oring this flag as into the "whence" parameter to a seek function causes it to seek by any means (like reopening and linear reading) or other normally unreasonble means that can be extreemly slow.
 
#define AVIO_FLAG_NONBLOCK   8
 Use non-blocking mode.
 
#define AVIO_FLAG_DIRECT   0x8000
 Use direct mode.
 
URL open modes

The flags argument to avio_open must be one of the following constants, optionally ORed with other flags.

#define AVIO_FLAG_READ   1
 read-only
 
#define AVIO_FLAG_WRITE   2
 write-only
 
#define AVIO_FLAG_READ_WRITE   (AVIO_FLAG_READ|AVIO_FLAG_WRITE)
 read-write pseudo flag
 

Functions

int avio_check (const char *url, int flags)
 Return AVIO_FLAG_* access flags corresponding to the access permissions of the resource in url, or a negative value corresponding to an AVERROR code in case of failure.
 
AVIOContextavio_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.
 
void avio_w8 (AVIOContext *s, int b)
 
void avio_write (AVIOContext *s, const unsigned char *buf, int size)
 
void avio_wl64 (AVIOContext *s, uint64_t val)
 
void avio_wb64 (AVIOContext *s, uint64_t val)
 
void avio_wl32 (AVIOContext *s, unsigned int val)
 
void avio_wb32 (AVIOContext *s, unsigned int val)
 
void avio_wl24 (AVIOContext *s, unsigned int val)
 
void avio_wb24 (AVIOContext *s, unsigned int val)
 
void avio_wl16 (AVIOContext *s, unsigned int val)
 
void avio_wb16 (AVIOContext *s, unsigned int val)
 
int avio_put_str (AVIOContext *s, const char *str)
 Write a NULL-terminated string.
 
int avio_put_str16le (AVIOContext *s, const char *str)
 Convert an UTF-8 string to UTF-16LE and write it.
 
int64_t avio_seek (AVIOContext *s, int64_t offset, int whence)
 fseek() equivalent for AVIOContext.
 
int64_t avio_skip (AVIOContext *s, int64_t offset)
 Skip given number of bytes forward.
 
static av_always_inline int64_t avio_tell (AVIOContext *s)
 ftell() equivalent for AVIOContext.
 
int64_t avio_size (AVIOContext *s)
 Get the filesize.
 
int url_feof (AVIOContext *s)
 feof() equivalent for AVIOContext.
 
int avio_printf (AVIOContext *s, const char *fmt,...) av_printf_format(2
 
int void avio_flush (AVIOContext *s)
 Force flushing of buffered data to the output s.
 
int avio_read (AVIOContext *s, unsigned char *buf, int size)
 Read size bytes from AVIOContext into buf.
 
int avio_get_str (AVIOContext *pb, int maxlen, char *buf, int buflen)
 Read a string from pb into buf.
 
int avio_get_str16le (AVIOContext *pb, int maxlen, char *buf, int buflen)
 Read a UTF-16 string from pb and convert it to UTF-8.
 
int avio_get_str16be (AVIOContext *pb, int maxlen, char *buf, int buflen)
 
int avio_open (AVIOContext **s, const char *url, int flags)
 Create and initialize a AVIOContext for accessing the resource indicated by url.
 
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.
 
int avio_close (AVIOContext *s)
 Close the resource accessed by the AVIOContext s and free it.
 
int avio_closep (AVIOContext **s)
 Close the resource accessed by the AVIOContext *s, free it and set the pointer pointing to it to NULL.
 
int avio_open_dyn_buf (AVIOContext **s)
 Open a write only memory stream.
 
int avio_close_dyn_buf (AVIOContext *s, uint8_t **pbuffer)
 Return the written size and a pointer to the buffer.
 
const char * avio_enum_protocols (void **opaque, int output)
 Iterate through names of available protocols.
 
int avio_pause (AVIOContext *h, int pause)
 Pause and resume playing - only meaningful if using a network streaming protocol (e.g.
 
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.
 
Functions for reading from AVIOContext
Note
return 0 if EOF, so you cannot use it if EOF handling is necessary
int avio_r8 (AVIOContext *s)
 
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)
 
uint64_t avio_rb64 (AVIOContext *s)
 

Detailed Description

Buffered I/O operations.

Definition in file avio.h.

Macro Definition Documentation

#define AVIO_SEEKABLE_NORMAL   0x0001

Seeking works like for a local file.

Definition at line 38 of file avio.h.

Referenced by ffio_fdopen(), and ffio_init_context().

#define AVSEEK_SIZE   0x10000

Passing this as the "whence" parameter to a seek function causes it to return the filesize without seeking anywhere.

Supporting this is optional. If it is not supported then the seek function will return <0.

Definition at line 216 of file avio.h.

Referenced by avio_size(), bluray_seek(), cache_seek(), ffurl_size(), http_seek(), rtmp_calc_swfhash(), and wtvfile_seek().

#define AVSEEK_FORCE   0x20000

Oring this flag as into the "whence" parameter to a seek function causes it to seek by any means (like reopening and linear reading) or other normally unreasonble means that can be extreemly slow.

This may be ignored by the seek code.

Definition at line 224 of file avio.h.

Referenced by avio_seek(), and ffurl_seek().

#define AVIO_FLAG_READ   1
#define AVIO_FLAG_WRITE   2
#define AVIO_FLAG_READ_WRITE   (AVIO_FLAG_READ|AVIO_FLAG_WRITE)

read-write pseudo flag

Definition at line 328 of file avio.h.

Referenced by gopher_open(), http_open_cnx(), ism_seek(), mms_open(), rtmp_http_open(), rtmp_open(), rtmpe_open(), rtsp_listen(), rtsp_read_setup(), and tls_open().

#define AVIO_FLAG_NONBLOCK   8

Use non-blocking mode.

If this flag is set, operations on the context will return AVERROR(EAGAIN) if they can not be performed immediately. If this flag is not set, operations on the context will never return AVERROR(EAGAIN). Note that this flag does not affect the opening/connecting of the context. Connecting a protocol will always block if necessary (e.g. on network protocols) but never hang (e.g. on busy devices). Warning: non-blocking protocols is work-in-progress; this flag may be silently ignored.

Definition at line 345 of file avio.h.

Referenced by do_tls_poll(), retry_transfer_wrapper(), rtmp_http_read(), rtmp_write(), rtmpe_read(), sctp_read(), sctp_write(), tcp_read(), tcp_write(), udp_read(), and udp_write().

#define AVIO_FLAG_DIRECT   0x8000

Use direct mode.

avio_read and avio_write should if possible be satisfied directly instead of going through a buffer, and avio_seek will always call the underlying seek function directly.

Definition at line 353 of file avio.h.

Referenced by ffio_fdopen().

Function Documentation

int avio_check ( const char *  url,
int  flags 
)

Return AVIO_FLAG_* access flags corresponding to the access permissions of the resource in url, or a negative value corresponding to an AVERROR code in case of failure.

The returned access flags are masked by the value in flags.

Note
This function is intrinsically unsafe, in the sense that the checked resource may change its existence or permission status from one call to another. Thus you should not trust the returned value, unless you are sure that no other processes are accessing the checked resource.

Definition at line 355 of file avio.c.

Referenced by assert_file_overwrite(), build_feed_streams(), and find_image_range().

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 av_free().

Parameters
bufferMemory block for input/output operations via AVIOContext. The buffer must be allocated with av_malloc() and friends.
buffer_sizeThe 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_flagSet to 1 if the buffer should be writable, 0 otherwise.
opaqueAn opaque pointer to user-specific data.
read_packetA function for refilling the buffer, may be NULL.
write_packetA function for writing the buffer contents, may be NULL. The function may not change the input buffers content.
seekA function for seeking to specified byte position, may be NULL.
Returns
Allocated AVIOContext or NULL on failure.

Definition at line 109 of file aviobuf.c.

Referenced by ffio_fdopen(), http_receive_data(), ism_write_header(), open_null_ctx(), parse_picture(), rdt_parse_packet(), read_gab2_sub(), swf_read_header(), url_open_dyn_buf_internal(), and wtvfile_open_sector().

void avio_w8 ( AVIOContext s,
int  b 
)

Definition at line 150 of file aviobuf.c.

Referenced by aiff_write_trailer(), asf_write_header1(), avi_write_header(), avi_write_ix(), avi_write_packet(), avio_put_str(), avio_wb16(), avio_wb24(), avio_wb32(), avio_wl16(), avio_wl24(), avio_wl32(), caf_write_header(), decode_str(), ff_id3v2_start(), ff_id3v2_write_apic(), ff_isom_write_avcc(), ff_put_v(), ff_rtp_check_and_send_back_rr(), ff_rtp_send_data(), ff_rtp_send_punch_packets(), ffm_write_header(), flac_write_block_padding(), flush_packet(), flv_write_header(), flv_write_packet(), get_line(), gif_image_write_header(), gif_image_write_image(), gif_write_trailer(), gif_write_video(), 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_track_description(), gxf_write_umf_media_description(), gxf_write_umf_packet(), h263_handle_packet(), ico_write_packet(), ico_write_trailer(), id3v2_put_size(), id3v2_put_ttag(), klv_encode_ber4_length(), klv_encode_ber_length(), mkv_write_ass_blocks(), mkv_write_block(), mov_create_chapter_track(), mov_write_3gp_udta_tag(), mov_write_amr_tag(), mov_write_chan_tag(), mov_write_chpl_tag(), mov_write_d263_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_mdhd_tag(), mov_write_mvhd_tag(), mov_write_tcmi_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_trailer(), mov_write_trun_tag(), mov_write_video_tag(), mp3_update_xing(), mp3_write_xing(), mxf_write_cdci_common(), mxf_write_d10_audio_packet(), mxf_write_d10_video_packet(), mxf_write_generic_sound_common(), mxf_write_index_table_segment(), mxf_write_klv_fill(), 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_double(), put_avc_eos_tag(), put_descr(), put_ebml_id(), put_ebml_num(), put_ebml_size_unknown(), put_ebml_uint(), put_ebml_void(), 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(), rm_write_video(), rv10_write_header(), smjpeg_write_header(), swf_write_header(), swf_write_video(), vc1test_write_header(), voc_write_packet(), voc_write_trailer(), write_escape_str(), write_header(), write_packet(), write_packet_header(), write_pad(), write_streamheader(), write_tags(), and write_trailer().

void avio_write ( AVIOContext s,
const unsigned char *  buf,
int  size 
)

Definition at line 172 of file aviobuf.c.

Referenced by a64_write_header(), adts_write_packet(), aiff_write_header(), asf_write_header1(), asfrtp_parse_packet(), ast_write_packet(), avi_write_packet(), avio_close_dyn_buf(), avio_printf(), avio_put_str(), caf_write_header(), caf_write_packet(), caf_write_trailer(), copy_moof(), copy_tag(), crc_write_trailer(), daud_write_packet(), dump_attachment(), dv_write_packet(), ff_ape_write(), ff_avc_parse_nal_units(), ff_flac_write_header(), ff_id3v2_write_apic(), ff_isom_write_avcc(), ff_mov_write_packet(), ff_put_guid(), ff_raw_write_packet(), ff_rtp_check_and_send_back_rr(), ff_rtp_send_data(), ffm_write_header(), flac_write_block_comment(), flac_write_packet(), flac_write_trailer(), flush_packet(), flv_write_header(), flv_write_packet(), framecrc_write_packet(), get_video_private_data(), gif_image_write_header(), gif_image_write_image(), gxf_write_material_data_section(), gxf_write_mpeg_auxiliary(), gxf_write_packet(), gxf_write_track_description(), gxf_write_umf_media_description(), h263_handle_packet(), http_send_data(), ico_write_packet(), id3v2_put_ttag(), ilbc_write_header(), ilbc_write_packet(), ivf_write_header(), ivf_write_packet(), jacosub_write_header(), jpeg_parse_packet(), latm_parse_packet(), latm_write_packet(), main(), matroska_read_header(), md5_finish(), microdvd_write_header(), mkv_flush_dynbuf(), mkv_write_ass_blocks(), mkv_write_block(), mkv_write_codecprivate(), mov_flush_fragment(), mov_write_3gp_udta_tag(), mov_write_ac3_tag(), mov_write_chpl_tag(), mov_write_dvc1_tag(), mov_write_esds_tag(), mov_write_extradata_tag(), mov_write_glbl_tag(), mov_write_hdlr_tag(), mov_write_isml_manifest(), mov_write_string_data_tag(), mov_write_subtitle_tag(), mov_write_tcmi_tag(), mov_write_tfrf_tag(), mov_write_tfxd_tag(), mov_write_trailer(), mov_write_udta_sdp(), mov_write_udta_tag(), mov_write_video_tag(), mp3_write_trailer(), mpegts_insert_null_packet(), mpegts_insert_pcr_only(), mpegts_prefix_m2ts_header(), mpegts_write_pes(), mpjpeg_write_header(), mpjpeg_write_packet(), mxf_write_cdci_common(), mxf_write_common_fields(), mxf_write_d10_video_packet(), 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_packet(), mxf_write_partition(), mxf_write_preface(), mxf_write_primer_pack(), mxf_write_random_index_pack(), mxf_write_system_item(), mxf_write_track(), mxf_write_umid(), mxf_write_uuid(), nut_write_header(), nut_write_packet(), ogg_write_page(), output_immediate(), print_report(), put_amf_string(), put_ebml_binary(), put_frame(), put_meta(), put_packet(), put_str(), put_str16(), put_swf_matrix(), put_swf_rect(), put_xiph_codecpriv(), rm_write_audio(), rm_write_video(), roq_write_header(), rso_write_packet(), rtsp_cmd_describe(), rv10_write_header(), section_write_packet(), shift_data(), smjpeg_write_header(), smjpeg_write_packet(), sox_write_header(), spdif_write_packet(), srt_write_packet(), svq3_parse_packet(), swf_write_header(), swf_write_video(), vc1test_write_header(), vc1test_write_packet(), voc_write_header(), voc_write_packet(), vp8_handle_packet(), write_chapter(), write_globalinfo(), write_header(), write_header_chunk(), write_hint_packets(), write_mainheader(), write_packet(), write_root_table(), write_streamheader(), write_streaminfo(), write_table0_header_legacy_attrib(), write_trailer(), and xiph_handle_packet().

void avio_wl64 ( AVIOContext s,
uint64_t  val 
)
void avio_wb64 ( AVIOContext s,
uint64_t  val 
)
void avio_wl32 ( AVIOContext s,
unsigned int  val 
)

Definition at line 290 of file aviobuf.c.

Referenced by aiff_write_header(), asf_write_header1(), asf_write_index(), ast_write_header(), avi_write_counters(), avi_write_header(), avi_write_idx1(), avi_write_ix(), avi_write_packet(), avi_write_trailer(), avio_wl64(), caf_write_header(), ff_ape_write(), ffio_wfourcc(), ffm_write_header(), finish_chunk_noindex(), 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_mpeg(), gxf_write_umf_media_timecode(), gxf_write_umf_payload(), ico_write_packet(), ico_write_trailer(), ircam_write_header(), ivf_write_header(), ivf_write_packet(), matroska_read_header(), 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_meta(), put_packet(), put_payload_header(), put_payload_parsing_info(), put_swf_end_tag(), put_swf_tag(), rv10_write_header(), smjpeg_write_header(), smjpeg_write_packet(), smjpeg_write_trailer(), sox_write_header(), swf_write_header(), swf_write_trailer(), vc1test_write_header(), vc1test_write_packet(), voc_write_packet(), write_chunk_header(), write_fat(), write_header(), write_index(), write_packet(), 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_tag(), and write_trailer().

void avio_wb32 ( AVIOContext s,
unsigned int  val 
)

Definition at line 298 of file aviobuf.c.

Referenced by aiff_write_header(), aiff_write_trailer(), ast_write_header(), ast_write_packet(), ast_write_trailer(), avio_wb64(), caf_write_header(), caf_write_trailer(), copy_tag(), ff_avc_parse_nal_units(), ff_id3v2_start(), ff_id3v2_write_apic(), ff_mov_write_chan(), ff_rtp_check_and_send_back_rr(), ff_rtp_send_data(), ff_rtp_send_punch_packets(), ffm_write_header(), flush_packet(), 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_media_dv(), gxf_write_umf_packet(), id3v2_put_ttag(), mov_create_chapter_track(), mov_flush_fragment(), mov_write_3gp_udta_tag(), mov_write_ac3_tag(), mov_write_amr_tag(), mov_write_audio_tag(), mov_write_avcc_tag(), mov_write_avid_tag(), mov_write_chan_tag(), mov_write_chpl_tag(), mov_write_ctts_tag(), mov_write_d263_tag(), mov_write_dinf_tag(), mov_write_dref_tag(), mov_write_dvc1_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_glbl_tag(), mov_write_gmhd_tag(), mov_write_hdlr_tag(), mov_write_hmhd_tag(), mov_write_ilst_tag(), mov_write_int8_metadata(), mov_write_iods_tag(), mov_write_isml_manifest(), mov_write_itunes_hdlr_tag(), mov_write_mdat_tag(), mov_write_mdhd_tag(), mov_write_mdia_tag(), mov_write_meta_tag(), mov_write_mfhd_tag(), mov_write_mfra_tag(), mov_write_minf_tag(), mov_write_moof_tag(), 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_psp_udta_tag(), mov_write_rtp_tag(), mov_write_smhd_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_tapt_tag(), mov_write_tcmi_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_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_wave_tag(), mov_write_wfex_tag(), mp3_update_xing(), 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_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_avc_eos_tag(), put_meta(), put_padding_packet(), rm_write_trailer(), rm_write_video(), rv10_write_header(), smjpeg_write_header(), smjpeg_write_packet(), smjpeg_write_trailer(), sox_write_header(), swf_write_video(), update_size(), updatePacketSize(), write_header_chunk(), write_hint_packets(), write_matrix(), write_packet_header(), and write_trailer().

void avio_wl24 ( AVIOContext s,
unsigned int  val 
)

Definition at line 378 of file aviobuf.c.

Referenced by vc1test_write_header(), vc1test_write_trailer(), and voc_write_packet().

void avio_wb24 ( AVIOContext s,
unsigned int  val 
)
void avio_wl16 ( AVIOContext s,
unsigned int  val 
)
void avio_wb16 ( AVIOContext s,
unsigned int  val 
)

Definition at line 372 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_rtp_check_and_send_back_rr(), ff_rtp_send_data(), ff_rtp_send_punch_packets(), ffm_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(), id3v2_put_ttag(), mkv_write_ass_blocks(), mkv_write_block(), mov_create_chapter_track(), mov_write_3gp_udta_tag(), mov_write_amr_tag(), mov_write_audio_tag(), mov_write_enda_tag(), mov_write_enda_tag_be(), mov_write_esds_tag(), mov_write_fiel_tag(), mov_write_gmhd_tag(), mov_write_hmhd_tag(), mov_write_iods_tag(), mov_write_mdhd_tag(), mov_write_mvhd_tag(), mov_write_psp_udta_tag(), mov_write_rtp_tag(), mov_write_smhd_tag(), mov_write_string_data_tag(), mov_write_subtitle_tag(), mov_write_tcmi_tag(), mov_write_tkhd_tag(), mov_write_tmpo_tag(), mov_write_trkn_tag(), mov_write_uuidprof_tag(), mov_write_uuidusmt_tag(), mov_write_video_tag(), mxf_write_local_tag(), mxf_write_local_tag_utf16(), 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_timestamp(), rm_write_video(), rso_write_header(), rso_write_trailer(), rv10_write_header(), smjpeg_write_header(), spdif_put_16(), updateSize(), write_hint_packets(), write_packet_header(), and write_trailer().

int avio_put_str ( AVIOContext s,
const char *  str 
)

Write a NULL-terminated string.

Returns
number of bytes written.

Definition at line 306 of file aviobuf.c.

Referenced by caf_write_header(), ff_ape_write(), ff_id3v2_write_apic(), ffm_write_header(), and id3v2_encode_string().

int avio_put_str16le ( AVIOContext s,
const char *  str 
)

Convert an UTF-8 string to UTF-16LE and write it.

Returns
number of bytes written.

Definition at line 317 of file aviobuf.c.

Referenced by asf_write_header1(), id3v2_encode_string(), mms_put_utf16(), put_str16(), and write_tag().

int64_t avio_seek ( AVIOContext s,
int64_t  offset,
int  whence 
)

fseek() equivalent for AVIOContext.

Returns
new position or AVERROR.

Definition at line 198 of file aviobuf.c.

Referenced by adjust_write_index(), adx_read_header(), aiff_read_header(), aiff_write_trailer(), ape_read_header(), ape_read_packet(), ape_read_seek(), asf_build_simple_index(), asf_read_frame_header(), asf_read_header(), asf_read_pts(), asf_read_seek(), asf_write_header1(), asf_write_trailer(), ast_write_trailer(), av_seek(), avi_load_index(), avi_read_header(), avi_read_idx1(), avi_read_packet(), avi_read_seek(), avi_write_counters(), avi_write_ix(), avi_write_trailer(), avio_skip(), avio_tell(), bfi_read_header(), caf_write_trailer(), check(), 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_asf_get_packet(), ff_gen_syncpoint_search(), ff_id3v1_read(), ff_id3v2_finish(), ff_id3v2_parse(), ff_id3v2_read(), ff_pcm_read_seek(), ff_restore_parser_state(), ff_rm_read_mdpr_codecdata(), ff_sauce_read(), ff_seek_frame_binary(), ffm2_read_header(), ffm_read_data(), ffm_seek1(), film_read_packet(), find_and_decode_index(), find_any_startcode(), finish_chunk_noindex(), flac_read_header(), flac_write_trailer(), flv_data_packet(), flv_read_header(), flv_read_packet(), flv_write_header(), flv_write_packet(), flv_write_trailer(), 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(), ico_write_trailer(), iff_read_header(), ipmovie_read_header(), load_ipmovie_packet(), lvf_read_header(), matroska_parse_seekhead_entry(), matroska_read_seek(), matroska_resync(), mkv_write_seekhead(), mkv_write_trailer(), mov_read_chapters(), mov_read_default(), mov_read_dref(), mov_read_dvc1(), mov_read_glbl(), mov_read_meta(), mov_read_packet(), mov_read_timecode_track(), mov_write_moof_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_read_header(), mp3_seek(), 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_read_header(), mpegts_resync(), mtv_read_header(), mv_read_packet(), mxf_parse_handle_essence(), mxf_read_header(), mxf_read_local_tags(), mxf_read_packet(), mxf_read_packet_old(), mxf_read_seek(), mxf_seek_to_previous_partition(), 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_restore(), ogg_update_checksum(), oma_read_seek(), parse_fragment(), parse_keyframes_index(), parse_media_type(), parse_mp4_descr(), process_ea_header(), put_swf_end_tag(), pva_read_timestamp(), qt_rtp_parse_packet(), r3d_read_header(), r3d_seek(), rdt_load_mdpr(), read_apic(), read_braindead_odml_indx(), read_frame(), read_header(), read_mfra(), read_packet(), read_seek(), read_tfra(), 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(), seek_frame_byte(), seek_frame_generic(), seq_fill_buffer(), seq_init_frame_buffers(), seq_parse_frame_data(), seq_read_packet(), shift_data(), skip_reserved(), 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(), update_size(), updatePacketSize(), updateSize(), vc1test_write_trailer(), vmd_read_header(), vmd_read_packet(), vqf_read_seek(), wc3_read_header(), wc3_read_packet(), write_fragments(), write_hint_packets(), write_root_table(), write_stream_codec_info(), write_trailer(), wsvqa_read_header(), wtvfile_open_sector(), wtvfile_read_packet(), wtvfile_seek(), wv_read_block_header(), wv_read_header(), wv_read_seek(), xmv_fetch_audio_packet(), xmv_fetch_new_packet(), xmv_fetch_video_packet(), yop_read_header(), and yop_read_seek().

int64_t avio_skip ( AVIOContext s,
int64_t  offset 
)

Skip given number of bytes forward.

Returns
new position or AVERROR.

Definition at line 255 of file aviobuf.c.

Referenced by aea_read_header(), afc_read_header(), aiff_read_header(), amf_get_string(), amf_parse_object(), ape_read_header(), asf_build_simple_index(), asf_read_content_desc(), 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_stream_properties(), 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_ix(), avi_write_trailer(), avr_read_header(), avs_read_header(), avs_read_packet(), bfi_read_header(), cdata_read_header(), cdxl_read_packet(), decode_frame(), dfa_read_header(), dfa_read_packet(), dtshd_read_header(), dxa_read_header(), ea_read_packet(), ebml_parse_elem(), epaf_read_header(), ff_asf_parse_packet(), ff_id3v2_parse(), ff_mov_read_chan(), ff_mov_read_stsd_entries(), ff_mp4_parse_es_descr(), ff_rm_read_mdpr_codecdata(), ff_sauce_read(), ff_spdif_read_packet(), ff_voc_get_packet(), flac_read_header(), flv_read_header(), flv_read_packet(), flv_set_video_codec(), flv_write_header(), fourxm_read_header(), fourxm_read_packet(), frm_read_header(), get_aiff_header(), get_codec_data(), get_dts(), get_meta(), get_packet_header(), get_tag(), gif_read_ext(), gif_read_header(), gif_read_packet(), gif_skip_subblocks(), gxf_header(), gxf_material_tags(), gxf_packet(), gxf_read_index(), gxf_track_tags(), ico_write_header(), idcin_read_packet(), iff_read_header(), ingenient_read_packet(), ircam_read_header(), lmlm4_read_packet(), lvf_read_header(), lvf_read_packet(), lxf_read_header(), matroska_read_header(), mmf_read_header(), mov_read_chan(), mov_read_chan2(), mov_read_covr(), mov_read_custom_metadata(), mov_read_default(), mov_read_dref(), mov_read_mvhd(), mov_read_strf(), mov_read_wave(), mov_read_wide(), mov_write_header(), mp3_parse_vbr_tags(), mpc8_handle_chunk(), mpc8_read_header(), mpegps_psm_parse(), mpegps_read_dts(), mpegps_read_packet(), mpegps_read_pes_header(), msnwc_tcp_read_packet(), mtv_read_header(), mtv_read_packet(), mv_read_header(), mv_read_packet(), mxf_decrypt_triplet(), mxf_read_content_storage(), mxf_read_generic_descriptor(), mxf_read_header(), mxf_read_index_entry_array(), mxf_read_material_package(), mxf_read_packet_old(), mxf_read_partition_pack(), mxf_read_sequence(), mxf_read_source_clip(), mxf_read_source_package(), nc_read_packet(), nist_read_header(), nsv_read_chunk(), nut_read_packet(), nuv_header(), nuv_packet(), nuv_read_dts(), ogg_read_page(), parse_chunks(), parse_global_var(), parse_media_type(), parse_picture(), 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_gab2_sub(), read_header(), read_index(), read_kuki_chunk(), read_packet(), read_pakt_chunk(), read_part_of_packet(), read_table(), rl2_read_header(), rm_read_audio_stream_info(), rm_read_dts(), rm_read_header(), rm_read_index(), roq_read_packet(), rpl_read_packet(), siff_parse_soun(), siff_parse_vbv1(), siff_read_header(), smjpeg_read_header(), smush_read_header(), smush_read_packet(), sol_read_header(), sox_read_header(), swf_read_header(), swf_read_packet(), sync(), tak_read_header(), tmv_read_packet(), tta_read_header(), txd_read_packet(), var_read_string(), vc1t_read_header(), vid_read_header(), vivo_read_header(), vivo_read_packet(), voc_read_header(), vqf_read_header(), wc3_read_header(), wc3_read_packet(), wsvqa_read_header(), wsvqa_read_packet(), wv_read_block_header(), wv_read_header(), xa_read_header(), xmv_read_header(), xwma_read_header(), yop_read_header(), and yop_read_packet().

static av_always_inline int64_t avio_tell ( AVIOContext s)
static

ftell() equivalent for AVIOContext.

Returns
position or AVERROR.

Definition at line 242 of file avio.h.

Referenced by adjust_write_index(), adx_read_packet(), afc_read_packet(), aiff_read_header(), aiff_read_packet(), aiff_write_header(), aiff_write_trailer(), amf_parse_object(), amr_read_packet(), ape_read_header(), aqt_read_header(), asf_build_simple_index(), asf_read_frame_header(), asf_read_header(), asf_read_stream_properties(), asf_write_header1(), asf_write_trailer(), asfrtp_parse_packet(), ast_read_packet(), ast_write_header(), ast_write_trailer(), av_demuxer_open(), av_get_packet(), avformat_find_stream_info(), avformat_open_input(), avi_load_index(), avi_read_header(), avi_read_idx1(), avi_read_nikon(), avi_sync(), avi_write_counters(), avi_write_header(), avi_write_ix(), avi_write_packet(), avi_write_trailer(), avs_read_audio_packet(), caf_write_header(), caf_write_trailer(), cdxl_read_packet(), decode_frame(), decode_frame_header(), decode_info_header(), decode_main_header(), decode_stream_header(), decode_syncpoint(), dtshd_read_header(), dv_read_header(), dv_read_packet(), dv_read_timecode(), dxa_read_header(), dxa_read_packet(), ebml_level_end(), ebml_parse_elem(), ebml_read_binary(), ebml_read_master(), ebml_read_num(), end_ebml_master(), end_header(), event_loop(), ff_ape_write(), ff_asf_get_packet(), ff_asf_parse_packet(), ff_id3v1_read(), ff_id3v2_finish(), ff_id3v2_parse(), ff_id3v2_read(), ff_id3v2_start(), ff_mov_read_stsd_entries(), ff_mov_write_packet(), ff_raw_read_partial_packet(), ff_rm_read_mdpr_codecdata(), ff_spdif_read_packet(), ff_store_parser_state(), ff_voc_get_packet(), ff_wms_parse_sdp_a_line(), ffio_limit(), ffm2_read_header(), ffm_is_avail_data(), ffm_read_data(), ffm_read_header(), ffm_read_packet(), ffm_write_header(), film_read_packet(), find_and_decode_index(), find_startcode(), finish_chunk_noindex(), finish_file(), flac_write_trailer(), flush_packet(), flv_read_packet(), flv_write_header(), flv_write_packet(), flv_write_trailer(), fourxm_read_packet(), g723_1_read_packet(), get_attachment(), get_line(), get_pcr(), get_riff(), get_tag(), gif_read_packet(), gsm_read_packet(), guess_ni_flag(), gxf_read_timestamp(), gxf_resync_media(), gxf_write_eos_packet(), gxf_write_flt_packet(), gxf_write_map_packet(), gxf_write_material_data_section(), gxf_write_packet(), gxf_write_track_description(), gxf_write_track_description_section(), gxf_write_trailer(), gxf_write_umf_media_description(), gxf_write_umf_packet(), gxf_write_umf_track_description(), handle_packet(), handle_packets(), ico_write_packet(), iff_read_header(), ilbc_read_packet(), ipmovie_read_header(), iss_read_header(), iss_read_packet(), jacosub_read_header(), jpeg_parse_packet(), klv_read_packet(), lvf_read_header(), lvf_read_packet(), matroska_execute_seekhead(), matroska_parse_cluster(), matroska_parse_cluster_incremental(), matroska_parse_seekhead_entry(), matroska_read_header(), matroska_read_packet(), matroska_resync(), microdvd_read_header(), mkv_start_seekhead(), mkv_write_ass_blocks(), mkv_write_attachments(), mkv_write_block(), mkv_write_chapters(), mkv_write_cues(), mkv_write_header(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_seekhead(), mkv_write_tag(), mkv_write_tracks(), mkv_write_trailer(), mmf_read_header(), mmf_read_packet(), mov_flush_fragment(), mov_read_chapters(), mov_read_default(), mov_read_dref(), mov_read_header(), mov_read_moof(), mov_read_packet(), mov_read_timecode_track(), mov_write_3gp_udta_tag(), mov_write_audio_tag(), mov_write_avcc_tag(), mov_write_chan_tag(), mov_write_chpl_tag(), mov_write_dinf_tag(), mov_write_dvc1_tag(), mov_write_esds_tag(), mov_write_ftyp_tag(), mov_write_gmhd_tag(), mov_write_hdlr_tag(), mov_write_header(), mov_write_ilst_tag(), mov_write_iods_tag(), mov_write_isml_manifest(), mov_write_mdat_tag(), mov_write_mdia_tag(), mov_write_meta_tag(), mov_write_mfra_tag(), mov_write_minf_tag(), mov_write_moof_tag(), mov_write_moov_tag(), mov_write_ms_tag(), mov_write_mvex_tag(), mov_write_rtp_tag(), mov_write_stbl_tag(), mov_write_stco_tag(), mov_write_string_tag(), mov_write_stsc_tag(), mov_write_stsd_tag(), mov_write_stss_tag(), mov_write_stsz_tag(), mov_write_subtitle_tag(), mov_write_tapt_tag(), mov_write_tcmi_tag(), mov_write_tfhd_tag(), mov_write_tfra_tag(), mov_write_tfrf_tags(), mov_write_tfxd_tag(), mov_write_tmcd_tag(), mov_write_traf_tag(), mov_write_trailer(), mov_write_trak_tag(), mov_write_trun_tag(), mov_write_uuidusmt_tag(), mov_write_video_tag(), mov_write_wave_tag(), mov_write_wfex_tag(), mp3_read_header(), mp3_read_packet(), mp3_write_xing(), mp4_read_iods(), mp4_read_od(), mpc8_get_chunk_header(), mpc8_handle_chunk(), mpc8_read_header(), mpc8_read_packet(), mpc_read_header(), mpc_read_packet(), mpegps_read_header(), mpegps_read_pes_header(), mpegts_get_pcr(), mpegts_raw_read_packet(), mpegts_read_header(), mpl2_read_header(), mpsub_read_header(), mtv_read_packet(), mv_read_packet(), mxf_decrypt_triplet(), mxf_parse_handle_essence(), mxf_read_header(), mxf_read_local_tags(), mxf_read_packet_old(), mxf_read_partition_pack(), mxf_write_d10_video_packet(), mxf_write_footer(), mxf_write_klv_fill(), mxf_write_partition(), mxf_write_random_index_pack(), need_output(), nist_read_header(), nsv_parse_NSVf_header(), nsv_resync(), nut_read_header(), nut_read_packet(), nut_write_packet(), nuv_packet(), nuv_read_dts(), nuv_resync(), ogg_read_page(), ogg_read_timestamp(), ogg_reset(), ogg_save(), ogg_update_checksum(), ogg_write_page(), oma_read_header(), oma_read_seek(), parse_file(), parse_fragment(), parse_keyframes_index(), pjs_read_header(), pmp_header(), print_report(), process_ea_header(), process_ipmovie_chunk(), put_ebml_void(), put_header(), put_payload_parsing_info(), put_swf_end_tag(), put_swf_tag(), pva_read_timestamp(), qcp_read_packet(), qt_rtp_parse_packet(), r3d_read_header(), r3d_read_reda(), r3d_read_redv(), raw_read_packet(), rdt_parse_packet(), read_apic(), read_atom(), read_braindead_odml_indx(), read_frame(), read_header(), read_kuki_chunk(), read_packet(), read_pakt_chunk(), read_part_of_packet(), read_tfra(), realtext_read_header(), rm_assemble_video_frame(), rm_read_audio_stream_info(), rm_read_header(), rm_read_index(), rm_read_packet(), rm_write_trailer(), roq_read_packet(), rso_write_trailer(), sami_read_header(), shift_data(), skip_reserved(), smacker_read_header(), smacker_read_packet(), smjpeg_read_packet(), smjpeg_write_trailer(), sox_write_trailer(), srt_read_header(), start_ebml_master(), str_read_packet(), subviewer1_read_header(), subviewer_read_header(), swf_read_packet(), swf_write_header(), swf_write_trailer(), swf_write_video(), sync(), tak_read_header(), tedcaptions_read_header(), tta_read_header(), update_offsets(), update_size(), updatePacketSize(), updateSize(), vmd_read_packet(), vp8_handle_packet(), vplayer_read_header(), vqf_read_packet(), webvtt_read_header(), write_chunk_header(), write_fat_sector(), write_header(), write_hint_packets(), write_index(), write_root_table(), write_stream_codec_info(), write_trailer(), wv_read_block_header(), wv_read_header(), wv_read_seek(), xmv_process_packet_header(), xmv_read_header(), xwma_read_header(), xwma_read_packet(), and yop_read_packet().

int64_t avio_size ( AVIOContext s)
int url_feof ( AVIOContext s)

feof() equivalent for AVIOContext.

Returns
non zero if and only if end of file

Definition at line 279 of file aviobuf.c.

Referenced by amr_read_packet(), ape_read_packet(), aqt_read_header(), asf_build_simple_index(), asf_read_header(), ast_read_packet(), avi_load_index(), avi_read_header(), avi_read_idx1(), avi_sync(), avio_read(), bfi_read_packet(), cdxl_read_packet(), cin_read_frame_header(), daud_packet(), dtshd_read_header(), dv_read_header(), dxa_read_header(), dxa_read_packet(), ebml_read_num(), ff_asf_get_packet(), ff_asf_parse_packet(), ff_spdif_read_packet(), ffio_read_partial(), ffm2_read_header(), ffm_resync(), find_any_startcode(), find_next_start_code(), flac_read_header(), flv_read_packet(), fourxm_read_packet(), get_codec_data(), get_line(), get_swf_tag(), get_tag(), gif_read_packet(), gxf_packet(), hls_read_packet(), idcin_read_packet(), iff_read_header(), img_read_packet(), ipmovie_read_header(), jacosub_read_header(), lvf_read_header(), lvf_read_packet(), matroska_resync(), microdvd_read_header(), mmf_read_packet(), mov_read_default(), mov_read_dref(), mov_read_packet(), mpc8_read_header(), mpc8_read_packet(), mpegps_read_pes_header(), mpegts_resync(), mpl2_read_header(), mpsub_read_header(), msnwc_tcp_read_header(), mxf_read_header(), mxf_read_local_tags(), mxf_read_packet_old(), mxf_read_sync(), mxg_read_packet(), nc_read_packet(), nist_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_legacy_attrib(), parse_playlist(), pjs_read_header(), pmp_packet(), process_audio_header_elements(), process_ipmovie_chunk(), qcp_read_packet(), read_braindead_odml_indx(), read_header(), read_line(), read_packet(), read_thread(), realtext_read_header(), rm_read_header(), rm_read_packet(), roq_read_packet(), sami_read_header(), smacker_read_packet(), smjpeg_read_header(), smjpeg_read_packet(), smush_read_header(), smush_read_packet(), sol_read_packet(), srt_read_header(), str_read_packet(), subviewer1_read_header(), subviewer_read_header(), sync(), tak_read_header(), tmv_read_packet(), txd_read_packet(), vc1t_read_packet(), vid_read_packet(), vivo_get_packet_header(), vivo_read_packet(), vplayer_read_header(), wc3_read_header(), wc3_read_packet(), wtvfile_read_packet(), and wv_read_packet().

int avio_printf ( AVIOContext s,
const char *  fmt,
  ... 
)
int void avio_flush ( AVIOContext s)

Force flushing of buffered data to the output s.

Force the buffered data to be immediately written to the output, without to wait to fill the internal buffer.

Definition at line 192 of file aviobuf.c.

Referenced by adts_write_packet(), aiff_write_header(), aiff_write_trailer(), asf_write_header(), asf_write_trailer(), ast_write_header(), ast_write_trailer(), av_write_trailer(), avi_write_ix(), avi_write_packet(), avio_close(), avio_close_dyn_buf(), avio_write(), caf_write_header(), caf_write_trailer(), copy_moof(), daud_write_packet(), dump_attachment(), dv_write_packet(), ff_framehash_write_header(), ff_mov_write_packet(), ff_raw_write_packet(), ff_rtp_check_and_send_back_rr(), ff_rtp_send_data(), ff_rtp_send_punch_packets(), ffm_write_header(), flac_write_packet(), flac_write_trailer(), flush_packet(), flv_write_packet(), framecrc_write_packet(), gif_write_header(), gif_write_video(), gxf_write_header(), gxf_write_packet(), gxf_write_trailer(), ico_write_header(), ico_write_packet(), ilbc_write_header(), ilbc_write_packet(), ism_flush(), ism_write_header(), ivf_write_packet(), jacosub_write_header(), main(), md5_finish(), microdvd_write_header(), mkv_write_header(), mov_flush_fragment(), mov_write_header(), mpegts_write_flush(), mpegts_write_header(), mpegts_write_pes(), mpjpeg_write_header(), mpjpeg_write_packet(), mxf_write_packet(), mxf_write_partition(), nut_write_header(), ogg_write_page(), print_report(), put_vcd_padding_sector(), rm_write_audio(), rm_write_header(), rm_write_video(), roq_write_header(), rso_write_header(), segment_end(), shift_data(), smjpeg_write_header(), smjpeg_write_packet(), sox_write_header(), sox_write_trailer(), spdif_write_packet(), srt_write_packet(), swf_write_header(), swf_write_video(), vc1test_write_packet(), vc1test_write_trailer(), write_fragment(), write_header(), write_manifest(), write_packet(), and write_trailer().

int avio_read ( AVIOContext s,
unsigned char *  buf,
int  size 
)

Read size bytes from AVIOContext into buf.

Returns
number of bytes read or AVERROR

Definition at line 477 of file aviobuf.c.

Referenced by add_metadata(), adx_read_header(), aiff_read_header(), amf_get_string(), amr_read_header(), amr_read_packet(), apc_read_header(), ape_read_header(), ape_read_packet(), ape_tag_read_field(), asf_read_stream_properties(), av_append_packet(), av_get_packet(), av_probe_input_buffer(), av_read(), avi_read_header(), avi_read_nikon(), avi_read_tag(), avs_read_packet(), avs_read_video_packet(), bfi_read_header(), bmv_read_packet(), cdxl_read_packet(), cin_read_packet(), copy_moof(), copy_tag(), decode_frame(), decode_main_header(), decode_stream_header(), 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_asf_parse_packet(), ff_id3v1_read(), ff_id3v2_parse(), ff_id3v2_read(), ff_mp4_read_dec_config_descr(), ff_rm_parse_packet(), ff_sauce_read(), ff_spdif_read_packet(), ffm2_read_header(), ffm_read_data(), ffm_read_header(), film_read_header(), film_read_packet(), flac_read_header(), flv_get_extradata(), flv_queue_extradata(), fourxm_read_header(), fourxm_read_packet(), g723_1_read_packet(), get_codec_data(), get_meta(), get_metadata(), get_packet_header(), get_pts(), get_riff(), get_str(), get_tag(), gif_read_packet(), idcin_read_header(), idcin_read_packet(), iff_read_header(), iff_read_packet(), ilbc_read_header(), ilbc_read_packet(), img_read_packet(), ipmovie_read_header(), klv_read_packet(), load_ipmovie_packet(), lxf_read_header(), lxf_read_packet(), main(), modplug_read_header(), mov_metadata_raw(), mov_read_chpl(), mov_read_cmov(), mov_read_custom_metadata(), mov_read_dref(), mov_read_dvc1(), mov_read_extradata(), mov_read_ftyp(), mov_read_glbl(), mov_read_hdlr(), mov_read_strf(), mov_read_stsz(), mov_read_udta_string(), mov_read_wave(), mpc8_parse_seektable(), mpc8_read_header(), mpc_read_header(), 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_content_storage(), mxf_read_cryptographic_context(), mxf_read_generic_descriptor(), mxf_read_local_tags(), mxf_read_material_package(), mxf_read_partition_pack(), mxf_read_primer_pack(), mxf_read_sequence(), mxf_read_source_clip(), mxf_read_source_package(), mxf_read_track(), mxg_update_cache(), next_byte(), nsv_parse_NSVf_header(), nuv_header(), nuv_packet(), nuv_read_dts(), ogg_read_page(), oma_read_header(), oma_read_seek(), open_output_file(), parse_chunks(), parse_fragment(), parse_MP4DecConfigDescrTag(), parse_picture(), process_ipmovie_chunk(), qcp_read_header(), r3d_read_red1(), read_apic(), read_chapter(), read_frame(), read_geobtag(), read_header(), read_kuki_chunk(), read_packet(), read_part_of_packet(), read_table(), read_whole_file(), rl2_read_header(), rm_assemble_video_frame(), rm_read_audio_stream_info(), rm_read_extradata(), roq_read_header(), roq_read_packet(), seq_fill_buffer(), seq_read_packet(), siff_read_packet(), smacker_read_header(), smacker_read_packet(), smjpeg_read_header(), sox_read_header(), str_read_header(), str_read_packet(), swf_read_packet(), sync(), tak_read_header(), thp_read_header(), tta_read_header(), vc1t_read_header(), vid_read_packet(), vivo_read_header(), vmd_read_header(), vmd_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 avio_r8 ( AVIOContext s)

Definition at line 468 of file aviobuf.c.

Referenced by aea_read_header(), amf_parse_object(), amr_read_packet(), ape_tag_read_field(), asf_read_frame_header(), asf_read_header(), asf_read_language_list(), asf_read_marker(), asf_read_picture(), asf_read_stream_properties(), 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_str(), dv_read_header(), dxa_read_header(), ebml_read_num(), ebml_read_uint(), efi_read(), ff_asf_get_packet(), ff_asf_parse_packet(), ff_get_line(), ff_id3v2_parse(), ff_mov_read_stsd_entries(), ff_mp4_parse_es_descr(), ff_mp4_read_dec_config_descr(), ff_mp4_read_descr(), ff_mp4_read_descr_len(), ff_sauce_read(), ff_smil_extract_next_chunk(), ff_spdif_read_packet(), ff_subtitles_read_chunk(), ff_voc_get_packet(), ffio_read_varlen(), ffm2_read_header(), ffm_read_header(), ffm_resync(), 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(), g723_1_read_packet(), get_attachment(), get_codec_data(), get_line(), get_pts(), get_size(), get_str(), get_str8(), get_strl(), get_token(), gif_read_ext(), gif_read_packet(), gif_skip_subblocks(), gxf_header(), gxf_material_tags(), gxf_packet(), gxf_resync_media(), gxf_track_tags(), iff_read_header(), ipmovie_read_header(), klv_decode_ber_length(), lvf_read_header(), matroska_resync(), mmf_read_header(), mov_metadata_gnre(), mov_metadata_int8_bypass_padding(), mov_metadata_int8_no_padding(), mov_read_chpl(), mov_read_ctts(), mov_read_dref(), mov_read_dvc1(), mov_read_elst(), mov_read_hdlr(), mov_read_mac_string(), mov_read_mdhd(), mov_read_mvhd(), mov_read_sbgp(), mov_read_stco(), mov_read_stsc(), mov_read_stsd(), mov_read_stss(), mov_read_stsz(), mov_read_stts(), mov_read_tfhd(), mov_read_tkhd(), mov_read_trex(), mov_read_trun(), mpc8_read_header(), mpc_read_header(), mpegps_psm_parse(), mpegps_read_header(), mpegps_read_packet(), mpegps_read_pes_header(), mpegts_resync(), msnwc_tcp_read_header(), mtv_read_header(), mxf_read_generic_descriptor(), mxf_read_index_entry_array(), mxf_read_pixel_layout(), 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_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_arbitary(), read_braindead_odml_indx(), read_frame(), read_geobtag(), read_header(), read_line(), read_part_of_packet(), read_tfra(), read_ttag(), read_xing_toc(), rm_assemble_video_frame(), rm_read_audio_stream_info(), rm_read_dts(), rm_read_metadata(), seq_parse_frame_data(), skip_reserved(), smacker_read_header(), smacker_read_packet(), smjpeg_read_header(), sol_read_header(), swf_read_header(), swf_read_packet(), sync(), tak_read_header(), tmv_read_header(), vc1t_read_header(), vc1t_read_packet(), vid_read_packet(), vivo_get_packet_header(), wv_read_block_header(), wv_read_packet(), yop_read_header(), yuv4_read_header(), and yuv4_read_packet().

unsigned int avio_rl16 ( AVIOContext s)

Definition at line 562 of file aviobuf.c.

Referenced by ape_read_header(), asf_build_simple_index(), asf_read_content_desc(), asf_read_ext_content_desc(), asf_read_ext_stream_properties(), asf_read_frame_header(), asf_read_language_list(), asf_read_marker(), asf_read_metadata(), asf_read_stream_properties(), 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(), decode_str(), dfa_read_header(), ff_asf_get_packet(), ff_sauce_read(), ff_spdif_read_packet(), ff_voc_get_packet(), ffm2_read_header(), ffm_read_header(), frm_read_header(), get_fourcc(), get_swf_tag(), get_tag(), get_value(), gif_read_ext(), gif_read_header(), 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(), pmp_header(), process_video_header_cmv(), process_video_header_mdec(), qcp_read_header(), qt_rtp_parse_packet(), read_braindead_odml_indx(), read_frame(), read_gab2_sub(), read_header(), read_packet(), rl2_read_header(), 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(), wv_read_packet(), xa_read_header(), xmv_read_header(), and yop_read_header().

unsigned int avio_rl24 ( AVIOContext s)
unsigned int avio_rl32 ( AVIOContext s)

Definition at line 578 of file aviobuf.c.

Referenced by aiff_read_header(), apc_read_header(), ape_read_header(), ape_tag_read_field(), asf_build_simple_index(), asf_read_ext_stream_properties(), asf_read_file_properties(), asf_read_frame_header(), asf_read_header(), asf_read_marker(), asf_read_metadata(), asf_read_picture(), 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(), cin_read_file_header(), cin_read_frame_header(), dfa_read_header(), dxa_read_header(), ea_read_packet(), epaf_read_header(), ff_ape_parse_tag(), ff_asf_get_packet(), ff_mov_read_chan(), ff_mov_read_stsd_entries(), ff_rm_read_mdpr_codecdata(), ff_voc_get_packet(), ffm_read_header(), flac_read_header(), fourxm_read_packet(), 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(), idcin_read_header(), idcin_read_packet(), iff_read_header(), ingenient_read_packet(), ircam_read_header(), lvf_read_header(), lvf_read_packet(), mmf_read_header(), mov_read_cmov(), mov_read_custom_metadata(), mov_read_default(), mov_read_dref(), mov_read_glbl(), mov_read_hdlr(), mov_read_meta(), mov_read_sbgp(), mov_read_udta_string(), mov_read_wide(), mpc8_read_header(), mpc_read_header(), mpc_read_packet(), msnwc_tcp_read_packet(), mtv_read_header(), nsv_parse_NSVf_header(), nsv_parse_NSVs_header(), nsv_read_chunk(), nuv_header(), ogg_read_page(), parse_chunks(), parse_fragment(), parse_legacy_attrib(), 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(), read_atom(), read_braindead_odml_indx(), read_desc_chunk(), read_gab2_sub(), read_header(), read_ints(), read_packet(), read_table(), rl2_read_header(), rm_read_audio_stream_info(), rm_read_header(), rm_read_index(), rpl_read_packet(), 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(), swf_read_header(), swf_read_packet(), tak_read_header(), tmv_read_header(), tta_read_header(), txd_read_packet(), vc1t_read_header(), vc1t_read_packet(), vqf_read_header(), wc3_read_header(), wc3_read_packet(), wv_read_block_header(), wv_read_packet(), xa_read_header(), xmv_fetch_video_packet(), xmv_process_packet_header(), xmv_read_extradata(), xmv_read_header(), and xwma_read_header().

uint64_t avio_rl64 ( AVIOContext s)
unsigned int avio_rb16 ( AVIOContext s)
unsigned int avio_rb24 ( AVIOContext s)
unsigned int avio_rb32 ( AVIOContext s)

Definition at line 609 of file aviobuf.c.

Referenced by afc_read_header(), aiff_read_header(), amf_parse_object(), ast_read_header(), ast_read_packet(), avi_sync(), avio_rb64(), check(), copy_tag(), decode_frame_header(), dv_read_header(), dxa_read_header(), ea_read_packet(), ebml_read_float(), epaf_read_header(), ff_id3v2_parse(), ff_mov_read_chan(), ff_mov_read_esds(), ff_mov_read_stsd_entries(), ff_mp4_read_dec_config_descr(), ff_rm_read_mdpr_codecdata(), ffm2_read_header(), ffm_read_header(), flv_read_header(), flv_read_packet(), get_aiff_header(), get_packetheader(), get_tag(), gxf_material_tags(), gxf_packet(), gxf_resync_media(), gxf_track_tags(), iff_read_header(), ircam_read_header(), lmlm4_read_packet(), matroska_read_header(), matroska_resync(), mmf_read_header(), mov_read_chap(), mov_read_chpl(), mov_read_cmov(), mov_read_ctts(), mov_read_custom_metadata(), mov_read_default(), mov_read_dref(), mov_read_elst(), mov_read_ftyp(), mov_read_glbl(), mov_read_hdlr(), mov_read_mdhd(), mov_read_mvhd(), mov_read_pasp(), mov_read_sbgp(), mov_read_stco(), mov_read_stps(), mov_read_stsc(), mov_read_stsd(), mov_read_stss(), mov_read_stsz(), mov_read_stts(), 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_vbr_tags(), mpegps_psm_parse(), mv_read_header(), mxf_read_content_storage(), mxf_read_generic_descriptor(), mxf_read_index_entry_array(), mxf_read_index_table_segment(), mxf_read_material_package(), mxf_read_partition_pack(), mxf_read_primer_pack(), mxf_read_sequence(), mxf_read_source_clip(), mxf_read_source_package(), mxf_read_track(), nuv_resync(), parse_fragment(), parse_keyframes_index(), parse_MP4SLDescrTag(), parse_packet_header(), parse_picture(), 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(), read_atom(), read_chapter(), read_desc_chunk(), read_header(), read_index(), read_info_chunk(), read_mfra(), read_packet(), read_pakt_chunk(), read_part_of_packet(), read_table(), read_tfra(), rl2_read_header(), rm_read_audio_stream_info(), rm_read_header(), rm_read_index(), siff_parse_soun(), siff_parse_vbv1(), smjpeg_read_header(), smjpeg_read_packet(), smush_read_header(), smush_read_packet(), sox_read_header(), swf_read_header(), sync(), thp_read_header(), thp_read_packet(), vqf_read_header(), wc3_read_header(), and wc3_read_packet().

uint64_t avio_rb64 ( AVIOContext s)
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.

Returns
number of bytes read (is always <= maxlen). If reading ends on EOF or error, the return value will be one more than bytes actually read.

Definition at line 632 of file aviobuf.c.

Referenced by ape_tag_read_field(), ffm2_read_header(), ffm_read_header(), mov_read_chapters(), read_apic(), read_chapter(), read_info_chunk(), and var_read_string().

int avio_get_str16le ( AVIOContext pb,
int  maxlen,
char *  buf,
int  buflen 
)

Read a UTF-16 string from pb and convert it to UTF-8.

The reading will terminate when either a null or invalid character was encountered or maxlen bytes have been read.

Returns
number of bytes read (is always <= maxlen)

Referenced by asf_read_ext_content_desc(), asf_read_language_list(), asf_read_marker(), asf_read_metadata(), asf_read_picture(), get_attachment(), get_tag(), mov_read_chapters(), parse_legacy_attrib(), and read_gab2_sub().

int avio_get_str16be ( AVIOContext pb,
int  maxlen,
char *  buf,
int  buflen 
)

Referenced by mov_read_chapters().

int avio_open ( AVIOContext **  s,
const char *  url,
int  flags 
)

Create and initialize a AVIOContext for accessing the resource indicated by url.

Note
When the resource indicated by url has been opened in read+write mode, the AVIOContext can be used only for writing.
Parameters
sUsed to return the pointer to the created AVIOContext. In case of failure the pointed to value is set to NULL.
flagsflags which control how the resource indicated by url is to be opened
Returns
0 in case of success, a negative value corresponding to an AVERROR code in case of failure
Examples:
doc/examples/muxing.c.

Definition at line 798 of file aviobuf.c.

Referenced by build_feed_streams(), main(), and shift_data().

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.

Note
When the resource indicated by url has been opened in read+write mode, the AVIOContext can be used only for writing.
Parameters
sUsed to return the pointer to the created AVIOContext. In case of failure the pointed to value is set to NULL.
flagsflags which control how the resource indicated by url is to be opened
int_cban interrupt callback to be used at the protocols level
optionsA 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.
Returns
0 in case of success, a negative value corresponding to an AVERROR code in case of failure

Definition at line 803 of file aviobuf.c.

Referenced by avio_open(), copy_moof(), dump_attachment(), get_preset_file_2(), hls_start(), hls_window(), img_read_packet(), init_input(), main(), mov_open_dref(), open_output_file(), opt_progress(), parse_fragment(), parse_playlist(), read_mfra(), seg_write_header(), segment_list_open(), segment_start(), write_fragment(), write_manifest(), and write_packet().

int avio_close ( AVIOContext s)
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.

Returns
0 on success, an AVERROR < 0 on error.
See Also
avio_close

Definition at line 836 of file aviobuf.c.

Referenced by hls_window(), and hls_write_trailer().

int avio_open_dyn_buf ( AVIOContext **  s)
int avio_close_dyn_buf ( AVIOContext s,
uint8_t **  pbuffer 
)
const char* avio_enum_protocols ( void **  opaque,
int  output 
)

Iterate through names of available protocols.

Parameters
opaqueA private pointer representing current protocol. It must be a pointer to NULL on first iteration and will be updated by successive calls to avio_enum_protocols.
outputIf set to 1, iterate over output protocols, otherwise over input protocols.
Returns
A static string containing the name of current protocol or NULL

Definition at line 86 of file avio.c.

Referenced by avio_enum_protocols(), and show_protocols().

int avio_pause ( AVIOContext h,
int  pause 
)

Pause and resume playing - only meaningful if using a network streaming protocol (e.g.

MMS).

Parameters
pause1 for pause, 0 for resume

Definition at line 856 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.).

Parameters
stream_indexThe 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.
timestamptimestamp in AVStream.time_base units or if there is no stream specified then in AV_TIME_BASE units.
flagsOptional 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.
Returns
>= 0 on success
See Also
AVInputFormat::read_seek

Definition at line 863 of file aviobuf.c.

Referenced by asf_read_seek(), and flv_read_seek().