FFmpeg
Data Structures | Macros | Enumerations | Functions
avio.h File Reference
#include <stdint.h>
#include <stdio.h>
#include "libavutil/attributes.h"
#include "libavutil/dict.h"
#include "libavutil/log.h"
#include "libavformat/version_major.h"

Go to the source code of this file.

Data Structures

struct  AVIOInterruptCB
 Callback for checking whether to abort blocking functions. More...
 
struct  AVIODirEntry
 Describes single entry of the directory. More...
 
struct  AVIOContext
 Bytestream IO Context. More...
 

Macros

#define AVIO_SEEKABLE_NORMAL   (1 << 0)
 Seeking works like for a local file. More...
 
#define AVIO_SEEKABLE_TIME   (1 << 1)
 Seeking by timestamp with avio_seek_time() is possible. More...
 
#define AVSEEK_SIZE   0x10000
 ORing this as the "whence" parameter to a seek function causes it to return the filesize without seeking anywhere. More...
 
#define AVSEEK_FORCE   0x20000
 Passing this flag as the "whence" parameter to a seek function causes it to seek by any means (like reopening and linear reading) or other normally unreasonable means that can be extremely slow. More...
 
#define avio_print(s, ...)   avio_print_string_array(s, (const char*[]){__VA_ARGS__, NULL})
 Write strings (const char *) to the context. More...
 
#define AVIO_FLAG_NONBLOCK   8
 Use non-blocking mode. More...
 
#define AVIO_FLAG_DIRECT   0x8000
 Use direct mode. More...
 
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 More...
 
#define AVIO_FLAG_WRITE   2
 write-only More...
 
#define AVIO_FLAG_READ_WRITE   (AVIO_FLAG_READ|AVIO_FLAG_WRITE)
 read-write pseudo flag More...
 

Enumerations

enum  AVIODirEntryType {
  AVIO_ENTRY_UNKNOWN, AVIO_ENTRY_BLOCK_DEVICE, AVIO_ENTRY_CHARACTER_DEVICE, AVIO_ENTRY_DIRECTORY,
  AVIO_ENTRY_NAMED_PIPE, AVIO_ENTRY_SYMBOLIC_LINK, AVIO_ENTRY_SOCKET, AVIO_ENTRY_FILE,
  AVIO_ENTRY_SERVER, AVIO_ENTRY_SHARE, AVIO_ENTRY_WORKGROUP
}
 Directory entry types. More...
 
enum  AVIODataMarkerType {
  AVIO_DATA_MARKER_HEADER, AVIO_DATA_MARKER_SYNC_POINT, AVIO_DATA_MARKER_BOUNDARY_POINT, AVIO_DATA_MARKER_UNKNOWN,
  AVIO_DATA_MARKER_TRAILER, AVIO_DATA_MARKER_FLUSH_POINT
}
 Different data types that can be returned via the AVIO write_data_type callback. More...
 

Functions

const char * avio_find_protocol_name (const char *url)
 Return the name of the protocol that will handle the passed URL. More...
 
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. More...
 
int avio_open_dir (AVIODirContext **s, const char *url, AVDictionary **options)
 Open directory for reading. More...
 
int avio_read_dir (AVIODirContext *s, AVIODirEntry **next)
 Get next directory entry. More...
 
int avio_close_dir (AVIODirContext **s)
 Close directory. More...
 
void avio_free_directory_entry (AVIODirEntry **entry)
 Free entry allocated by avio_read_dir(). More...
 
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, const 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 **s)
 Free the supplied IO context and everything associated with it. More...
 
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. More...
 
int avio_put_str16le (AVIOContext *s, const char *str)
 Convert an UTF-8 string to UTF-16LE and write it. More...
 
int avio_put_str16be (AVIOContext *s, const char *str)
 Convert an UTF-8 string to UTF-16BE and write it. More...
 
void avio_write_marker (AVIOContext *s, int64_t time, enum AVIODataMarkerType type)
 Mark the written bytestream as a specific type. 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...
 
static av_always_inline int64_t avio_tell (AVIOContext *s)
 ftell() equivalent for AVIOContext. More...
 
int64_t avio_size (AVIOContext *s)
 Get the filesize. More...
 
int avio_feof (AVIOContext *s)
 Similar to feof() but also returns nonzero on read errors. More...
 
int avio_vprintf (AVIOContext *s, const char *fmt, va_list ap)
 Writes a formatted string to the context taking a va_list. More...
 
int avio_printf (AVIOContext *s, const char *fmt,...) av_printf_format(2
 Writes a formatted string to the context. More...
 
int void avio_print_string_array (AVIOContext *s, const char *strings[])
 Write a NULL terminated array of strings to the context. More...
 
void avio_flush (AVIOContext *s)
 Force flushing of buffered data. More...
 
int avio_read (AVIOContext *s, unsigned char *buf, int size)
 Read size bytes from AVIOContext into buf. More...
 
int avio_read_partial (AVIOContext *s, unsigned char *buf, int size)
 Read size bytes from AVIOContext into buf. More...
 
int avio_get_str (AVIOContext *pb, int maxlen, char *buf, int buflen)
 Read a string from pb into buf. More...
 
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. More...
 
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. More...
 
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. More...
 
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_open_dyn_buf (AVIOContext **s)
 Open a write only memory stream. 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...
 
const char * avio_enum_protocols (void **opaque, int output)
 Iterate through names of available protocols. More...
 
const AVClassavio_protocol_get_class (const char *name)
 Get AVClass by names of available protocols. More...
 
int avio_pause (AVIOContext *h, int pause)
 Pause and resume playing - only meaningful if using a network streaming protocol (e.g. More...
 
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. More...
 
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. 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...
 
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

◆ AVIO_SEEKABLE_NORMAL

#define AVIO_SEEKABLE_NORMAL   (1 << 0)

Seeking works like for a local file.

Definition at line 41 of file avio.h.

◆ AVIO_SEEKABLE_TIME

#define AVIO_SEEKABLE_TIME   (1 << 1)

Seeking by timestamp with avio_seek_time() is possible.

Definition at line 46 of file avio.h.

◆ AVSEEK_SIZE

#define AVSEEK_SIZE   0x10000

ORing 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 487 of file avio.h.

◆ AVSEEK_FORCE

#define AVSEEK_FORCE   0x20000

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

This may be ignored by the seek code.

Definition at line 495 of file avio.h.

◆ avio_print

#define avio_print (   s,
  ... 
)    avio_print_string_array(s, (const char*[]){__VA_ARGS__, NULL})

Write strings (const char *) to the context.

This is a convenience macro around avio_print_string_array and it automatically creates the string array from the variable argument list. For simple string concatenations this function is more performant than using avio_printf since it does not need a temporary buffer.

Definition at line 556 of file avio.h.

◆ AVIO_FLAG_READ

#define AVIO_FLAG_READ   1

read-only

Examples
avio_http_serve_files.c.

Definition at line 636 of file avio.h.

◆ AVIO_FLAG_WRITE

#define AVIO_FLAG_WRITE   2

◆ AVIO_FLAG_READ_WRITE

#define AVIO_FLAG_READ_WRITE   (AVIO_FLAG_READ|AVIO_FLAG_WRITE)

read-write pseudo flag

Definition at line 638 of file avio.h.

◆ AVIO_FLAG_NONBLOCK

#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 655 of file avio.h.

◆ AVIO_FLAG_DIRECT

#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 663 of file avio.h.

Enumeration Type Documentation

◆ AVIODirEntryType

Directory entry types.

Enumerator
AVIO_ENTRY_UNKNOWN 
AVIO_ENTRY_BLOCK_DEVICE 
AVIO_ENTRY_CHARACTER_DEVICE 
AVIO_ENTRY_DIRECTORY 
AVIO_ENTRY_NAMED_PIPE 
AVIO_ENTRY_SYMBOLIC_LINK 
AVIO_ENTRY_SOCKET 
AVIO_ENTRY_FILE 
AVIO_ENTRY_SERVER 
AVIO_ENTRY_SHARE 
AVIO_ENTRY_WORKGROUP 

Definition at line 67 of file avio.h.

◆ AVIODataMarkerType

Different data types that can be returned via the AVIO write_data_type callback.

Enumerator
AVIO_DATA_MARKER_HEADER 

Header data; this needs to be present for the stream to be decodeable.

AVIO_DATA_MARKER_SYNC_POINT 

A point in the output bytestream where a decoder can start decoding (i.e.

a keyframe). A demuxer/decoder given the data flagged with AVIO_DATA_MARKER_HEADER, followed by any AVIO_DATA_MARKER_SYNC_POINT, should give decodeable results.

AVIO_DATA_MARKER_BOUNDARY_POINT 

A point in the output bytestream where a demuxer can start parsing (for non self synchronizing bytestream formats).

That is, any non-keyframe packet start point.

AVIO_DATA_MARKER_UNKNOWN 

This is any, unlabelled data.

It can either be a muxer not marking any positions at all, it can be an actual boundary/sync point that the muxer chooses not to mark, or a later part of a packet/fragment that is cut into multiple write callbacks due to limited IO buffer size.

AVIO_DATA_MARKER_TRAILER 

Trailer data, which doesn't contain actual content, but only for finalizing the output file.

AVIO_DATA_MARKER_FLUSH_POINT 

A point in the output bytestream where the underlying AVIOContext might flush the buffer depending on latency or buffering requirements.

Typically means the end of a packet.

Definition at line 116 of file avio.h.

Function Documentation

◆ avio_find_protocol_name()

const char* avio_find_protocol_name ( const char *  url)

Return the name of the protocol that will handle the passed URL.

NULL is returned if no protocol could be found for the given URL.

Returns
Name of the protocol or NULL.

Definition at line 468 of file avio.c.

Referenced by add_file(), assert_file_overwrite(), create_master_playlist(), dash_flush(), dash_write_packet(), ff_configure_buffers_for_index(), ff_is_http_proto(), format_name(), hls_delete_old_segments(), hls_start(), hls_window(), hls_write_packet(), hls_write_trailer(), ishttp(), open_url(), seg_init(), sls_flag_check_duration_size(), write_hls_media_playlist(), and write_manifest().

◆ avio_check()

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 475 of file avio.c.

Referenced by assert_file_overwrite(), and find_image_range().

◆ avio_open_dir()

int avio_open_dir ( AVIODirContext **  s,
const char *  url,
AVDictionary **  options 
)

Open directory for reading.

Parameters
sdirectory read context. Pointer to a NULL pointer must be passed.
urldirectory to be listed.
optionsA dictionary filled with protocol-private options. On return this parameter will be destroyed and replaced with a dictionary containing options that were not found. May be NULL.
Returns
>=0 on success or negative on error.

Definition at line 538 of file avio.c.

Referenced by list_op().

◆ avio_read_dir()

int avio_read_dir ( AVIODirContext s,
AVIODirEntry **  next 
)

Get next directory entry.

Returned entry must be freed with avio_free_directory_entry(). In particular it may outlive AVIODirContext.

Parameters
sdirectory read context.
[out]nextnext entry or NULL when no more entries.
Returns
>=0 on success or negative on error. End of list is not considered an error.

Definition at line 576 of file avio.c.

Referenced by list_op().

◆ avio_close_dir()

int avio_close_dir ( AVIODirContext **  s)

Close directory.

Note
Entries created using avio_read_dir() are not deleted and must be freeded with avio_free_directory_entry().
Parameters
sdirectory read context.
Returns
>=0 on success or negative on error.

Definition at line 589 of file avio.c.

Referenced by list_op().

◆ avio_free_directory_entry()

void avio_free_directory_entry ( AVIODirEntry **  entry)

Free entry allocated by avio_read_dir().

Parameters
entryentry to be freed.

Definition at line 604 of file avio.c.

Referenced by avio_read_dir(), ftp_read_dir(), and list_op().

◆ avio_alloc_context()

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, const 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().

Parameters
bufferMemory 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_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. For stream protocols, must never return 0 but rather a proper AVERROR code.
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.
Examples
avio_read_callback.c.

Definition at line 144 of file aviobuf.c.

Referenced by ffio_fdopen(), hds_write_header(), init_fps(), ism_write_header(), LLVMFuzzerTestOneInput(), load_sb_block(), main(), open_null_ctx(), rdt_parse_packet(), read_gab2_sub(), swf_read_header(), and wtvfile_open_sector().

◆ avio_context_free()

void avio_context_free ( AVIOContext **  s)

Free the supplied IO context and everything associated with it.

Parameters
sDouble pointer to the IO context. This function will write NULL into s.
Examples
avio_read_callback.c.

Definition at line 165 of file aviobuf.c.

Referenced by avio_close(), avio_close_dyn_buf(), close_null_ctxp(), ffio_close_null_buf(), ffio_free_dyn_buf(), finish(), hds_free(), ism_free(), LLVMFuzzerTestOneInput(), main(), rdt_parse_packet(), read_gab2_sub(), and wtvfile_close().

◆ avio_w8()

void avio_w8 ( AVIOContext s,
int  b 
)

Definition at line 226 of file aviobuf.c.

Referenced by aiff_write_trailer(), amv_end_tag(), amv_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(), ebml_writer_elem_write(), ebml_writer_write_block(), enc_stats_write(), evcc_write(), 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_mov_write_packet(), ff_put_bmp_header(), ff_put_wav_header(), ff_riff_write_info_tag(), ff_rtp_check_and_send_back_rr(), ff_rtp_send_data(), ff_rtp_send_rtcp_feedback(), ff_vorbiscomment_write(), flac_write_block_comment(), flac_write_block_padding(), flac_write_picture(), flush(), flush_packet(), flv_write_codec_header(), flv_write_header(), flv_write_packet(), flv_write_trailer(), gif_write_packet(), 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_timecode_auxiliary(), gxf_write_track_description(), gxf_write_umf_packet(), h261_handle_packet(), h263_handle_packet(), hvcc_write(), ico_write_trailer(), id3v2_put_priv(), id3v2_put_size(), id3v2_put_ttag(), klv_encode_ber4_length(), klv_encode_ber9_length(), klv_encode_ber_length(), lrc_write_header(), lrc_write_packet(), microdvd_write_header(), microdvd_write_packet(), mkv_assemble_native_codecprivate(), mov_cenc_write_saio_tag(), mov_cenc_write_saiz_tag(), mov_cenc_write_schi_tag(), mov_write_3gp_udta_tag(), mov_write_amr_tag(), mov_write_ccst_tag(), mov_write_chan_tag(), mov_write_chnl_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_iinf_tag(), mov_write_iloc_tag(), mov_write_int8_metadata(), mov_write_iods_tag(), mov_write_ipma_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_pcmc_tag(), mov_write_pixi_tag(), mov_write_prft_tag(), mov_write_sdtp_tag(), mov_write_sidx_tag(), mov_write_st3d_tag(), mov_write_subtitle_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_track_kind(), mov_write_trun_tag(), mov_write_video_tag(), mp3_write_xing(), mxf_write_avc_subdesc(), 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_vorbiscomment(), 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_descr(), put_ebml_id(), put_ebml_num(), put_ebml_size_unknown(), put_ebml_uint(), put_eos_tag(), put_id3v2_tags(), put_meta(), put_padding_packet(), put_payload_header(), put_payload_parsing_info(), put_str(), put_str8(), put_timestamp(), put_v(), put_xiph_codecpriv(), put_xiph_size(), rm_write_audio(), rm_write_video(), rtcp_send_sr(), rv10_write_header(), scc_write_packet(), smjpeg_write_header(), swf_write_header(), swf_write_video(), ttml_write_packet(), vc1test_write_header(), voc_write_packet(), voc_write_trailer(), webm_reformat_vtt(), write_abst(), write_ctoc(), write_escape_str(), write_header(), write_metadata(), write_odml_master(), write_packet_header(), write_streamheader(), write_table_entries_attrib(), write_tags(), write_trailer(), writer_w8_avio(), and wsaud_write_header().

◆ avio_write()

void avio_write ( AVIOContext s,
const unsigned char *  buf,
int  size 
)
Examples
avio_http_serve_files.c, and qsv_decode.c.

Definition at line 248 of file aviobuf.c.

Referenced by a64_write_header(), ac3_handle_packet(), ac4_write_packet(), adts_write_packet(), aiff_write_header(), aiff_write_packet(), amv_write_alist(), amv_write_header(), amv_write_packet_internal(), apng_write_chunk(), append_single_file(), asf_write_header1(), asf_write_markers(), asfrtp_parse_packet(), ast_write_packet(), av1_filter_obus(), avc_parse_nal_units(), avi_write_packet_internal(), avif_write_trailer(), avio_print_string_array(), avio_put_str(), avio_vprintf(), caf_write_header(), caf_write_packet(), caf_write_trailer(), chunk_end(), codec2_write_header(), copy_moof(), copy_tag(), dash_write_packet(), daud_write_packet(), decode_packet(), do_encrypt(), dump_attachment(), dv_handle_packet(), dv_write_packet(), ebml_writer_elem_write(), ebml_writer_write_block(), enc_stats_write(), end_ebml_master_crc32(), end_ebml_master_crc32_tentatively(), evcc_write(), ff_ape_write_tag(), ff_flac_write_header(), ff_format_shift_data(), ff_hevc_annexb2mp4(), ff_id3v2_write_apic(), ff_isom_write_av1c(), ff_isom_write_avcc(), ff_isom_write_evcc(), ff_isom_write_hvcc(), ff_mov_cenc_avc_write_nal_units(), ff_mov_generate_squashed_ttml_packet(), ff_mov_write_packet(), ff_nal_units_write_list(), 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(), ff_vorbiscomment_write(), fifo_avio_wrapper(), film_write_packet(), fits_write_packet(), flac_write_audio_packet(), 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_write_packet(), 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_init_file_resend(), hls_write_packet(), hls_write_trailer(), hvcc_write(), ico_write_packet(), id3v2_put_priv(), id3v2_put_ttag(), ilbc_write_header(), init_file(), ivf_write_header(), ivf_write_packet(), jacosub_write_header(), jpeg_parse_packet(), latm_parse_packet(), latm_write_packet(), lrc_write_packet(), main(), microdvd_write_header(), microdvd_write_packet(), mkv_assemble_codecprivate(), mkv_assemble_native_codecprivate(), mkv_put_codecprivate(), 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_aux_tag(), mov_write_chpl_tag(), mov_write_colr_tag(), mov_write_covr(), mov_write_dfla_tag(), mov_write_dops_tag(), mov_write_dvc1_tag(), mov_write_dvcc_dvvc_tag(), mov_write_eac3_tag(), mov_write_esds_tag(), mov_write_extradata_tag(), mov_write_glbl_tag(), mov_write_hdlr_tag(), mov_write_iinf_tag(), mov_write_isml_manifest(), mov_write_loci_tag(), mov_write_mdta_keys_tag(), mov_write_mfra_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_kind(), 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(), mpjpeg_write_packet(), mxf_write_avc_subdesc(), mxf_write_cdci_common(), mxf_write_common_fields(), mxf_write_essence_container_refs(), mxf_write_ffv1_subdesc(), mxf_write_generic_desc(), mxf_write_identification(), 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_frame(), put_meta(), put_packet(), put_str(), put_str16(), put_swf_matrix(), put_swf_rect(), put_videoinfoheader2(), put_xiph_codecpriv(), reflush_dynbuf(), rm_write_audio(), rm_write_video(), roq_write_header(), rtcp_send_sr(), rv10_write_header(), 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(), ttml_write_packet(), vc1test_write_header(), vc1test_write_packet(), vc2hq_handle_frame_fragment(), voc_write_header(), voc_write_packet(), vp8_handle_packet(), vp9_handle_packet(), webm_reformat_vtt(), webp_write_packet(), webvtt_write_packet(), write_and_close(), write_chapter(), write_ctoc(), write_frame(), write_globalinfo(), write_header(), write_hint_packets(), write_image_header(), write_keyword_value(), write_mainheader(), write_packet(), write_packet_pipe(), 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(), writer_put_str_avio(), wsaud_write_packet(), wv_write_packet(), xiph_handle_packet(), and yuv4_write_packet().

◆ avio_wl64()

void avio_wl64 ( AVIOContext s,
uint64_t  val 
)

◆ avio_wb64()

void avio_wb64 ( AVIOContext s,
uint64_t  val 
)

◆ avio_wl32()

void avio_wl32 ( AVIOContext s,
unsigned int  val 
)

Definition at line 404 of file aviobuf.c.

Referenced by aiff_write_header(), amv_start_tag(), amv_write_header(), amv_write_packet_internal(), 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(), ff_vorbiscomment_write(), 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(), ivf_write_trailer(), mkv_assemble_codecprivate(), mkv_assemble_native_codecprivate(), mov_write_audio_tag(), mov_write_chan_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(), put_chunk(), put_id3v2_tags(), put_meta(), put_packet(), put_payload_header(), put_payload_parsing_info(), put_swf_end_tag(), put_swf_tag(), put_videoinfoheader2(), rv10_write_header(), 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(), wsaud_write_packet(), wsaud_write_trailer(), and wv_write_trailer().

◆ avio_wb32()

void avio_wb32 ( AVIOContext s,
unsigned int  val 
)

Definition at line 412 of file aviobuf.c.

Referenced by aiff_write_header(), aiff_write_trailer(), apng_write_chunk(), ast_write_header(), ast_write_packet(), ast_write_trailer(), avc_parse_nal_units(), avi_write_packet(), avif_write_trailer(), avio_wb64(), caf_write_header(), caf_write_trailer(), close_file(), copy_tag(), evcc_write(), 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_mov_write_packet(), ff_nal_units_write_list(), ff_rtp_check_and_send_back_rr(), ff_rtp_send_data(), ff_rtp_send_rtcp_feedback(), film_write_packet(), 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_assemble_codecprivate(), mov_cenc_write_saio_tag(), mov_cenc_write_saiz_tag(), mov_cenc_write_schi_tag(), mov_cenc_write_senc_tag(), 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_aux_tag(), mov_write_av1c_tag(), mov_write_avcc_tag(), mov_write_avid_tag(), mov_write_btrt_tag(), mov_write_ccst_tag(), mov_write_chan_tag(), mov_write_chnl_tag(), mov_write_chpl_tag(), mov_write_clap_tag(), mov_write_clli_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_dmlp_tag(), mov_write_dops_tag(), mov_write_dpxe_tag(), mov_write_dref_tag(), mov_write_dvc1_tag(), mov_write_dvcc_dvvc_tag(), mov_write_eac3_tag(), mov_write_edts_tag(), mov_write_enda_tag(), mov_write_enda_tag_be(), mov_write_esds_tag(), mov_write_evcc_tag(), mov_write_fiel_tag(), mov_write_ftyp_tag(), mov_write_ftyp_tag_internal(), 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_iinf_tag(), mov_write_iloc_tag(), mov_write_ilst_tag(), mov_write_int8_metadata(), mov_write_iods_tag(), mov_write_ipco_tag(), mov_write_ipma_tag(), mov_write_iprp_tag(), mov_write_iref_tag(), mov_write_isml_manifest(), mov_write_ispe_tag(), mov_write_itunes_hdlr_tag(), mov_write_loci_tag(), mov_write_mdat_tag(), mov_write_mdcv_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_pcmc_tag(), mov_write_pitm_tag(), mov_write_pixi_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_sthd_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_kind(), 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_uuid(), mxf_write_wav_common(), oma_write_header(), output_match(), put_amf_dword_array(), put_eos_tag(), put_id3v2_tags(), put_meta(), put_padding_packet(), rm_write_trailer(), rm_write_video(), rtcp_send_sr(), 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_ctoc(), write_hint_packets(), write_matrix(), write_metadata(), write_packet_header(), write_styp(), and write_trailer().

◆ avio_wl24()

void avio_wl24 ( AVIOContext s,
unsigned int  val 
)

Definition at line 496 of file aviobuf.c.

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

◆ avio_wb24()

void avio_wb24 ( AVIOContext s,
unsigned int  val 
)

◆ avio_wl16()

void avio_wl16 ( AVIOContext s,
unsigned int  val 
)

◆ avio_wb16()

void avio_wb16 ( AVIOContext s,
unsigned int  val 
)

Definition at line 490 of file aviobuf.c.

Referenced by ac4_write_packet(), aiff_write_header(), ascii_to_wc(), ast_write_header(), ast_write_trailer(), avio_wb24(), caf_write_header(), daud_write_packet(), ebml_writer_write_block(), evcc_write(), 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_rtcp_feedback(), film_write_packet(), 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_assemble_native_codecprivate(), mov_preroll_write_stbl_atoms(), mov_write_3gp_udta_tag(), mov_write_amr_tag(), mov_write_audio_tag(), mov_write_clli_tag(), mov_write_colr_tag(), mov_write_dmlp_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_iinf_tag(), mov_write_iloc_tag(), mov_write_iods_tag(), mov_write_ipma_tag(), mov_write_iref_tag(), mov_write_loci_tag(), mov_write_mdcv_tag(), mov_write_mdhd_tag(), mov_write_mvhd_tag(), mov_write_pitm_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_ffv1_subdesc(), 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(), rtcp_send_sr(), rv10_write_header(), smjpeg_write_header(), spdif_put_16(), store_version(), sup_write_packet(), updateSize(), write_chapter(), write_ctoc(), write_hint_packets(), write_packet_header(), and write_trailer().

◆ avio_put_str()

int avio_put_str ( AVIOContext s,
const char *  str 
)

Write a NULL-terminated string.

Returns
number of bytes written.

Definition at line 420 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_subtitle_tag(), mov_write_sv3d_tag(), write_chapter(), and write_ctoc().

◆ avio_put_str16le()

int avio_put_str16le ( AVIOContext s,
const char *  str 
)

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

Parameters
sthe AVIOContext
strNULL-terminated UTF-8 string
Returns
number of bytes written.

Referenced by asf_write_header1(), asf_write_markers(), id3v2_encode_string(), mms_put_utf16(), mxf_write_tagged_value(), put_str16(), write_metadata_header(), write_table_entries_attrib(), and write_tag().

◆ avio_put_str16be()

int avio_put_str16be ( AVIOContext s,
const char *  str 
)

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

Parameters
sthe AVIOContext
strNULL-terminated UTF-8 string
Returns
number of bytes written.

Referenced by mxf_write_local_tag_utf16().

◆ avio_write_marker()

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.

Parameters
sthe AVIOContext
timethe stream time the current bytestream pos corresponds to (in AV_TIME_BASE units), or AV_NOPTS_VALUE if unknown or not applicable
typethe kind of data written starting at the current pos

Definition at line 508 of file aviobuf.c.

Referenced by av_write_trailer(), avformat_write_header(), flush_if_needed(), flush_packet(), flv_write_packet(), mkv_end_cluster(), mkv_write_packet(), mov_flush_fragment(), mov_write_trailer(), mxf_write_partition(), ogg_write_page(), and put_vcd_padding_sector().

◆ avio_seek()

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

fseek() equivalent for AVIOContext.

Returns
new position or AVERROR.

Definition at line 278 of file aviobuf.c.

Referenced by aa_read_header(), aa_read_seek(), aax_read_header(), aax_read_packet(), adts_aac_read_header(), adts_aac_resync(), adx_read_header(), aiff_read_header(), aiff_write_trailer(), aix_read_header(), align_position(), amv_write_trailer(), ape_read_header(), ape_read_packet(), ape_read_seek(), apng_read_header(), apng_read_packet(), apng_write_trailer(), argo_brp_read_header(), 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(), avif_write_trailer(), avio_flush(), avio_skip(), avio_tell(), bfi_read_header(), bonk_read_header(), caf_write_trailer(), check(), check_tag(), cine_read_header(), cine_read_packet(), close_file(), dat_read_header(), dhav_read_header(), dhav_read_seek(), do_encrypt(), dsf_read_header(), dss_read_header(), dss_read_metadata_date(), dss_read_metadata_string(), dss_read_seek(), dtshd_read_header(), dxa_read_header(), dxa_read_packet(), ea_read_packet(), efi_read(), end_ebml_master(), end_header(), estimate_timings_from_pts(), evc_read_packet(), ff_ape_parse_tag(), ff_end_tag(), ff_format_shift_data(), 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(), 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(), 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_duration(), 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(), hca_read_header(), hnm_read_packet(), ico_write_trailer(), id3v2_parse(), id3v2_read_internal(), idcin_read_seek(), iff_read_header(), ifv_read_header(), ifv_read_packet(), ipmovie_read_header(), ivf_write_trailer(), ivr_read_header(), load_ipmovie_packet(), lvf_read_header(), main(), mkv_check_new_extra_data(), mkv_update_codecprivate(), mkv_write_seekhead(), mkv_write_trailer(), mlp_read_header(), mods_read_header(), moflex_read_header(), moflex_read_packet(), moflex_read_sync(), mov_parse_auxiliary_info(), mov_parse_stsd_video(), mov_read_chapters(), mov_read_chnl(), 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_sidx(), 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(), ni_prepare_read(), nsv_parse_NSVf_header(), nsv_read_seek(), nut_read_header(), nuv_read_dts(), ogg_get_length(), ogg_read_page(), ogg_read_timestamp(), ogg_restore(), oma_read_seek(), open_input(), parse_fragment(), parse_keyframes_index(), parse_media_type(), parse_mp4_descr(), pdv_read_packet(), pdv_read_seek(), pp_bnk_read_packet(), 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_pakt_chunk(), read_seek(), read_tfra(), recover(), resync(), rka_read_header(), rka_read_seek(), 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(), rv10_write_header(), scd_read_header(), scd_read_packet(), scd_read_table(), scd_read_track(), sdns_read_header(), 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(), sga_read_header(), sga_read_packet(), shift_data(), skip_reserved(), skip_tag(), smacker_read_packet(), smacker_read_seek(), smjpeg_write_trailer(), sox_write_trailer(), str_read_header(), subviewer_read_header(), swf_write_trailer(), tak_read_header(), thp_read_header(), thp_read_packet(), tmv_read_seek(), track_header(), 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(), viv_read_header(), viv_read_seek(), vmd_read_header(), vmd_read_packet(), voc_read_seek(), vpk_read_seek(), vqf_read_seek(), wady_read_header(), wc3_read_header(), wc3_read_packet(), webp_write_trailer(), write_fragments(), write_header(), write_hint_packets(), write_metadata(), write_root_table(), write_stream_codec_info(), write_trailer(), wsaud_write_trailer(), wsd_read_header(), wsvqa_read_header(), wsvqa_read_packet(), 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().

◆ avio_skip()

int64_t avio_skip ( AVIOContext s,
int64_t  offset 
)

Skip given number of bytes forward.

Returns
new position or AVERROR.

Definition at line 365 of file aviobuf.c.

Referenced by aa_read_header(), aa_read_packet(), aal_read_packet(), aax_read_header(), ac4_read_packet(), ace_read_header(), 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(), apac_read_header(), ape_read_header(), apng_read_packet(), argo_brp_read_header(), 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(), binka_read_header(), binka_read_packet(), bonk_read_header(), cdata_read_header(), cdxl_read_packet(), check_file_header(), cine_read_header(), cine_read_packet(), dat_read_packet(), dcstr_read_header(), decode_fctl_chunk(), decode_frame(), derf_read_header(), dfa_read_header(), dfa_read_packet(), dhav_read_header(), dhav_read_packet(), dsf_read_header(), dsf_read_packet(), dss_read_seek(), dss_skip_audio_header(), dtshd_read_header(), dxa_read_header(), ea_read_packet(), epaf_read_header(), 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_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(), 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(), fwse_read_header(), gdv_read_header(), genh_read_header(), get_aiff_header(), get_codec_data(), get_eia608_packet(), get_meta(), get_packet_header(), get_strl(), get_tag(), gif_read_header(), gif_skip_subblocks(), gxf_header(), gxf_material_tags(), gxf_packet(), gxf_read_index(), gxf_track_tags(), hca_read_header(), hcom_read_header(), hnm_read_header(), hnm_read_packet(), ico_write_header(), id3v2_parse(), idcin_read_packet(), iff_read_header(), iff_read_packet(), ifv_read_packet(), ingenient_read_packet(), ipu_read_header(), ircam_read_header(), ivr_read_header(), ivr_read_packet(), jpegxl_anim_read_header(), laf_read_header(), lmlm4_read_packet(), lvf_read_header(), lvf_read_packet(), lxf_read_header(), mmf_read_header(), mods_read_header(), moflex_read_packet(), moflex_read_sync(), mov_metadata_loci(), mov_parse_stsd_data(), mov_parse_stsd_video(), mov_read_ares(), 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_sgpd(), 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(), msp_read_header(), 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(), osq_read_header(), parse_chunk(), parse_chunks(), parse_dsd_diin(), parse_dsd_prop(), parse_ext(), parse_global_var(), parse_header(), parse_media_type(), parse_video_info(), parse_video_var(), parse_videoinfoheader2(), pdv_read_header(), pmp_header(), pmp_packet(), pp_bnk_read_header(), 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_chunk(), read_dst_frame(), read_extradata(), read_gab2_sub(), read_header(), read_index(), read_kuki_chunk(), read_line_to_bprint_escaped(), read_packet(), read_part_of_packet(), read_sm_data(), read_string(), read_string_to_bprint(), 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(), scd_read_header(), sdns_read_header(), sdr2_read_header(), sdr2_read_packet(), sds_read_header(), sds_read_packet(), sdx_read_header(), ser_read_header(), sga_read_header(), sga_read_packet(), siff_parse_soun(), siff_parse_vbv1(), siff_read_header(), simbiosis_imx_read_header(), smacker_read_header(), smacker_read_packet(), smjpeg_read_header(), smush_read_header(), smush_read_packet(), sol_read_header(), sox_read_header(), svag_read_header(), svs_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(), usm_read_packet(), vag_read_header(), var_read_string(), vc1t_read_header(), vid_read_header(), viv_read_header(), vivo_read_header(), vivo_read_packet(), voc_read_header(), vpk_read_header(), vpk_read_packet(), vqf_read_header(), wady_read_header(), wavarc_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(), xmd_read_header(), xmv_read_header(), xvag_read_header(), xwma_read_header(), yop_read_header(), and yop_read_packet().

◆ avio_tell()

static av_always_inline int64_t avio_tell ( AVIOContext s)
static

ftell() equivalent for AVIOContext.

Returns
position or AVERROR.

Definition at line 513 of file avio.h.

Referenced by aa_read_header(), aa_read_packet(), aal_read_packet(), aax_read_header(), aax_read_packet(), ac4_read_packet(), adts_aac_read_header(), adts_aac_resync(), adx_read_packet(), afc_read_packet(), aiff_read_header(), aiff_read_packet(), aiff_write_header(), aiff_write_trailer(), aix_read_packet(), align_position(), amf_parse_object(), amv_end_tag(), amv_start_tag(), amv_write_header(), apac_read_header(), ape_read_header(), apng_read_header(), aqt_read_header(), argo_brp_read_header(), asf_build_simple_index(), asf_get_packet(), asf_parse_packet(), asf_read_data(), asf_read_frame_header(), asf_read_header(), asf_read_multiple_payload(), asf_read_packet(), asf_read_packet_header(), asf_read_single_payload(), asf_read_stream_properties(), asf_read_subpayload(), asf_read_timestamp(), asf_write_header1(), asf_write_packet(), asf_write_trailer(), asfrtp_parse_packet(), ast_read_packet(), ast_write_header(), ast_write_trailer(), av_get_packet(), avformat_find_stream_info(), avformat_open_input(), avi_add_ientry(), avi_load_index(), avi_read_header(), avi_read_idx1(), avi_read_nikon(), avi_read_packet(), avi_sync(), avi_write_counters(), avi_write_header(), avi_write_ix(), avi_write_packet(), avi_write_packet_internal(), avi_write_trailer(), avif_write_trailer(), avs_read_audio_packet(), binka_read_packet(), caf_write_header(), caf_write_trailer(), cdxl_read_packet(), close_file(), dash_flush(), dat_read_packet(), dcstr_read_header(), decode_frame(), decode_frame_header(), decode_info_header(), decode_main_header(), decode_stream_header(), decode_syncpoint(), detect_unknown_subobject(), dhav_read_header(), dhav_read_seek(), dsf_read_header(), dsf_read_packet(), dss_723_1_read_packet(), dss_sp_read_packet(), dtshd_read_header(), dxa_read_header(), dxa_read_packet(), ebml_read_num(), end_ebml_master(), end_ebml_master_crc32(), end_ebml_master_crc32_tentatively(), end_header(), event_loop(), ff_end_tag(), ff_format_shift_data(), ff_id3v1_read(), ff_id3v2_finish(), ff_id3v2_start(), ff_img_read_packet(), ff_mov_cenc_write_sinf_tag(), ff_mov_read_stsd_entries(), ff_mov_write_packet(), ff_put_wav_header(), ff_raw_read_partial_packet(), ff_read_riff_info(), ff_rm_read_mdpr_codecdata(), ff_spdif_read_packet(), ff_start_tag(), ff_text_pos(), ff_voc_get_packet(), ff_wms_parse_sdp_a_line(), ffio_limit(), filesize(), find_and_decode_index(), find_sidx(), find_startcode(), finish_chunk_noindex(), finish_file(), flac_read_header(), flac_write_trailer(), flush_dynbuf(), flush_packet(), flv_read_packet(), flv_write_codec_header(), flv_write_header(), flv_write_packet(), flv_write_trailer(), fourxm_read_packet(), fsb_read_header(), fsb_read_packet(), fwse_read_header(), g723_1_read_packet(), genh_read_header(), get_attachment(), get_duration(), get_riff(), get_tag(), gif_read_header(), gif_read_packet(), gif_write_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_packets(), hls_write_packet(), hls_write_trailer(), hnm_read_packet(), ico_write_packet(), id3v2_parse(), id3v2_read_internal(), idcin_read_header(), iff_read_header(), iff_read_packet(), ipmovie_read_header(), iss_read_header(), iss_read_packet(), ivf_write_trailer(), ivr_read_header(), ivr_read_packet(), jacosub_read_header(), jpeg_parse_packet(), klv_read_packet(), laf_read_packet(), lvf_read_header(), lvf_read_packet(), microdvd_read_header(), mkv_start_seekhead(), mkv_write_blockadditionmapping(), mkv_write_flush_packet(), mkv_write_header(), mkv_write_info(), mkv_write_packet(), mkv_write_packet_internal(), mkv_write_seekhead(), mkv_write_tags(), mkv_write_track(), mkv_write_trailer(), mmf_read_header(), mmf_read_packet(), mods_read_packet(), moflex_read_packet(), mov_add_tfra_entries(), mov_cenc_write_saio_tag(), mov_cenc_write_saiz_tag(), mov_cenc_write_schi_tag(), mov_cenc_write_senc_tag(), mov_flush_fragment(), mov_flush_fragment_interleaving(), mov_parse_auxiliary_info(), mov_parse_stsd_video(), mov_read_chapters(), mov_read_chnl(), mov_read_custom(), mov_read_default(), mov_read_dref(), mov_read_header(), mov_read_mfra(), mov_read_moof(), mov_read_rtmd_track(), mov_read_sidx(), mov_read_timecode_track(), mov_switch_root(), mov_write_3gp_udta_tag(), mov_write_audio_tag(), mov_write_aux_tag(), mov_write_av1c_tag(), mov_write_avcc_tag(), mov_write_btrt_tag(), mov_write_ccst_tag(), mov_write_chan_tag(), mov_write_chnl_tag(), mov_write_chpl_tag(), mov_write_colr_tag(), mov_write_covr(), mov_write_dfla_tag(), mov_write_dinf_tag(), mov_write_dmlp_tag(), mov_write_dops_tag(), mov_write_esds_tag(), mov_write_evcc_tag(), mov_write_ftyp_tag(), mov_write_gmhd_tag(), mov_write_gpmd_tag(), mov_write_hdlr_tag(), mov_write_header(), mov_write_hvcc_tag(), mov_write_iinf_tag(), mov_write_iloc_tag(), mov_write_ilst_tag(), mov_write_iods_tag(), mov_write_ipco_tag(), mov_write_ipma_tag(), mov_write_iprp_tag(), mov_write_iref_tag(), mov_write_isml_manifest(), mov_write_ispe_tag(), mov_write_loci_tag(), mov_write_mdat_tag(), mov_write_mdia_tag(), mov_write_mdta_ilst_tag(), mov_write_mdta_keys_tag(), mov_write_meta_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_pcmc_tag(), mov_write_pitm_tag(), mov_write_pixi_tag(), mov_write_prft_tag(), mov_write_rtp_tag(), mov_write_sdtp_tag(), mov_write_sidx_tag(), mov_write_source_reference_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_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_tags(), mov_write_tfxd_tag(), mov_write_tmcd_tag(), mov_write_track_kind(), mov_write_track_metadata(), 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_vpcc_tag(), mov_write_wave_tag(), mov_write_wfex_tag(), mp3_parse_info_tag(), mp3_read_header(), mp3_read_packet(), mp3_update_xing(), 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(), mpegts_resync(), mpegts_write_flush(), mpjpeg_read_header(), mpjpeg_read_packet(), mpl2_read_header(), mpsub_read_header(), msf_read_header(), mtv_read_packet(), mv_read_packet(), mxf_decrypt_triplet(), mxf_parse_handle_essence(), mxf_parse_klv(), mxf_read_header(), mxf_read_local_tags(), mxf_read_packet(), mxf_read_partition_pack(), mxf_update_klv_size(), mxf_write_avc_subdesc(), mxf_write_ffv1_subdesc(), mxf_write_footer(), mxf_write_generic_desc(), mxf_write_index_table_segment(), mxf_write_klv_fill(), mxf_write_partition(), mxf_write_random_index_pack(), nist_read_header(), nsp_read_header(), nsv_parse_NSVf_header(), 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(), oma_read_header(), oma_read_seek(), parse_chunk(), parse_chunks(), parse_dsd_diin(), parse_dsd_prop(), parse_file(), parse_fragment(), parse_keyframes_index(), parse_playlist(), pdv_read_header(), pjs_read_header(), pmp_header(), pp_bnk_read_header(), print_stats(), process_ea_header(), process_ipmovie_chunk(), put_header(), put_id3v2_tags(), 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_chunk(), read_dst_frame(), read_frame(), read_header(), read_kuki_chunk(), read_line(), read_moof_duration(), read_odml_index(), read_packet(), read_pakt_chunk(), read_part_of_packet(), read_sm_data(), read_tfra(), read_trun_duration(), resync(), rka_read_header(), rm_assemble_video_frame(), rm_read_audio_stream_info(), rm_read_header(), rm_read_index(), rm_read_packet(), rm_sync(), rm_write_trailer(), roq_read_packet(), rsd_read_header(), rsd_read_packet(), rso_write_trailer(), rv10_write_header(), scan_file(), sdr2_read_packet(), sds_read_packet(), ser_read_packet(), set_spdif(), sga_read_packet(), simbiosis_imx_read_packet(), skip_reserved(), skip_tag(), smacker_read_packet(), smjpeg_read_packet(), smjpeg_write_trailer(), sox_write_trailer(), start_ebml_master(), stl_read_header(), str_read_packet(), subviewer1_read_header(), subviewer_read_header(), sup_read_packet(), svag_read_header(), swf_read_packet(), swf_write_header(), swf_write_trailer(), swf_write_video(), tak_read_header(), tedcaptions_read_header(), threedostr_read_packet(), track_header(), tta_read_header(), update_odml_entry(), update_offsets(), update_size(), updatePacketSize(), updateSize(), usm_read_packet(), viv_read_header(), viv_read_packet(), vmd_read_packet(), vp8_handle_packet(), vpk_read_header(), vpk_read_packet(), vplayer_read_header(), vqf_read_packet(), wavarc_read_header(), wavarc_read_packet(), webp_write_trailer(), webvtt_read_header(), write_abst(), write_chunk_header(), write_fat_sector(), write_fragments(), write_header(), write_hint_packets(), write_index(), write_metadata(), write_root_table(), write_stream_codec_info(), write_trailer(), wsvqa_read_packet(), wv_read_block_header(), wv_read_header(), wv_write_trailer(), xmv_process_packet_header(), xmv_read_header(), xvag_read_header(), xwma_read_header(), xwma_read_packet(), yop_read_packet(), yuv4_read_header(), and yuv4_read_packet().

◆ avio_size()

int64_t avio_size ( AVIOContext s)

◆ avio_feof()

int avio_feof ( AVIOContext s)

Similar to feof() but also returns nonzero on read errors.

Returns
non zero if and only if at end of file or a read error happened when reading.

Definition at line 393 of file aviobuf.c.

Referenced by aa_read_header(), aal_read_packet(), aax_read_packet(), ac4_read_packet(), adp_read_packet(), adts_aac_resync(), adx_read_packet(), aix_read_packet(), amf_parse_object(), amf_skip_tag(), ape_read_packet(), apng_read_packet(), 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(), binka_read_packet(), bonk_read_header(), cdxl_read_packet(), cin_read_frame_header(), cine_read_header(), cine_read_packet(), dat_read_packet(), daud_packet(), dfa_read_packet(), dtshd_read_header(), dxa_read_header(), dxa_read_packet(), ea_read_packet(), evc_read_packet(), ff_get_line(), ff_imf_parse_cpl(), ff_img_read_packet(), 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(), flv_read_packet(), fourxm_read_packet(), fsb_read_packet(), gdv_read_packet(), genh_read_packet(), get_bprint_line(), get_chunk(), get_codec_data(), get_line(), get_swf_tag(), get_tag(), gif_read_header(), gif_read_packet(), gxf_packet(), hls_read_packet(), idcin_read_packet(), iff_read_header(), iff_read_packet(), ifv_read_packet(), ipmovie_read_header(), ivr_read_header(), ivr_read_packet(), jacosub_read_header(), laf_read_header(), laf_read_packet(), lrc_read_header(), lvf_read_header(), lvf_read_packet(), lxf_sync(), microdvd_read_header(), mmf_read_packet(), mods_read_packet(), moflex_read_packet(), moflex_read_sync(), mov_metadata_hmmt(), mov_read_default(), mov_read_dref(), mov_read_glbl(), mov_read_iloc(), mov_read_meta(), mov_switch_root(), mpc8_parse_seektable(), 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(), osq_read_header(), parse_assetmap(), parse_chunks(), parse_dsd_diin(), parse_dsd_prop(), parse_keyframes_index(), parse_legacy_attrib(), parse_manifest(), parse_media_type(), parse_playlist(), pdv_read_packet(), pjs_read_header(), pmp_header(), pmp_packet(), pop(), process_audio_header_elements(), process_ipmovie_chunk(), qcp_read_packet(), read_chunk(), read_dst_frame(), read_header(), read_index(), read_info_chunk(), read_line(), read_line_to_bprint_escaped(), read_odml_index(), read_packet(), read_pakt_chunk(), read_part_of_packet(), read_string_to_bprint(), read_table(), read_tfra(), read_thread(), redspark_read_packet(), resync(), rka_read_header(), rka_read_packet(), rl2_read_header(), rm_read_header(), rm_read_index(), rm_read_packet(), rm_sync(), roq_read_packet(), rpl_read_packet(), rsd_read_header(), rsd_read_packet(), s337m_read_packet(), scan_file(), sdns_read_packet(), sds_read_packet(), sdx_read_header(), sga_read_header(), sga_read_packet(), should_retry(), simbiosis_imx_read_packet(), 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(), svs_read_packet(), tak_read_header(), threedostr_read_header(), threedostr_read_packet(), tmv_read_packet(), track_header(), tta_read_header(), txd_read_packet(), ty_read_packet(), usm_read_packet(), vc1t_read_packet(), vid_read_packet(), viv_read_header(), viv_read_packet(), vivo_get_packet_header(), vivo_read_packet(), vplayer_read_header(), vqf_read_header(), wavarc_read_header(), wc3_read_header(), wc3_read_packet(), wtvfile_read_packet(), wv_read_block_header(), wv_read_packet(), and xwma_read_header().

◆ avio_vprintf()

int avio_vprintf ( AVIOContext s,
const char *  fmt,
va_list  ap 
)

Writes a formatted string to the context taking a va_list.

Returns
number of bytes written, < 0 on error.

Definition at line 1311 of file aviobuf.c.

Referenced by avio_printf(), and writer_printf_avio().

◆ avio_printf()

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

◆ avio_print_string_array()

int void avio_print_string_array ( AVIOContext s,
const char *  strings[] 
)

Write a NULL terminated array of strings to the context.

Usually you don't need to use this function directly but its macro wrapper, avio_print.

Definition at line 1339 of file aviobuf.c.

◆ avio_flush()

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.

Examples
avio_http_serve_files.c.

Definition at line 270 of file aviobuf.c.

Referenced by av_write_trailer(), avio_close(), avio_close_dyn_buf(), avio_get_dyn_buf(), avio_write(), avio_write_marker(), close_file(), copy_moof(), dash_init(), dash_write_packet(), dashenc_io_close(), enc_stats_write(), ff_format_shift_data(), ff_rtp_check_and_send_back_rr(), ff_rtp_send_data(), ff_rtp_send_rtcp_feedback(), ffio_close_null_buf(), flush_dynbuf(), flush_if_needed(), hds_flush(), hds_write_header(), hls_mux_init(), hls_write_packet(), hlsenc_io_close(), ism_flush(), ism_write_header(), main(), mov_write_header(), print_report(), process_client(), rtcp_send_sr(), segment_end(), write_and_close(), write_fragment(), write_manifest(), and writer_close().

◆ avio_read()

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

Read size bytes from AVIOContext into buf.

Returns
number of bytes read or AVERROR
Examples
avio_http_serve_files.c.

Definition at line 659 of file aviobuf.c.

Referenced by aax_read_packet(), add_metadata(), amf_get_string(), ape_read_header(), ape_read_packet(), ape_tag_read_field(), append_packet_chunked(), append_single_file(), argo_brp_read_header(), argo_brp_read_packet(), 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(), binka_read_packet(), bmv_read_packet(), cdxl_read_packet(), check(), check_file_header(), check_tag(), cin_read_packet(), copy_moof(), copy_tag(), decode_frame(), decode_main_header(), dhav_read_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(), dxa_read_packet(), evc_read_packet(), ff_ape_parse_tag(), ff_flac_parse_picture(), 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(), 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_header(), hca_read_header(), hcom_read_header(), hls_encryption_start(), hls_read_header(), id3v2_parse(), id3v2_read_internal(), idcin_read_packet(), iff_read_header(), ilbc_read_header(), import_pem(), ipmovie_read_header(), is_image(), jpegxl_anim_read_header(), jpegxl_anim_read_packet(), klv_read_packet(), load_ipmovie_packet(), lxf_read_header(), lxf_read_packet(), lxf_sync(), main(), mlp_read_header(), modplug_read_header(), mov_read_adrm(), mov_read_dfla(), mov_read_dops(), mov_read_free(), mov_read_keys(), mov_read_pssh(), mov_read_saiz(), mov_read_tenc(), mov_read_wave(), mp3_parse_info_tag(), mpc8_parse_seektable(), mpc_read_packet(), mpegps_read_packet(), mpegps_read_pes_header(), mpegts_get_pcr(), mpegts_raw_read_packet(), mxf_decrypt_triplet(), mxf_read_cryptographic_context(), mxf_read_essence_container_data(), mxf_read_ffv1_sub_descriptor(), mxf_read_generic_descriptor(), mxf_read_indirect_value(), mxf_read_local_tags(), mxf_read_mca_sub_descriptor(), 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(), of_add_attachments(), ogg_read_page(), oma_read_header(), oma_read_seek(), open_input(), parse_chunks(), parse_fragment(), parse_MP4DecConfigDescrTag(), parse_utf(), pp_bnk_read_header(), pp_bnk_read_packet(), process_client(), process_ipmovie_chunk(), qcp_read_header(), r3d_read_red1(), read_apic(), read_binary(), read_chapter(), read_extradata(), 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_priv(), read_sb_block(), read_sm_data(), read_string(), read_table(), read_uslt(), read_vblock(), readfull(), rm_assemble_video_frame(), rm_read_audio_stream_info(), roq_read_header(), roq_read_packet(), rsd_read_header(), scd_read_header(), scd_read_offsets(), scd_read_table(), scd_read_track(), sdr2_read_packet(), sds_read_packet(), seq_fill_buffer(), seq_read_packet(), set_spdif(), sga_read_packet(), siff_read_packet(), smjpeg_read_header(), sox_read_header(), str_read_header(), str_read_packet(), swf_read_packet(), tak_read_header(), thp_read_header(), track_header(), tta_read_header(), ty_read_header(), vid_read_packet(), viv_read_header(), vivo_read_header(), vmd_read_header(), vmd_read_packet(), vpk_read_packet(), vqf_read_header(), vqf_read_packet(), wavarc_read_header(), 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(), and yop_read_packet().

◆ avio_read_partial()

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.

Returns
number of bytes read or AVERROR

Definition at line 731 of file aviobuf.c.

Referenced by ff_raw_read_partial_packet(), get_packet_size(), and gif_read_packet().

◆ avio_r8()

int avio_r8 ( AVIOContext s)

Definition at line 650 of file aviobuf.c.

Referenced by aax_read_header(), adts_aac_resync(), aea_read_header(), aix_read_header(), aix_read_packet(), amf_parse_object(), amf_skip_tag(), 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(), binka_read_header(), bmv_read_packet(), bonk_read_header(), cdata_read_header(), cin_read_file_header(), cin_read_frame_header(), decode_fctl_chunk(), decode_str(), dss_723_1_read_packet(), dss_read_header(), dtshd_read_header(), dxa_read_header(), ebml_read_num(), 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_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_eia608_packet(), get_line(), get_pts(), get_size(), get_str(), get_str8(), get_token(), gif_read_header(), gif_skip_subblocks(), guess_ni_flag(), gxf_header(), gxf_material_tags(), gxf_packet(), gxf_resync_media(), gxf_track_tags(), hcom_read_header(), iff_read_header(), ipmovie_read_header(), ivr_read_header(), ivr_read_packet(), klv_decode_ber_length(), laf_read_header(), load_sb_block(), lvf_read_header(), lxf_sync(), mmf_read_header(), moflex_read_packet(), moflex_read_sync(), mov_metadata_gnre(), mov_metadata_int8_bypass_padding(), mov_metadata_int8_no_padding(), mov_parse_stsd_video(), mov_read_chnl(), 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_iloc(), mov_read_kind(), mov_read_mac_string(), mov_read_mdhd(), mov_read_mvhd(), mov_read_pcmc(), mov_read_pssh(), mov_read_rtmd_track(), mov_read_SA3D(), mov_read_saio(), mov_read_saiz(), mov_read_SAND(), mov_read_sbgp(), mov_read_sdtp(), mov_read_senc(), mov_read_sgpd(), 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(), mp3_parse_info_tag(), 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_chunk(), parse_chunks(), parse_dsd_prop(), parse_ext(), parse_keyframes_index(), parse_MP4IODescrTag(), parse_MP4SLDescrTag(), parse_packet_header(), pmp_packet(), pop(), process_audio_header_eacs(), process_audio_header_elements(), qcp_read_header(), qcp_read_packet(), r3d_read_red1(), r3d_read_reda(), r3d_read_redv(), rb_size(), read_apic(), read_arbitrary(), read_chunk(), read_comment(), read_frame(), read_geobtag(), read_header(), read_kuki_chunk(), read_line(), read_line_to_bprint_escaped(), read_moof_duration(), read_odml_index(), read_part_of_packet(), read_string_to_bprint(), read_tfra(), read_trun_duration(), read_ttag(), read_uint8(), read_uslt(), read_var_byte(), 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(), simbiosis_imx_read_packet(), 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(), track_header(), track_index(), vc1t_read_header(), vc1t_read_packet(), vid_read_packet(), viv_read_header(), vivo_get_packet_header(), wavarc_read_header(), wsd_read_header(), wv_read_block_header(), xmd_read_header(), yop_read_header(), yuv4_read_header(), and yuv4_read_packet().

◆ avio_rl16()

unsigned int avio_rl16 ( AVIOContext s)

Definition at line 761 of file aviobuf.c.

Referenced by apac_read_header(), 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(), binka_read_header(), binka_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_header(), guess_ni_flag(), hnm_read_header(), hnm_read_packet(), ingenient_read_packet(), ipu_read_header(), jpegxl_anim_read_header(), lvf_read_header(), mpc8_get_chunk_header(), msnwc_tcp_read_packet(), msp_read_header(), mtv_read_header(), nc_read_packet(), nsv_parse_NSVs_header(), nsv_read_chunk(), parse_ext(), parse_header(), parse_video_info(), parse_waveformatex(), pdv_read_header(), pmp_header(), process_ea_header(), process_video_header_cmv(), process_video_header_mdec(), qcp_read_header(), qt_rtp_parse_packet(), read16(), read_chunk(), 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(), simbiosis_imx_read_header(), smush_read_header(), sol_read_header(), swf_read_header(), swf_read_packet(), tmv_read_header(), track_header(), tta_read_header(), vid_read_header(), vid_read_packet(), voc_read_header(), wady_read_header(), wv_read_block_header(), xa_read_header(), xmd_read_header(), xmv_read_header(), and yop_read_header().

◆ avio_rl24()

unsigned int avio_rl24 ( AVIOContext s)

◆ avio_rl32()

unsigned int avio_rl32 ( AVIOContext s)

Definition at line 777 of file aviobuf.c.

Referenced by ads_read_header(), aiff_read_header(), aix_read_header(), aix_read_packet(), apac_read_header(), 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(), binka_read_header(), bonk_read_header(), check_file_header(), cin_read_file_header(), cin_read_frame_header(), cine_read_header(), cine_read_packet(), dat_read_packet(), dcstr_read_header(), derf_read_header(), dfa_read_header(), dhav_read_header(), dhav_read_packet(), dsf_read_header(), dxa_read_header(), ea_read_packet(), epaf_read_header(), ff_ape_parse_tag(), 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(), fwse_read_header(), genh_read_header(), get_aiff_header(), get_attachment(), get_codec_data(), get_duration(), 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(), ifv_read_packet(), ingenient_read_packet(), ipu_read_header(), ircam_read_header(), ivr_read_header(), laf_read_header(), lvf_read_header(), lvf_read_packet(), mmf_read_header(), mods_read_header(), mods_read_packet(), mov_parse_stsd_audio(), mov_parse_stsd_video(), 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_sgpd(), mov_read_sv3d(), mov_read_udta_string(), mov_read_wide(), mpc8_read_header(), mpc_read_header(), mpc_read_packet(), msnwc_tcp_read_packet(), msp_read_header(), 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(), osq_read_header(), parse_chunks(), parse_dsd_diin(), parse_dsd_prop(), parse_fragment(), parse_header(), parse_legacy_attrib(), parse_video_info(), parse_waveformatex(), pdv_read_header(), 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_chunk(), read_desc_chunk(), read_dst_frame(), read_gab2_sub(), read_header(), read_index(), read_ints(), read_odml_index(), read_packet(), read_table(), read_uint32(), rka_read_header(), 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(), simbiosis_imx_read_header(), simbiosis_imx_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(), svs_read_header(), swf_read_header(), swf_read_packet(), tak_read_header(), threedostr_read_header(), threedostr_read_packet(), tmv_read_header(), track_header(), tta_read_header(), txd_read_packet(), vag_read_header(), vc1t_read_header(), vc1t_read_packet(), viv_read_header(), vpk_read_header(), vqf_read_header(), wady_read_header(), wavarc_read_header(), wc3_read_header(), wc3_read_packet(), wv_read_block_header(), xa_read_header(), xmd_read_header(), xmv_fetch_video_packet(), xmv_process_packet_header(), xmv_read_extradata(), xmv_read_header(), xvag_read_header(), and xwma_read_header().

◆ avio_rl64()

uint64_t avio_rl64 ( AVIOContext s)

◆ avio_rb16()

unsigned int avio_rb16 ( AVIOContext s)

Definition at line 793 of file aviobuf.c.

Referenced by aal_read_packet(), aax_read_header(), aax_read_packet(), ac4_read_packet(), adx_read_header(), afc_read_header(), aix_read_header(), aix_read_packet(), amf_get_string(), amf_parse_object(), 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(), hca_read_header(), hcom_read_header(), id3v2_parse(), iff_read_header(), ivr_read_header(), ivr_read_packet(), lmlm4_read_packet(), moflex_read_sync(), 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_iloc(), mov_read_mdcv(), mov_read_mdhd(), mov_read_mvhd(), mov_read_pitm(), mov_read_sample_encryption_info(), mov_read_sidx(), mov_read_smdm(), mov_read_tkhd(), mov_read_udta_string(), mov_read_vpcc(), mp3_parse_info_tag(), mp3_parse_vbri_tag(), mpegps_psm_parse(), mpegps_read_pes_header(), mv_read_header(), mxf_get_eia608_packet(), mxf_read_generic_descriptor(), mxf_read_local_tags(), mxf_read_timecode_component(), parse_chunk(), parse_dsd_prop(), parse_MP4IODescrTag(), parse_MP4ODescrTag(), parse_MP4SLDescrTag(), qt_rtp_parse_packet(), r3d_read_red1(), r3d_read_reda(), r3d_read_redv(), rb_size(), 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(), sga_read_header(), sga_read_packet(), smjpeg_read_header(), sup_read_packet(), and xvag_read_header().

◆ avio_rb24()

unsigned int avio_rb24 ( AVIOContext s)

◆ avio_rb32()

unsigned int avio_rb32 ( AVIOContext s)

Definition at line 808 of file aviobuf.c.

Referenced by aa_read_header(), aa_read_packet(), aal_read_packet(), aax_read_header(), ace_read_header(), afc_read_header(), aiff_read_header(), aix_read_header(), aix_read_packet(), amf_parse_object(), amf_skip_tag(), apac_read_header(), apng_read_header(), apng_read_packet(), ast_read_header(), ast_read_packet(), avi_sync(), avio_rb64(), copy_tag(), dat_read_packet(), decode_fctl_chunk(), decode_frame_header(), dtshd_read_header(), dxa_read_header(), ea_read_packet(), epaf_read_header(), 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(), hcom_read_header(), id3v2_parse(), iff_read_header(), iff_read_packet(), ircam_read_header(), ivr_read_header(), ivr_read_packet(), laf_read_header(), lmlm4_read_packet(), mmf_read_header(), mov_metadata_creation_time(), 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_dmlp(), mov_read_dref(), mov_read_elst(), mov_read_ftyp(), mov_read_glbl(), mov_read_hdlr(), mov_read_iloc(), mov_read_keys(), mov_read_mdcv(), mov_read_mdhd(), mov_read_mfra(), mov_read_mvhd(), mov_read_pasp(), mov_read_pitm(), mov_read_pssh(), mov_read_SA3D(), mov_read_saio(), mov_read_saiz(), mov_read_sample_encryption_info(), mov_read_sbgp(), mov_read_schm(), mov_read_senc(), mov_read_sgpd(), 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_mca_sub_descriptor(), 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(), ogg_read_page(), parse_chunk(), parse_dsd_diin(), parse_dsd_prop(), parse_fragment(), parse_keyframes_index(), parse_MP4SLDescrTag(), parse_packet_header(), parse_utf(), 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(), rb_size(), 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(), sdns_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(), usm_read_packet(), vag_read_header(), vqf_read_header(), wc3_read_header(), wc3_read_packet(), wsd_read_header(), wve_read_header(), and xvag_read_header().

◆ avio_rb64()

uint64_t avio_rb64 ( AVIOContext s)

◆ avio_get_str()

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 913 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(), mxf_read_us_ascii_string(), nsp_read_header(), read_apic(), read_info_chunk(), and var_read_string().

◆ avio_get_str16le()

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(), asf_read_ext_content_desc(), asf_read_language_list(), asf_read_marker(), asf_read_metadata(), asf_read_metadata_obj(), asf_read_picture(), get_attachment(), get_tag(), mov_read_chapters(), mxf_read_utf16_string(), parse_legacy_attrib(), and read_gab2_sub().

◆ avio_get_str16be()

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

◆ avio_open()

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.
urlresource to access
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
mux.c, qsv_decode.c, qsv_transcode.c, remux.c, transcode.c, transcode_aac.c, and vaapi_transcode.c.

Definition at line 1239 of file aviobuf.c.

Referenced by file_read(), init(), main(), open_output_file(), read_graph(), and writer_open().

◆ avio_open2()

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.
urlresource to access
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
Examples
avio_http_serve_files.c.

Definition at line 1265 of file aviobuf.c.

Referenced by avio_open(), dash_init(), dump_attachment(), enc_stats_get_file(), find_sidx(), get_preset_file_2(), lavfi_read_header(), main(), of_add_attachments(), of_open(), open_url(), parse_manifest(), print_sdp(), process_client(), read_binary(), read_mfra(), and write_fragment().

◆ avio_close()

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.

Returns
0 on success, an AVERROR < 0 on error.
See also
avio_closep
Examples
avio_http_serve_files.c, and qsv_decode.c.

Definition at line 1271 of file aviobuf.c.

Referenced by avformat_close_input(), avio_closep(), dash_free(), do_encrypt(), dump_attachment(), find_sidx(), import_pem(), io_close2_default(), main(), parse_manifest(), parse_playlist(), process_client(), read_binary(), read_mfra(), write_fragment(), and writer_close().

◆ avio_closep()

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
Examples
mux.c, remux.c, transcode.c, and transcode_aac.c.

Definition at line 1304 of file aviobuf.c.

Referenced by avformat_open_input(), fc_close(), ff_rtp_chain_mux_open(), ff_rtsp_undo_setup(), ffio_fdopen(), file_read(), lavfi_read_header(), main(), of_add_attachments(), of_enc_stats_close(), of_write_trailer(), open_output_file(), ost_add(), print_report(), print_sdp(), read_graph(), sap_write_close(), and uninit().

◆ avio_open_dyn_buf()

int avio_open_dyn_buf ( AVIOContext **  s)

◆ avio_get_dyn_buf()

int avio_get_dyn_buf ( AVIOContext s,
uint8_t **  pbuffer 
)

◆ avio_close_dyn_buf()

int avio_close_dyn_buf ( AVIOContext s,
uint8_t **  pbuffer 
)

◆ avio_enum_protocols()

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 98 of file protocols.c.

Referenced by show_protocols().

◆ avio_protocol_get_class()

const AVClass* avio_protocol_get_class ( const char *  name)

Get AVClass by names of available protocols.

Returns
A AVClass of input protocol name or NULL

Definition at line 113 of file protocols.c.

Referenced by show_help_protocol().

◆ avio_pause()

int avio_pause ( AVIOContext h,
int  pause 
)

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

MMS).

Parameters
hIO context from which to call the read_pause function pointer
pause1 for pause, 0 for resume

Definition at line 1345 of file aviobuf.c.

Referenced by av_read_pause(), and av_read_play().

◆ avio_seek_time()

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
hIO context from which to call the seek function pointers
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 1352 of file aviobuf.c.

Referenced by asf_read_seek(), and flv_read_seek().

◆ avio_read_to_bprint()

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.

Returns
0 for success (max_size bytes read or EOF reached), negative error code otherwise

Definition at line 1371 of file aviobuf.c.

Referenced by ff_imf_parse_cpl(), file_read(), gif_read_header(), lavfi_read_header(), parse_assetmap(), parse_manifest(), and read_whole_file().

◆ avio_accept()

int avio_accept ( AVIOContext s,
AVIOContext **  c 
)

Accept and allocate a client context on a server context.

Parameters
sthe server context
cthe client context, must be unallocated
Returns
>= 0 on success or a negative value corresponding to an AVERROR on failure
Examples
avio_http_serve_files.c.

Definition at line 1389 of file aviobuf.c.

Referenced by main().

◆ avio_handshake()

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.

Parameters
cthe client context to perform the handshake on
Returns
0 on a complete and successful handshake > 0 if the handshake progressed, but is not complete < 0 for an AVERROR code
Examples
avio_http_serve_files.c.

Definition at line 1400 of file aviobuf.c.

Referenced by process_client().