FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
bytestream.h File Reference
#include <stdint.h>
#include <string.h>
#include "libavutil/avassert.h"
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"

Go to the source code of this file.

Data Structures

struct  GetByteContext
 
struct  PutByteContext
 

Macros

#define DEF(type, name, bytes, read, write)
 
#define bytestream2_get_ne16   bytestream2_get_le16
 
#define bytestream2_get_ne24   bytestream2_get_le24
 
#define bytestream2_get_ne32   bytestream2_get_le32
 
#define bytestream2_get_ne64   bytestream2_get_le64
 
#define bytestream2_get_ne16u   bytestream2_get_le16u
 
#define bytestream2_get_ne24u   bytestream2_get_le24u
 
#define bytestream2_get_ne32u   bytestream2_get_le32u
 
#define bytestream2_get_ne64u   bytestream2_get_le64u
 
#define bytestream2_put_ne16   bytestream2_put_le16
 
#define bytestream2_put_ne24   bytestream2_put_le24
 
#define bytestream2_put_ne32   bytestream2_put_le32
 
#define bytestream2_put_ne64   bytestream2_put_le64
 
#define bytestream2_peek_ne16   bytestream2_peek_le16
 
#define bytestream2_peek_ne24   bytestream2_peek_le24
 
#define bytestream2_peek_ne32   bytestream2_peek_le32
 
#define bytestream2_peek_ne64   bytestream2_peek_le64
 

Functions

static av_always_inline void bytestream2_init (GetByteContext *g, const uint8_t *buf, int buf_size)
 
static av_always_inline void bytestream2_init_writer (PutByteContext *p, uint8_t *buf, int buf_size)
 
static av_always_inline
unsigned int 
bytestream2_get_bytes_left (GetByteContext *g)
 
static av_always_inline
unsigned int 
bytestream2_get_bytes_left_p (PutByteContext *p)
 
static av_always_inline void bytestream2_skip (GetByteContext *g, unsigned int size)
 
static av_always_inline void bytestream2_skipu (GetByteContext *g, unsigned int size)
 
static av_always_inline void bytestream2_skip_p (PutByteContext *p, unsigned int size)
 
static av_always_inline int bytestream2_tell (GetByteContext *g)
 
static av_always_inline int bytestream2_tell_p (PutByteContext *p)
 
static av_always_inline int bytestream2_size (GetByteContext *g)
 
static av_always_inline int bytestream2_size_p (PutByteContext *p)
 
static av_always_inline int bytestream2_seek (GetByteContext *g, int offset, int whence)
 
static av_always_inline int bytestream2_seek_p (PutByteContext *p, int offset, int whence)
 
static av_always_inline
unsigned int 
bytestream2_get_buffer (GetByteContext *g, uint8_t *dst, unsigned int size)
 
static av_always_inline
unsigned int 
bytestream2_get_bufferu (GetByteContext *g, uint8_t *dst, unsigned int size)
 
static av_always_inline
unsigned int 
bytestream2_put_buffer (PutByteContext *p, const uint8_t *src, unsigned int size)
 
static av_always_inline
unsigned int 
bytestream2_put_bufferu (PutByteContext *p, const uint8_t *src, unsigned int size)
 
static av_always_inline void bytestream2_set_buffer (PutByteContext *p, const uint8_t c, unsigned int size)
 
static av_always_inline void bytestream2_set_bufferu (PutByteContext *p, const uint8_t c, unsigned int size)
 
static av_always_inline
unsigned int 
bytestream2_get_eof (PutByteContext *p)
 
static av_always_inline
unsigned int 
bytestream2_copy_bufferu (PutByteContext *p, GetByteContext *g, unsigned int size)
 
static av_always_inline
unsigned int 
bytestream2_copy_buffer (PutByteContext *p, GetByteContext *g, unsigned int size)
 
static av_always_inline
unsigned int 
bytestream_get_buffer (const uint8_t **b, uint8_t *dst, unsigned int size)
 
static av_always_inline void bytestream_put_buffer (uint8_t **b, const uint8_t *src, unsigned int size)
 

Variables

uint64_t_TMPL le64
 
uint64_t_TMPL AV_RL64
 
uint64_t_TMPL AV_WL64 unsigned
int_TMPL 
le32
 
uint64_t_TMPL AV_WL64 unsigned
int_TMPL 
AV_RL32
 
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL 
le24
 
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL 
AV_RL24
 
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL 
le16
 
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL 
AV_RL16
 
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL 
be64
 
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL 
AV_RB64
 
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL
AV_WB64 unsigned int_TMPL 
be32
 
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL
AV_WB64 unsigned int_TMPL 
AV_RB32
 
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL
AV_WB64 unsigned int_TMPL
AV_WB32 unsigned int_TMPL 
be24
 
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL
AV_WB64 unsigned int_TMPL
AV_WB32 unsigned int_TMPL 
AV_RB24
 
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL
AV_WB64 unsigned int_TMPL
AV_WB32 unsigned int_TMPL
AV_WB24 unsigned int_TMPL 
be16
 
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL
AV_WB64 unsigned int_TMPL
AV_WB32 unsigned int_TMPL
AV_WB24 unsigned int_TMPL 
AV_RB16
 
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL
AV_WB64 unsigned int_TMPL
AV_WB32 unsigned int_TMPL
AV_WB24 unsigned int_TMPL
AV_WB16 unsigned int_TMPL 
byte
 
uint64_t_TMPL AV_WL64 unsigned
int_TMPL AV_WL32 unsigned
int_TMPL AV_WL24 unsigned
int_TMPL AV_WL16 uint64_t_TMPL
AV_WB64 unsigned int_TMPL
AV_WB32 unsigned int_TMPL
AV_WB24 unsigned int_TMPL
AV_WB16 unsigned int_TMPL 
AV_RB8
 

Macro Definition Documentation

#define DEF (   type,
  name,
  bytes,
  read,
  write 
)

Definition at line 42 of file bytestream.h.

#define bytestream2_get_ne16   bytestream2_get_le16

Definition at line 115 of file bytestream.h.

Referenced by expand_rle_row16(), and rle_unpack().

#define bytestream2_get_ne24   bytestream2_get_le24

Definition at line 116 of file bytestream.h.

#define bytestream2_get_ne32   bytestream2_get_le32

Definition at line 117 of file bytestream.h.

Referenced by daala_header().

#define bytestream2_get_ne64   bytestream2_get_le64

Definition at line 118 of file bytestream.h.

#define bytestream2_get_ne16u   bytestream2_get_le16u

Definition at line 119 of file bytestream.h.

Referenced by read_uncompressed_sgi().

#define bytestream2_get_ne24u   bytestream2_get_le24u

Definition at line 120 of file bytestream.h.

#define bytestream2_get_ne32u   bytestream2_get_le32u

Definition at line 121 of file bytestream.h.

#define bytestream2_get_ne64u   bytestream2_get_le64u

Definition at line 122 of file bytestream.h.

#define bytestream2_put_ne16   bytestream2_put_le16

Definition at line 123 of file bytestream.h.

#define bytestream2_put_ne24   bytestream2_put_le24

Definition at line 124 of file bytestream.h.

#define bytestream2_put_ne32   bytestream2_put_le32

Definition at line 125 of file bytestream.h.

#define bytestream2_put_ne64   bytestream2_put_le64

Definition at line 126 of file bytestream.h.

#define bytestream2_peek_ne16   bytestream2_peek_le16

Definition at line 127 of file bytestream.h.

#define bytestream2_peek_ne24   bytestream2_peek_le24

Definition at line 128 of file bytestream.h.

#define bytestream2_peek_ne32   bytestream2_peek_le32

Definition at line 129 of file bytestream.h.

#define bytestream2_peek_ne64   bytestream2_peek_le64

Definition at line 130 of file bytestream.h.

Function Documentation

static av_always_inline void bytestream2_init ( GetByteContext g,
const uint8_t buf,
int  buf_size 
)
static

Definition at line 133 of file bytestream.h.

Referenced by aasc_decode_frame(), adpcm_decode_frame(), aic_decode_frame(), alac_set_info(), apng_probe(), avi_extract_stream_metadata(), avpriv_exif_decode_ifd(), bethsoftvid_decode_frame(), bfi_decode_frame(), bmp_decode_frame(), cbs_h2645_split_fragment(), cdg_decode_frame(), cfhd_decode(), chunky2chunky(), clv_decode_frame(), cook_decode_init(), daala_header(), dca_core_filter(), dds_decode(), decode_aiff_header(), decode_byte_vertical_delta(), decode_byterun2(), decode_delta_d(), decode_delta_e(), decode_delta_j(), decode_delta_l(), decode_dlta(), decode_extradata_ps_mp4(), decode_frame(), decode_frame_headers(), decode_header(), decode_i2_frame(), decode_init(), decode_interframe_v4(), decode_interframe_v4a(), decode_long_vertical_delta(), decode_long_vertical_delta2(), decode_move(), decode_p_frame(), decode_short_horizontal_delta(), decode_short_vertical_delta(), decode_short_vertical_delta2(), decode_type1(), decode_type2(), decode_wave_header(), decompress_2(), decompress_5(), decompress_68(), decompress_chunks_thread(), dfa_decode_frame(), dpcm_decode_frame(), dxv_decode(), ff_amf_get_field_value(), ff_amf_tag_size(), ff_av1_packet_split(), ff_canopus_parse_info_tag(), ff_dca_lbr_parse(), ff_h2645_packet_split(), ff_hevc_decode_extradata(), ff_lzw_decode_init(), ffat_init_encoder(), find_tracked_method(), flic_decode_frame_15_16BPP(), flic_decode_frame_24BPP(), flic_decode_frame_8BPP(), g2m_decode_frame(), gdv_decode_frame(), generate_fake_vps(), get_anim_duration(), gif_decode_frame(), handle_notify(), hap_decode(), hap_parse_frame_header(), hapqa_extract(), hevc_extradata_to_annexb(), hevc_mp4toannexb_filter(), hnm_update_palette(), hq_hqa_decode_frame(), ipvideo_decode_format_06_opcodes(), ipvideo_decode_format_10_opcodes(), ipvideo_decode_frame(), jpeg2000_decode_frame(), jpeg2000_read_main_headers(), LLVMFuzzerTestOneInput(), load_buffer(), lz_unpack(), magy_decode_frame(), mimic_decode_frame(), mjpeg_decode_app(), mkv_parse_video_projection(), mm_decode_frame(), mm_decode_inter(), msrle_decode_frame(), mss2_decode_frame(), mss3_decode_frame(), mss4_decode_frame(), mvc_decode_frame(), ogm_header(), on2avc_decode_frame(), paf_video_decode(), parse_opus_ts_header(), pcm_bluray_decode_frame(), pcm_dvd_decode_samples(), pcx_decode_frame(), pix_decode_frame(), pixlet_decode_frame(), piz_uncompress(), qdm2_decode_init(), qdmc_decode_init(), qtrle_decode_frame(), read_connect(), read_number_result(), redspark_read_header(), rle_unpack(), roq_decode_frame(), rpza_decode_frame(), rscc_decode_frame(), rtmp_send_packet(), rtmp_write(), send_invoke_response(), smc_decode_frame(), tdsc_decode_frame(), tgq_decode_frame(), tiff_unpack_strip(), tm2_read_stream(), tscc2_decode_frame(), txd_decode_frame(), ulti_decode_frame(), unpack_intraframe(), vmd_decode(), vp8_lossy_decode_alpha(), vp9_superframe_split_filter(), vqa_decode_chunk(), vqa_decode_frame(), wavpack_decode_block(), webp_decode_frame(), xan_decode_frame(), xan_unpack(), xan_wc3_decode_frame(), and xwd_decode_frame().

static av_always_inline void bytestream2_init_writer ( PutByteContext p,
uint8_t buf,
int  buf_size 
)
static
static av_always_inline unsigned int bytestream2_get_bytes_left ( GetByteContext g)
static

Definition at line 154 of file bytestream.h.

Referenced by adpcm_decode_frame(), amf_get_field_value2(), amf_tag_skip(), apng_probe(), bfi_decode_frame(), cbs_h2645_split_fragment(), cfhd_decode(), check_header_variable(), codec2subblock(), cook_decode_init(), dds_decode(), decode(), decode0(), decode_0(), decode_6(), decode_aiff_header(), decode_bdlt(), decode_byterun(), decode_byterun2(), decode_dds1(), decode_delta_d(), decode_delta_e(), decode_delta_j(), decode_delta_l(), decode_dlta(), decode_dsw1(), decode_extradata_ps_mp4(), decode_format80(), decode_frame(), decode_frame_common(), decode_header(), decode_hextile(), decode_init(), decode_kfrm(), decode_long_vertical_delta2(), decode_move(), decode_mvc1(), decode_mvc2(), decode_p_block(), decode_plane(), decode_rgb8(), decode_rgbn(), decode_rle(), decode_rle16(), decode_rle_bpp2(), decode_rle_bpp4(), decode_short_horizontal_delta(), decode_short_vertical_delta2(), decode_tdlt(), decode_tsw1(), decode_type1(), decode_type2(), decode_wave_header(), decode_wdlt(), decode_zlib(), decompress(), decompress_2(), decompress_5(), decompress_68(), dfa_decode_frame(), dxv_decode(), dxv_decompress_cgo(), dxv_decompress_dxt5(), dxv_decompress_raw(), expand_rle_row16(), expand_rle_row8(), extract_header(), ff_amf_tag_size(), ff_av1_packet_split(), ff_dca_lbr_parse(), ff_exif_decode_ifd(), ff_h2645_packet_split(), ff_hap_parse_section_header(), ff_hevc_decode_extradata(), ff_lzf_uncompress(), ff_lzw_decode_tail(), ff_snappy_peek_uncompressed_length(), ff_snappy_uncompress(), ff_tadd_bytes_metadata(), ff_tadd_doubles_metadata(), ff_tadd_long_metadata(), ff_tadd_rational_metadata(), ff_tadd_shorts_metadata(), ff_tadd_string_metadata(), ff_tdecode_header(), ffat_init_encoder(), fill_ltable(), flic_decode_frame_15_16BPP(), flic_decode_frame_24BPP(), flic_decode_frame_8BPP(), g2m_decode_frame(), g2m_load_cursor(), gdv_decode_frame(), generate_fake_vps(), get_anim_duration(), get_coc(), get_cod(), get_cox(), get_opcodes(), get_poc(), get_qcc(), get_qcx(), get_siz(), get_sot(), gif_parse_next_image(), gif_read_extension(), gif_read_header1(), gif_read_image(), handle_notify(), hap_decode(), hap_parse_decode_instructions(), hap_parse_frame_header(), hevc_mp4toannexb_filter(), hq_hqa_decode_frame(), huf_decode(), huf_uncompress(), huf_unpack_enc_table(), ipvideo_decode_block_opcode_0x7(), ipvideo_decode_block_opcode_0x8(), ipvideo_decode_block_opcode_0x9(), ipvideo_decode_block_opcode_0xA(), ipvideo_decode_block_opcode_0xD(), ipvideo_decode_format_06_opcodes(), ipvideo_decode_format_10_opcodes(), ipvideo_decode_format_11_opcodes(), jp2_find_codestream(), jpeg2000_decode_frame(), jpeg2000_decode_packet(), jpeg2000_read_main_headers(), kmvc_decode_inter_8x8(), kmvc_decode_intra_8x8(), lz_unpack(), mm_decode_inter(), mm_decode_intra(), msrle_decode_8_16_24_32(), msrle_decode_pal4(), mss3_decode_frame(), mss4_decode_frame(), ogm_header(), old_codec1(), old_codec37(), old_codec47(), on2avc_decode_frame(), op(), opcode_0xf7(), opcode_0xf8(), paf_video_decode(), pcx_decode_frame(), pcx_palette(), pcx_rle_decode(), pix_decode_frame(), pixlet_decode_frame(), png_decode_idat(), process_block(), qdm2_decode_init(), qdmc_decode_init(), qpeg_decode_inter(), qpeg_decode_intra(), qtrle_decode_16bpp(), qtrle_decode_24bpp(), qtrle_decode_2n4bpp(), qtrle_decode_32bpp(), qtrle_decode_8bpp(), read_connect(), read_frame_header(), read_high_coeffs(), read_rle_sgi(), read_uncompressed_sgi(), rle_decode(), rle_uncompress(), rle_unpack(), roqvideo_decode_frame(), rpza_decode_stream(), rscc_decode_frame(), set_palette(), smc_decode_stream(), targa_decode_rle(), tdsc_decode_frame(), tdsc_decode_tiles(), tgq_decode_mb(), tiff_decode_tag(), tiff_unpack_strip(), tscc2_decode_frame(), txd_decode_frame(), ulti_decode_frame(), vb_decode_framedata(), vmd_decode(), vqa_decode_chunk(), wavpack_decode_block(), webp_decode_frame(), xan_decode_chroma(), xan_decode_frame(), xan_unpack(), xan_unpack_luma(), xan_wc3_decode_frame(), and xwd_decode_frame().

static av_always_inline unsigned int bytestream2_get_bytes_left_p ( PutByteContext p)
static
static av_always_inline void bytestream2_skip ( GetByteContext g,
unsigned int  size 
)
static

Definition at line 164 of file bytestream.h.

Referenced by adpcm_decode_frame(), amf_get_field_value2(), amf_tag_skip(), apng_probe(), avi_extract_stream_metadata(), bfi_decode_frame(), cbs_h2645_split_fragment(), cdg_decode_frame(), clv_decode_frame(), daala_header(), dca_core_filter(), dds_decode(), decode_0(), decode_aiff_header(), decode_byterun(), decode_byterun2(), decode_delta_j(), decode_dlta(), decode_extradata_ps_mp4(), decode_fctl_chunk(), decode_fint(), decode_frame(), decode_frame_common(), decode_frame_headers(), decode_header(), decode_iccp_chunk(), decode_idat_chunk(), decode_ihdr_chunk(), decode_interframe_v4(), decode_interframe_v4a(), decode_kfrm(), decode_long_vertical_delta(), decode_mous(), decode_move(), decode_mpos(), decode_mvc2(), decode_phys_chunk(), decode_plane(), decode_plte_chunk(), decode_rle(), decode_rle16(), decode_trns_chunk(), decode_type1(), decode_type2(), decode_wave_header(), decompress(), decompress_i(), decompress_p(), dfa_decode_frame(), dxv_decode(), dxv_decompress_cocg(), dxv_decompress_opcodes(), dxv_decompress_yo(), extract_header(), ff_av1_packet_split(), ff_canopus_parse_info_tag(), ff_dca_lbr_parse(), ff_h2645_packet_split(), ff_hevc_decode_extradata(), ff_lzw_decode_tail(), ffat_init_encoder(), flic_decode_frame_15_16BPP(), flic_decode_frame_24BPP(), flic_decode_frame_8BPP(), g2m_decode_frame(), g2m_load_cursor(), generate_fake_vps(), get_anim_duration(), get_nb_samples(), get_opcodes(), handle_notify(), hevc_extradata_to_annexb(), hq_hqa_decode_frame(), hqa_decode_frame(), huf_uncompress(), huf_unpack_enc_table(), ipvideo_decode_format_10_opcodes(), ipvideo_decode_format_11_opcodes(), jp2_find_codestream(), jpeg2000_decode_frame(), jpeg2000_decode_packet(), jpeg2000_decode_packets(), jpeg2000_flush(), jpeg2000_read_main_headers(), magy_decode_frame(), mimic_decode_frame(), mkv_parse_video_projection(), mm_decode_pal(), msrle_decode_8_16_24_32(), msrle_decode_pal4(), mss3_decode_frame(), mss4_decode_frame(), ogm_header(), old_codec37(), old_codec47(), on2avc_decode_frame(), paf_video_decode(), parse_opus_ts_header(), parse_palette(), parse_pixel_format(), pcm_bluray_decode_frame(), pix_decode_frame(), pix_decode_header(), pixlet_decode_frame(), png_decode_idat(), process_frame_obj(), qdm2_decode_init(), qtrle_decode_2n4bpp(), qtrle_decode_frame(), read_frame_header(), read_highpass(), read_uncompressed_sgi(), rle_uncompress(), rscc_decode_frame(), smc_decode_stream(), tdsc_decode_frame(), tdsc_decode_tiles(), tdsc_load_cursor(), tdsc_parse_dtsm(), tdsc_parse_tdsf(), tgq_decode_frame(), tgq_decode_mb(), tiff_decode_tag(), tm2_read_stream(), tscc2_decode_frame(), txd_decode_frame(), vmd_decode(), vqa_decode_chunk(), wavpack_decode_block(), webp_decode_frame(), xan_decode_chroma(), xan_decode_frame(), and xan_unpack_luma().

static av_always_inline void bytestream2_skipu ( GetByteContext g,
unsigned int  size 
)
static
static av_always_inline void bytestream2_skip_p ( PutByteContext p,
unsigned int  size 
)
static
static av_always_inline int bytestream2_tell ( GetByteContext g)
static
static av_always_inline int bytestream2_tell_p ( PutByteContext p)
static
static av_always_inline int bytestream2_size ( GetByteContext g)
static

Definition at line 198 of file bytestream.h.

Referenced by get_siz(), smc_decode_stream(), and xan_decode_frame_type0().

static av_always_inline int bytestream2_size_p ( PutByteContext p)
static

Definition at line 203 of file bytestream.h.

static av_always_inline int bytestream2_seek ( GetByteContext g,
int  offset,
int  whence 
)
static
static av_always_inline int bytestream2_seek_p ( PutByteContext p,
int  offset,
int  whence 
)
static
static av_always_inline unsigned int bytestream2_get_buffer ( GetByteContext g,
uint8_t dst,
unsigned int  size 
)
static
static av_always_inline unsigned int bytestream2_get_bufferu ( GetByteContext g,
uint8_t dst,
unsigned int  size 
)
static
static av_always_inline unsigned int bytestream2_put_buffer ( PutByteContext p,
const uint8_t src,
unsigned int  size 
)
static
static av_always_inline unsigned int bytestream2_put_bufferu ( PutByteContext p,
const uint8_t src,
unsigned int  size 
)
static

Definition at line 297 of file bytestream.h.

static av_always_inline void bytestream2_set_buffer ( PutByteContext p,
const uint8_t  c,
unsigned int  size 
)
static

Definition at line 306 of file bytestream.h.

static av_always_inline void bytestream2_set_bufferu ( PutByteContext p,
const uint8_t  c,
unsigned int  size 
)
static

Definition at line 320 of file bytestream.h.

static av_always_inline unsigned int bytestream2_get_eof ( PutByteContext p)
static

Definition at line 328 of file bytestream.h.

Referenced by decompress(), tiff_unpack_strip(), and wavpack_encode_block().

static av_always_inline unsigned int bytestream2_copy_bufferu ( PutByteContext p,
GetByteContext g,
unsigned int  size 
)
static

Definition at line 333 of file bytestream.h.

Referenced by bytestream2_copy_buffer().

static av_always_inline unsigned int bytestream2_copy_buffer ( PutByteContext p,
GetByteContext g,
unsigned int  size 
)
static

Definition at line 343 of file bytestream.h.

static av_always_inline unsigned int bytestream_get_buffer ( const uint8_t **  b,
uint8_t dst,
unsigned int  size 
)
static

Definition at line 359 of file bytestream.h.

Referenced by flac_read_header(), pcm_decode_frame(), and rtmp_write().

static av_always_inline void bytestream_put_buffer ( uint8_t **  b,
const uint8_t src,
unsigned int  size 
)
static

Variable Documentation

uint64_t_TMPL le64

Definition at line 87 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

uint64_t_TMPL AV_RL64
uint64_t_TMPL AV_WL64 unsigned int_TMPL le32

Definition at line 87 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_RL32

Definition at line 87 of file bytestream.h.

Referenced by a64multi_encode_init(), aasc_decode_frame(), aasc_decode_init(), acm_read_header(), add_input_streams(), adpcm_decode_init(), aea_read_probe(), aix_probe(), ape_probe(), ast_probe(), atrac9_decode_init(), av_lfg_init(), av_read_image_line2(), av_twofish_init(), av_write_image_line2(), av_xtea_le_init(), avformat_transfer_internal_stream_timing_info(), avi_probe(), avi_read_header(), avi_read_idx1(), avr_probe(), bfi_probe(), bmp_probe(), celt_header(), check_checksum(), check_slice_size(), cin_probe(), cine_read_probe(), cllc_decode_frame(), clv_decode_init(), cmv_decode_frame(), constant_color(), dds_probe(), decode_block(), decode_dlta(), decode_flush(), decode_frame(), decode_frame_common(), decode_header_trees(), decode_i_frame(), decode_init(), decode_p_frame(), decode_plane(), decode_plane10(), decode_simple_internal(), dfa_probe(), dfa_read_packet(), dirac_probe(), dpx_probe(), draw_curves(), draw_dot(), dss_probe(), dump_paramchange(), dump_sidedata(), dxa_read_packet(), dxt1_block_internal(), dxt3_block_internal(), dxt5_block_internal(), dxv_decompress_cgo(), dxv_decompress_cocg(), dxv_decompress_dxt1(), dxv_decompress_dxt5(), dxv_decompress_yo(), ea_probe(), ea_read_packet(), encode_init(), epaf_probe(), exr_probe(), ff_dv_frame_profile(), ff_flac_is_extradata_valid(), ff_get_packet_palette(), ff_get_wav_header(), ff_h263_decode_frame(), ff_h263_decode_init(), ff_h263_decode_picture_header(), ff_mjpeg_decode_init(), ff_mjpeg_decode_sos(), ff_mms_asf_header_parser(), ff_mov_read_stsd_entries(), ff_mpeg4_decode_picture_header(), ff_mpeg4_workaround_bugs(), ff_rm_read_mdpr_codecdata(), ff_rtp_send_h263_rfc2190(), ff_update_duplicate_context(), ff_wv_parse_header(), filter_frame(), find_index_range(), flic_decode_init(), flic_probe(), flic_read_header(), flic_read_packet(), flush(), fourxm_probe(), fourxm_read_header(), fourxm_read_packet(), fsb_probe(), gdv_read_probe(), genh_probe(), get_chunk_header(), get_opcodes(), get_packet_header(), get_qt_codec(), get_quant(), get_slice_offset(), get_tcp_server_response(), handle_packet_stream_changing_type(), hnm_probe(), hqx_decode_frame(), ico_write_packet(), idcin_probe(), idct_mb(), iff_probe(), init_duplicate_context(), is_animated_webp_packet(), is_pes_stream(), ivf_write_header(), lag_decode_arith_plane(), lag_decode_frame(), libcelt_dec_init(), lvf_probe(), lxf_read_header(), m101_decode_frame(), main(), matroska_parse_tracks(), matroska_parse_wavpack(), metasound_decode_init(), mjpeg_decode_app(), mjpega_dump_header(), mkv_write_attachments(), mkv_write_block(), mkv_write_codecprivate(), mov_parse_stsd_subtitle(), mov_probe(), mov_read_header(), mov_skip_multiple_stsd(), mov_switch_root(), mov_write_audio_tag(), mov_write_dops_tag(), mp3_write_audio_packet(), mpc8_probe(), mpeg_decode_frame(), mpeg_decode_init(), mpeg_decode_slice(), mpegts_set_stream_info(), mpegts_write_packet_internal(), msrle_decode_init(), mtaf_probe(), multiswap_init(), new_output_stream(), nsv_probe(), nuv_packet(), nuv_read_dts(), ogm_dshow_header(), parse_media_type(), parse_mpeg1waveformatex(), parse_strk(), parse_vtrk(), parse_waveformatex(), pmp_probe(), pmt_cb(), print_pkt_side_data(), probe(), probe_bfstm(), process_ipmovie_chunk(), prores_encode_init(), psd_probe(), qcp_probe(), r3d_probe(), raw_decode(), raw_encode(), raw_init_decoder(), read32(), read_header(), read_packet(), ripemd128_transform(), ripemd160_transform(), ripemd256_transform(), ripemd320_transform(), rl2_decode_init(), rm_read_audio_stream_info(), roq_probe(), roq_read_packet(), rsd_probe(), rtmp_packet_read_one_chunk(), rtmpe9_sig(), rtp_asf_fix_header(), sdr2_probe(), set_direct_mv(), siff_probe(), skeleton_header(), smacker_probe(), smacker_read_packet(), smka_decode_frame(), smush_read_probe(), smvjpeg_decode_init(), sol_probe(), sox_probe(), speex_header(), srt_decode_frame(), srt_write_packet(), str_probe(), str_read_header(), str_read_packet(), svq3_decode_slice_header(), tb_unreliable(), tf_h(), tf_RS(), tgq_decode_frame(), tgv_decode_frame(), thp_probe(), tm2_read_header(), tmv_probe(), tta_check_crc(), tta_decode_init(), tta_probe(), tta_read_header(), twofish_decrypt(), twofish_encrypt(), txd_probe(), udp_read(), v410_decode_frame(), vble_decode_frame(), vc1t_probe(), vcr2_init_sequence(), vid_probe(), vmd_read_header(), vmdvideo_decode_init(), vorbis_header(), vpk_probe(), vqf_probe(), wavesynth_decode(), wavesynth_parse_extradata(), wavpack_decode_frame(), wc3_probe(), wmavoice_decode_init(), write_packet(), write_sm_data(), wsaud_probe(), wsaud_read_packet(), wtvfile_open2(), wv_probe(), xa_probe(), xmv_fetch_video_packet(), xmv_probe(), xmv_process_packet_header(), xtea_le_crypt_ecb(), xvid_encode_init(), and zero12v_decode_frame().

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL le24

Definition at line 87 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_RL24
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL le16

Definition at line 87 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_RL16

Definition at line 87 of file bytestream.h.

Referenced by acm_read_header(), adpcm_decode_init(), ape_decode_init(), ape_probe(), av_read_image_line2(), av_write_image_line2(), avpriv_dca_convert_bitstream(), avs_decode_frame(), blend_line16(), blend_pixel16(), cin_decode_lzss(), cinaudio_decode_frame(), cine_read_probe(), cinvideo_decode_frame(), cmv_process_header(), cpia_decode_frame(), decode_audio_s16(), decode_frame(), decode_init(), decode_p_frame(), dfa_decode_frame(), dts_probe(), dxt1_block_internal(), dxt3_block_internal(), dxt5_block_internal(), dxv_decompress_cgo(), dxv_decompress_cocg(), encode_gbrp10(), encode_gbrp12(), encode_rgb48_10bit(), ff_get_wav_header(), ff_mlp_checksum16(), ff_mlp_read_major_sync(), ff_mms_asf_header_parser(), ff_opus_parse_extradata(), ff_rtp_send_h263_rfc2190(), ff_wv_parse_header(), fic_decode_frame(), filter_slice(), flic_decode_frame_15_16BPP(), flic_decode_init(), flic_probe(), flic_read_header(), flic_read_packet(), frm_read_probe(), gamma_convert(), get_chunk_header(), get_tcp_server_response(), gif_probe(), gif_read_ext(), hnm_decode_frame(), ico_write_packet(), interpolate_bilinear16(), ipmovie_read_header(), ipvideo_decode_frame(), libopus_decode_init(), lxf_read_header(), matroska_parse_tracks(), matroska_parse_wavpack(), mm_decode_frame(), mov_write_dops_tag(), msvideo1_decode_16bit(), mtv_probe(), mxf_write_d10_audio_packet(), mxpeg_decode_mxm(), nc_probe(), nsv_probe(), ogm_dshow_header(), opus_header(), p010LEToUV_c(), p010LEToY_c(), p016LEToUV_c(), paf_audio_decode(), parse(), parse_mpeg1waveformatex(), pcx_probe(), pick_color16(), pictor_probe(), planarCopyWrapper(), probe(), probe_bfstm(), process_ipmovie_chunk(), psd_probe(), ptx_decode_frame(), read16(), read_ayuv64le_A_c(), read_ayuv64le_UV_c(), read_ayuv64le_Y_c(), read_gab2_sub(), read_packet(), read_ya16le_alpha_c(), read_ya16le_gray_c(), rgb48Toxyz12(), rgba64leToA_c(), rl2_decode_init(), roq_probe(), roq_read_header(), roq_read_packet(), rtmp_packet_read_one_chunk(), s337m_probe(), skeleton_header(), spdif_header_dts(), str_probe(), str_read_packet(), tgv_decode_frame(), tgv_decode_inter(), tmv_probe(), tqi_decode_frame(), truemotion1_decode_header(), truemotion2rt_decode_header(), tta_probe(), tta_write_header(), vmd_decode(), vmd_probe(), vmd_read_header(), voc_probe(), vp8_decode_frame_header(), vp8_handle_packet(), vqa_decode_init(), wma_decode_init(), ws_snd_decode_frame(), wsaud_probe(), wsaud_read_header(), wsaud_read_packet(), wsvqa_read_header(), wsvqa_read_packet(), wtvfile_open2(), wv_probe(), xa_probe(), xan_decode_chroma(), xan_wc3_decode_frame(), xyz12Torgb48(), yop_probe(), and yop_read_header().

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL be64

Definition at line 87 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_RB64
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL be32

Definition at line 87 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_RB32

Definition at line 87 of file bytestream.h.

Referenced by a64_write_header(), aa_probe(), acm_probe(), adts_aac_probe(), adts_aac_read_packet(), adx_read_header(), aic_decode_header(), aiff_read_header(), aix_probe(), analyze_chunk(), apng_find_chunk(), apng_read_header(), ast_probe(), av_base64_encode(), av_blowfish_crypt(), av_cast5_init(), av_encryption_info_get_side_data(), av_encryption_init_info_get_side_data(), av_packet_split_side_data(), av_read_image_line2(), av_tea_init(), av_write_image_line2(), av_xtea_init(), avpriv_dca_convert_bitstream(), avpriv_find_start_code(), avs2_probe(), avui_decode_frame(), brender_read_probe(), cdxl_read_packet(), cdxl_read_probe(), check(), check_hevc_startcode(), check_tag(), cinepak_decode_codebook(), cinepak_decode_vectors(), clv_decode_init(), cmv_decode_frame(), dca_parse_params(), dcadec_decode_frame(), decipher(), decode_13(), decode_dvd_subtitles(), decode_entropy_coded_image(), decode_frame(), decode_init(), decode_nal_units(), decode_picture_header(), decode_tiles(), decrypt_init(), detect_stream_specific(), dirac_combine_frame(), dirac_decode_frame(), dirac_probe(), dnxhd_decode_header(), dnxhd_probe(), dpx_probe(), dv_extract_timecode(), dv_probe(), dvd_nav_parse(), dvdsub_parse(), dxa_read_packet(), dxva2_vc1_decode_slice(), ea_read_packet(), encipher(), encode_hclr(), encode_hlit(), encode_styl(), ff_adx_decode_header(), ff_avc_write_annexb_extradata(), ff_check_h264_startcode(), ff_decklink_set_format(), ff_dnxhd_parse_header_prefix(), ff_hevc_annexb2mp4(), ff_isom_write_avcc(), ff_isom_write_hvcc(), ff_mjpeg_decode_frame(), ff_mjpeg_decode_sof(), ff_mov_write_packet(), ff_mss12_decode_init(), ff_rtmp_packet_dump(), ff_rtp_send_vc2hq(), ff_rtsp_tcp_write_packet(), ff_srtp_decrypt(), ff_srtp_encrypt(), ffat_create_decoder(), fic_decode_frame(), fill_data_min_max(), film_probe(), film_read_header(), find_headers_search(), find_index_range(), fits_decode_frame(), flac_decode_frame(), flush_packet(), gen_pong(), get_chunk(), get_generic_seed(), get_slice_offset(), h263_handle_packet(), h264_mp4toannexb_init(), handle_chunk_size(), handle_set_peer_bw(), handle_window_ack_size(), hevc_mp4toannexb_init(), id3v2_check_write_tag(), j2k_probe(), jpeg_probe(), jpegls_probe(), libopenjpeg_decode_frame(), libshine_encode_frame(), lmlm4_probe(), main(), matroska_parse_prores(), matroska_probe(), mjpeg_decode_app(), mkv_write_block(), mlp_get_major_sync_size(), mlp_parse(), mlp_thd_probe(), mov_finalize_stsd_codec(), mov_parse_stsd_data(), mov_parse_vc1_frame(), mov_probe(), mov_read_dops(), mov_read_packet(), mov_read_udta_string(), mov_rewrite_dvd_sub_extradata(), mov_text_decode_frame(), mov_write_avid_tag(), mov_write_dvc1_structs(), mp3_header_decompress(), mp3_read_probe(), mp3_write_audio_packet(), mp3lame_encode_frame(), mpeg_decode_frame(), mpeg_parse_packet(), mpegps_read_pes_header(), mpegts_check_bitstream(), mpegts_prefix_m2ts_header(), msf_probe(), mv_probe(), mxf_parse_dnxhd_frame(), mxf_read_packet(), mxf_write_header(), nc_probe(), nprobe(), nsp_probe(), nut_probe(), ogg_init(), old_dirac_header(), parse_master(), parse_optional_info(), parse_pcr(), probe(), prompeg_write(), qdm2_parse_config(), read32(), read_diff_float_data(), read_extra_header(), read_header(), read_probe(), redspark_probe(), resync(), rl2_probe(), rtcp_parse_packet(), rtmp_packet_read_one_chunk(), rtmp_receive_hs_packet(), rtp_parse_one_packet(), rtp_parse_packet_internal(), rv10_decode_init(), rv34_parse(), s302m_parse_frame_header(), sds_probe(), sdx_probe(), send_picture(), sha1_transform(), shn_probe(), smush_read_packet(), sox_probe(), spdif_header_dts(), sunrast_decode_frame(), sunrast_probe(), svq3_decode_init(), swf_read_packet(), tea_crypt_ecb(), thp_probe(), thp_read_packet(), tiff_probe(), twinvq_decode_init(), ty_probe(), unpack_parse_unit(), vaapi_vc1_decode_slice(), vc1_decode_frame(), vc1_decode_init(), vc1_probe(), vc2hq_handle_frame_fragment(), vmdaudio_decode_frame(), vp8_header(), vp9_decode_frame(), vqf_read_header(), webp_probe(), write_hint_packets(), write_palette(), write_section_data(), wsd_probe(), wsvqa_probe(), wsvqa_read_header(), wsvqa_read_packet(), xtea_crypt_ecb(), and xwd_probe().

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL be24

Definition at line 87 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_RB24
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_WB24 unsigned int_TMPL be16

Definition at line 87 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_WB24 unsigned int_TMPL AV_RB16

Definition at line 87 of file bytestream.h.

Referenced by aac_adtstoasc_filter(), ac3_decode_frame(), adts_aac_probe(), adts_aac_read_packet(), adx_decode(), adx_decode_frame(), adx_probe(), adx_read_packet(), aic_decode_header(), analyze(), aptx_decode_samples(), ast_probe(), av_read_image_line2(), av_write_image_line2(), avpriv_copy_bits(), avpriv_dca_convert_bitstream(), avpriv_split_xiph_headers(), avr_probe(), bmp_probe(), cbs_jpeg_assemble_fragment(), cbs_jpeg_split_fragment(), cdxl_decode_frame(), cdxl_read_packet(), cdxl_read_probe(), check_header(), cinepak_decode(), cinepak_decode_frame(), cinepak_predecode_check(), cmap_read_palette(), convert_input(), cook_parse(), decode_13(), decode_dvd_subtitles(), decode_frame(), decode_frame_header(), decode_hlit(), decode_hybrid(), decode_init(), decode_picture_header(), decode_slice_thread(), decode_styl(), decrypt_init(), dnxhd_decode_header(), dnxhd_probe(), dvbsub_decode(), dvbsub_init_decoder(), dvbsub_parse(), dvbsub_parse_object_segment(), dvbsub_parse_page_segment(), dvbsub_parse_region_segment(), dvbsub_probe(), dvdsub_parse(), dxa_probe(), encode_gbrp10(), encode_gbrp12(), encode_rgb48_10bit(), encode_styl(), enqueue_packet(), extract_header(), ff_adx_decode_header(), ff_avc_write_annexb_extradata(), ff_els_decoder_init(), ff_h263_handle_packet(), ff_h264_decode_extradata(), ff_h264_handle_aggregated_packet(), ff_init_range_decoder(), ff_mov_write_packet(), ff_parse_pes_pts(), ff_rdt_parse_header(), ff_rtp_send_jpeg(), ff_rtsp_tcp_read_packet(), ff_srtp_decrypt(), ff_srtp_encrypt(), ff_tdecode_header(), fill_data_min_max(), film_read_header(), find_headers_search(), find_new_headers(), fits_decode_frame(), fits_encode_frame(), flac_probe(), flush_packet(), flv_write_packet(), get16(), get_video_private_data(), h261_probe(), h264_extradata_to_annexb(), handle_packet(), handle_user_control(), hqx_decode_frame(), import_palette(), ingenient_probe(), is_extra(), jpeg_parse_packet(), jpeg_probe(), lag_rac_refill(), latm_check_bitstream(), latm_write_packet(), lmlm4_probe(), matroska_parse_block(), matroska_parse_tracks(), mjpeg2jpeg_filter(), mjpega_dump_header(), mkv_check_bitstream(), mlp_thd_probe(), mov2textsub(), mov_check_bitstream(), mov_parse_stsd_data(), mov_read_dops(), mov_read_targa_y216(), mov_text_color_cb(), mov_text_decode_frame(), mov_text_style_cb(), mov_text_tx3g(), mpa_robust_parse_rtp_header(), mpegts_get_pcr(), mpegts_push_data(), mpegts_read_header(), mpegts_write_packet_internal(), mss2_decode_frame(), mv_probe(), mxf_read_local_tags(), mxg_read_packet(), mxpeg_decode_app(), mxpeg_decode_com(), oma_read_header(), opus_find_frame_end(), p010BEToUV_c(), p010BEToY_c(), p016BEToUV_c(), planarCopyWrapper(), probe(), prompeg_write(), psd_probe(), pva_check(), qcelp_decode_frame(), qdm2_parse_config(), qdm2_parse_subpacket(), qdraw_probe(), read16(), read_access_unit(), read_ya16be_alpha_c(), read_ya16be_gray_c(), rgb48Toxyz12(), rgba64beToA_c(), rtcp_parse_packet(), rtp_parse_mp4_au(), rtp_parse_one_packet(), rtp_parse_packet_internal(), samplecpy(), sap_fetch_packet(), sap_read_header(), sctp_write(), set_codec_str(), sgi_probe(), sgi_rle_encode(), spdif_header_dts(), sup_probe(), sup_read_packet(), sup_write_packet(), unpack(), vc2hq_handle_frame_fragment(), vp6_parse_header(), vp8_handle_packet(), vp8_header(), vp9_handle_packet(), write_hint_packets(), write_section_data(), xiph_handle_packet(), xyz12Torgb48(), and yop_probe().

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_WB24 unsigned int_TMPL AV_WB16 unsigned int_TMPL byte
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_WL16 uint64_t_TMPL AV_WB64 unsigned int_TMPL AV_WB32 unsigned int_TMPL AV_WB24 unsigned int_TMPL AV_WB16 unsigned int_TMPL AV_RB8