FFmpeg
Loading...
Searching...
No Matches
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 int bytestream2_get_bytes_left (const GetByteContext *g)
 
static av_always_inline int bytestream2_get_bytes_left_p (const 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 (const GetByteContext *g)
 
static av_always_inline int bytestream2_tell_p (const PutByteContext *p)
 
static av_always_inline int bytestream2_size (const GetByteContext *g)
 
static av_always_inline int bytestream2_size_p (const 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

◆ DEF

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

Definition at line 42 of file bytestream.h.

◆ bytestream2_get_ne16

#define bytestream2_get_ne16   bytestream2_get_le16

◆ bytestream2_get_ne24

#define bytestream2_get_ne24   bytestream2_get_le24

Definition at line 120 of file bytestream.h.

◆ bytestream2_get_ne32

#define bytestream2_get_ne32   bytestream2_get_le32

Definition at line 121 of file bytestream.h.

Referenced by qtrle_decode_24bpp(), and qtrle_decode_32bpp().

◆ bytestream2_get_ne64

#define bytestream2_get_ne64   bytestream2_get_le64

Definition at line 122 of file bytestream.h.

Referenced by qtrle_decode_32bpp().

◆ bytestream2_get_ne16u

#define bytestream2_get_ne16u   bytestream2_get_le16u

Definition at line 123 of file bytestream.h.

◆ bytestream2_get_ne24u

#define bytestream2_get_ne24u   bytestream2_get_le24u

Definition at line 124 of file bytestream.h.

◆ bytestream2_get_ne32u

#define bytestream2_get_ne32u   bytestream2_get_le32u

Definition at line 125 of file bytestream.h.

◆ bytestream2_get_ne64u

#define bytestream2_get_ne64u   bytestream2_get_le64u

Definition at line 126 of file bytestream.h.

◆ bytestream2_put_ne16

#define bytestream2_put_ne16   bytestream2_put_le16

Definition at line 127 of file bytestream.h.

Referenced by pcm_bluray_encode_frame().

◆ bytestream2_put_ne24

#define bytestream2_put_ne24   bytestream2_put_le24

Definition at line 128 of file bytestream.h.

Referenced by pcm_bluray_encode_frame().

◆ bytestream2_put_ne32

#define bytestream2_put_ne32   bytestream2_put_le32

Definition at line 129 of file bytestream.h.

◆ bytestream2_put_ne64

#define bytestream2_put_ne64   bytestream2_put_le64

Definition at line 130 of file bytestream.h.

◆ bytestream2_peek_ne16

#define bytestream2_peek_ne16   bytestream2_peek_le16

Definition at line 131 of file bytestream.h.

Referenced by ff_h264_sei_decode().

◆ bytestream2_peek_ne24

#define bytestream2_peek_ne24   bytestream2_peek_le24

Definition at line 132 of file bytestream.h.

◆ bytestream2_peek_ne32

#define bytestream2_peek_ne32   bytestream2_peek_le32

Definition at line 133 of file bytestream.h.

◆ bytestream2_peek_ne64

#define bytestream2_peek_ne64   bytestream2_peek_le64

Definition at line 134 of file bytestream.h.

Function Documentation

◆ bytestream2_init()

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

Definition at line 137 of file bytestream.h.

Referenced by aasc_decode_frame(), adpcm_decode_frame(), aic_decode_frame(), alac_set_info(), apng_probe(), apv_probe(), apv_read_header(), av_exif_parse_buffer(), av_smpte_291m_anc_8bit_extract_cta_708(), avi_extract_stream_metadata(), bethsoftvid_decode_frame(), bfi_decode_frame(), bmp_decode_frame(), build_huffman(), cbs_h264_split_fragment(), cbs_h265_split_fragment(), cbs_h266_split_fragment(), cbs_lcevc_split_fragment(), cdg_decode_frame(), cfhd_decode(), chunky2chunky(), clv_decode_frame(), cook_decode_init(), cri_decode_frame(), dca_core_filter(), dds_decode(), decode_aiff_header(), decode_anim(), decode_byte_vertical_delta(), decode_byterun2(), decode_delta_d(), decode_delta_e(), decode_delta_j(), decode_delta_l(), decode_dlta(), decode_extradata(), decode_extradata_ps_mp4(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame_common(), decode_frame_headers(), decode_frame_lscr(), decode_header(), decode_i2_frame(), decode_init(), decode_inter(), decode_interframe_v4(), decode_interframe_v4a(), decode_intra(), decode_long_vertical_delta(), decode_long_vertical_delta2(), decode_move(), decode_mvdv(), decode_nal_sei_message(), decode_p_frame(), decode_short_horizontal_delta(), decode_short_vertical_delta(), decode_short_vertical_delta2(), decode_type1(), decode_type2(), decode_user_data_registered_itu_t_t35(), decode_user_data_uregistered(), decode_wave_header(), decompress_2(), decompress_5(), decompress_68(), decompress_chunks_thread(), dfa_decode_frame(), dpcm_decode_frame(), dvbsub_read_8bit_string(), dwa_uncompress(), dxv_decode(), fastaudio_decode(), ff_amf_get_field_value(), ff_amf_tag_size(), ff_av1_packet_split(), ff_canopus_parse_info_tag(), ff_dca_lbr_parse(), ff_flac_parse_picture(), ff_h2645_packet_split(), ff_h264_sei_decode(), ff_hevc_decode_extradata(), ff_hevc_decode_nal_sei(), ff_itut_t35_parse_buffer(), ff_jpegxl_collect_codestream_header(), ff_lzw_decode_init(), ff_mjpeg_decode_frame_from_buf(), ff_mjpeg_decode_init(), ffat_init_encoder(), filter(), find_tracked_method(), flac_header(), flic_decode_frame_15_16BPP(), flic_decode_frame_1BPP(), flic_decode_frame_24BPP(), flic_decode_frame_8BPP(), g2m_decode_frame(), gdv_decode_frame(), gem_decode_frame(), generate_fake_vps(), get_anim_duration(), get_sbdy_offset(), get_tiles_info(), gif_decode_frame(), gif_parse_packet(), h264_extradata_to_annexb(), handle_metadata(), handle_notify(), hap_decode(), hap_parse_frame_header(), hapqa_extract(), hca_read_header(), hdr_decode_frame(), hevc_extradata_to_annexb(), hevc_mp4toannexb_filter(), hnm_update_palette(), hq_hqa_decode_frame(), imx_decode_frame(), init_hca(), ipvideo_decode_format_06_opcodes(), ipvideo_decode_format_10_opcodes(), ipvideo_decode_frame(), jpeg2000_decode_frame(), jpeg2000_read_main_headers(), jpegxs_parse_frame(), lcevc_merge_packets(), LLVMFuzzerTestOneInput(), load_buffer(), lz_unpack(), magy_decode_frame(), mimic_decode_frame(), misc4_decode(), mjpegb_decode_frame(), mm_decode_frame(), mm_decode_inter(), moflex_probe(), msp2_decode_frame(), msrle_decode_frame(), mss2_decode_frame(), mss3_decode_frame(), mss4_decode_frame(), mvc_decode_frame(), mxf_parse_jpeg2000_frame(), mxpeg_decode_frame(), ogm_header(), on2avc_decode_frame(), paf_video_decode(), parse(), parse_nal_unit(), parse_opus_ts_header(), parse_utf(), pcm_bluray_decode_frame(), pcm_dvd_decode_samples(), pcm_dvda_decode_frame(), pcx_decode_frame(), pgx_decode_frame(), photocd_decode_frame(), pix_decode_frame(), pixlet_decode_frame(), piz_uncompress(), process_ftch(), process_lcevc_nalu(), prores_raw_parse(), qdm2_decode_init(), qdmc_decode_init(), qoa_decode_frame(), qoi_decode_frame(), qtrle_decode_frame(), read_connect(), read_huffman_tables(), read_number_result(), read_old_huffman_tables(), redspark_read_header(), rka_decode_frame(), rle_unpack(), roq_decode_frame(), rpza_decode_frame(), rscc_decode_frame(), rtmp_send_packet(), rtmp_write(), send_invoke_response(), sga_decode_frame(), skip_boxes(), slice_init_entry_points(), 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(), vbn_decode_frame(), vmd_decode(), vp8_lossy_decode_alpha(), vp9_superframe_split_filter(), vqa_decode_frame(), vqa_decode_frame_hicolor(), vqa_decode_frame_pal8(), vvc_extradata_to_annexb(), vvc_mp4toannexb_filter(), wavpack_decode_block(), wbmp_decode_frame(), webp_decode_frame(), write_nalu(), write_tiles(), xan_decode_frame(), xan_decode_frame(), xan_unpack(), xan_wc3_decode_frame(), and xwd_decode_frame().

◆ bytestream2_init_writer()

◆ bytestream2_get_bytes_left()

static av_always_inline int bytestream2_get_bytes_left ( const GetByteContext * g)
static

Definition at line 158 of file bytestream.h.

Referenced by ac_dec_bit(), ac_decode_bool(), ac_update(), amf_get_field_value2(), amf_tag_skip(), apng_probe(), av_exif_parse_buffer(), av_smpte_291m_anc_8bit_extract_cta_708(), bfi_decode_frame(), bl16_block(), bl16_decode_0(), bl16_decode_1(), bl16_decode_6(), bl16_decode_7(), build_huffman(), cbs_h264_split_fragment(), cbs_h265_split_fragment(), cbs_h266_split_fragment(), cbs_lcevc_split_fragment(), cfhd_decode(), check_header_variable(), codec47_block(), codec48_block(), codec4_load_tiles(), cook_decode_init(), cri_decode_frame(), dds_decode(), decode(), decode0(), decode3(), decode_0(), decode_aiff_header(), decode_alcd(), decode_alternative_transfer(), decode_ambient_viewing_environment(), decode_anim(), decode_avcf(), decode_bdlt(), decode_bl16(), decode_blocks(), decode_byterun(), decode_byterun2(), decode_ch_samples(), decode_dds1(), decode_delta_d(), decode_delta_e(), decode_delta_j(), decode_delta_l(), decode_dlta(), decode_dsw1(), decode_exif_chunk(), decode_extradata(), decode_extradata_ps_mp4(), decode_fctl_chunk(), decode_fint(), decode_format80(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame_common(), decode_frame_lscr(), decode_header(), decode_header(), decode_hextile(), decode_huff(), decode_huffman2(), decode_idat(), decode_ihdr_chunk(), decode_index_tilemap(), decode_kfrm(), decode_long_vertical_delta2(), decode_mad1(), decode_mad1_24(), decode_motion_vectors(), decode_move(), decode_mvc1(), decode_mvc2(), decode_mvdv(), decode_nal_sei_content_light_info(), decode_nal_sei_mastering_display_info(), decode_nal_sei_message(), decode_p_block(), decode_pal8(), decode_palette(), decode_palmapdata(), decode_picture_timing(), decode_plane(), decode_plte_chunk(), decode_raw_intra_rgb(), decode_registered_user_data(), decode_rgb8(), decode_rgbn(), decode_rle(), decode_rle(), decode_rle(), decode_rle16(), decode_rle_bpp2(), decode_rle_bpp4(), decode_rtv1(), decode_runlen(), decode_runlen_rgb(), decode_sbit_chunk(), decode_short_horizontal_delta(), decode_short_vertical_delta2(), decode_tdlt(), decode_tiledata(), decode_trns_chunk(), decode_tsw1(), decode_type1(), decode_type2(), decode_unregistered_user_data(), decode_wave_header(), decode_wdlt(), decode_zlib(), decompress(), decompress(), decompress(), decompress_2(), decompress_5(), decompress_68(), decompress_p3(), dfa_decode_frame(), dng_decode_jpeg(), dvbsub_read_8bit_string(), dxv_decode(), dxv_decompress_cgo(), dxv_decompress_cocg(), dxv_decompress_dxt5(), dxv_decompress_raw(), dxv_decompress_yo(), ep_init_cabac_decoder(), exif_get_makernote_offset(), exif_parse_ifd_list(), exif_read_values(), expand_rle_row16(), expand_rle_row8(), ff_amf_tag_size(), ff_av1_packet_split(), ff_dca_lbr_parse(), ff_flac_parse_picture(), ff_h2645_packet_split(), ff_h264_sei_decode(), ff_hap_parse_section_header(), ff_hevc_decode_extradata(), ff_hevc_decode_nal_sei(), ff_itut_t35_parse_buffer(), ff_jpegxl_collect_codestream_header(), ff_lzf_uncompress(), ff_lzw_decode_tail(), ff_mjpeg_unescape_sos(), ff_snappy_peek_uncompressed_length(), ff_snappy_uncompress(), ff_tadd_doubles_metadata(), ff_tadd_shorts_metadata(), ff_tadd_string_metadata(), ff_tdecode_header(), ffat_init_encoder(), fill_ltable(), flac_header(), flic_decode_frame_15_16BPP(), flic_decode_frame_1BPP(), flic_decode_frame_24BPP(), flic_decode_frame_8BPP(), g2m_decode_frame(), g2m_load_cursor(), gdv_decode_frame(), generate_fake_vps(), get_anim_duration(), get_cap(), get_coc(), get_cod(), get_cox(), get_ep_size(), get_opcodes(), get_poc(), get_qcc(), get_qcx(), get_sbdy_offset(), get_siz(), get_sot(), get_tiles_info(), gif_parse_next_image(), gif_parse_packet(), gif_read_extension(), gif_read_header1(), gif_read_image(), h264_extradata_to_annexb(), handle_metadata(), handle_notify(), hap_decode(), hap_parse_decode_instructions(), hap_parse_frame_header(), hdr_decode_frame(), hdr_get_line(), hevc_extradata_to_annexb(), hevc_mp4toannexb_filter(), hq_decode_frame(), hq_hqa_decode_frame(), hqa_decode_frame(), huf_uncompress(), huf_unpack_enc_table(), imx_decode_frame(), init_hca(), 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(), jpegxs_parse_frame(), kmvc_decode_inter_8x8(), kmvc_decode_intra_8x8(), lcevc_merge_packets(), lz4_decompress(), lz_unpack(), lzss_decompress(), lzss_uncompress(), lzw_get_code(), magy_decode_frame(), misc4_decode(), mjpeg_decode_scan(), mjpeg_find_raw_scan_data(), mjpeg_parse_len(), mjpegb_decode_frame(), mm_decode_inter(), mm_decode_intra(), mm_decode_raw(), moflex_probe(), msp2_decode_frame(), msrle_decode_8_16_24_32(), msrle_decode_pal4(), mss3_decode_frame(), mss4_decode_frame(), mxf_parse_jpeg2000_frame(), ogm_header(), old_codec1(), old_codec2(), old_codec20(), old_codec21(), old_codec23(), old_codec31(), old_codec37(), old_codec4(), old_codec45(), old_codec47(), old_codec48(), on2avc_decode_frame(), op(), opcode_0xf7(), opcode_0xf8(), paf_video_decode(), parse_nal_unit(), parse_packet_header(), parse_utf(), pcx_decode_frame(), pcx_palette(), pcx_rle_decode(), pgx_decode_frame(), pgx_decode_header(), pgx_get_number(), pix_decode_frame(), pixlet_decode_frame(), piz_uncompress(), png_decode_idat(), process_ftch(), process_lcevc_nalu(), qdm2_decode_init(), qdmc_decode_init(), qoi_decode_frame(), qpeg_decode_inter(), qpeg_decode_intra(), qtrle_decode_16bpp(), qtrle_decode_24bpp(), qtrle_decode_2n4bpp(), qtrle_decode_32bpp(), qtrle_decode_8bpp(), read_connect(), read_cpf(), read_high_coeffs(), read_hufftable(), read_len_table(), read_rle_sgi(), read_uncompressed_sgi(), rle_decode(), rle_uncompress(), rle_uncompress(), rle_unpack(), roqvideo_decode_frame(), rpza_decode_stream(), rscc_decode_frame(), select_header(), select_stream(), set_palette(), sga_decode_frame(), skip_boxes(), skip_header_chunk(), 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(), unpack_10bit(), vb_decode_framedata(), vbn_decode_frame(), vmd_decode(), vqa_decode_frame_hicolor(), vqa_decode_frame_pal8(), vvc_extradata_to_annexb(), vvc_mp4toannexb_filter(), wavpack_decode_block(), wbmp_decode_frame(), webp_decode_frame(), write_nalu(), write_tiles(), wv_unpack_dsd_copy(), wv_unpack_dsd_fast(), wv_unpack_dsd_high(), xan_decode_chroma(), xan_decode_frame(), xan_unpack(), xan_unpack(), xan_unpack_luma(), xan_wc3_decode_frame(), and xwd_decode_frame().

◆ bytestream2_get_bytes_left_p()

◆ bytestream2_skip()

static av_always_inline void bytestream2_skip ( GetByteContext * g,
unsigned int size )
static

Definition at line 168 of file bytestream.h.

Referenced by adpcm_decode_frame(), amf_get_field_value2(), amf_tag_skip(), apng_probe(), apv_extract_header_info(), av_smpte_291m_anc_8bit_extract_cta_708(), avi_extract_stream_metadata(), bfi_decode_frame(), cbs_h264_split_fragment(), cbs_h265_split_fragment(), cbs_h266_split_fragment(), cbs_lcevc_split_fragment(), cdg_decode_frame(), clv_decode_frame(), cri_decode_frame(), dca_core_filter(), dds_decode(), decode_0(), decode_aiff_header(), decode_anim(), decode_bl16(), decode_byterun(), decode_byterun2(), decode_delta_j(), decode_dlta(), decode_extradata(), decode_extradata_ps_mp4(), decode_fctl_chunk(), decode_fint(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame_common(), decode_frame_headers(), decode_frame_lscr(), decode_header(), decode_header(), decode_idat(), decode_inter(), decode_interframe_v4(), decode_interframe_v4a(), decode_intra(), decode_kfrm(), decode_long_vertical_delta(), decode_mad1_24(), decode_motion_vectors(), decode_mous(), decode_move(), decode_mpos(), decode_mvc2(), decode_mvdv(), decode_palette(), decode_phys_chunk(), decode_plane(), decode_rle(), decode_rle16(), decode_runlen(), decode_runlen_rgb(), decode_type1(), decode_type2(), decode_wave_header(), decompress(), decompress_i(), decompress_i3(), decompress_p(), dfa_decode_frame(), dwa_uncompress(), dxv_decode(), dxv_decompress_cocg(), dxv_decompress_opcodes(), dxv_decompress_yo(), ff_av1_packet_split(), ff_canopus_parse_info_tag(), ff_dca_lbr_parse(), ff_h2645_packet_split(), ff_hevc_decode_extradata(), ff_jpegxl_collect_codestream_header(), ff_lzw_decode_tail(), ff_mjpeg_decode_sos(), ffat_init_encoder(), filter(), flic_decode_frame_15_16BPP(), flic_decode_frame_1BPP(), flic_decode_frame_24BPP(), flic_decode_frame_8BPP(), g2m_decode_frame(), g2m_load_cursor(), gem_decode_frame(), generate_fake_vps(), get_anim_duration(), get_nb_samples(), get_opcodes(), get_sbdy_offset(), gif_parse_packet(), handle_metadata(), handle_notify(), hca_read_header(), hdr_decode_frame(), hevc_extradata_to_annexb(), hevc_mp4toannexb_filter(), huf_uncompress(), huf_unpack_enc_table(), init_hca(), 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(), jpegxs_parse_frame(), lcevc_merge_packets(), mimic_decode_frame(), misc4_decode(), moflex_probe(), msp2_decode_frame(), msrle_decode_8_16_24_32(), msrle_decode_pal4(), mss3_decode_frame(), mss4_decode_frame(), mxf_parse_jpeg2000_frame(), ogm_header(), old_codec1(), old_codec21(), old_codec23(), old_codec31(), old_codec37(), old_codec45(), old_codec47(), old_codec48(), on2avc_decode_frame(), paf_video_decode(), parse(), parse_nal_unit(), parse_opus_ts_header(), parse_packet_header(), parse_palette(), parse_pixel_format(), parse_utf(), pcm_bluray_decode_frame(), pgx_decode_header(), pix_decode_frame(), pix_decode_header(), pixlet_decode_frame(), piz_uncompress(), process_frame_obj(), process_ftch(), process_lcevc_nalu(), process_xpal(), prores_raw_parse(), qoi_decode_frame(), qtrle_decode_2n4bpp(), qtrle_decode_frame(), read_cpf(), read_crg(), read_highpass(), rle_uncompress(), rscc_decode_frame(), select_stream(), sga_decode_frame(), skip_boxes(), skip_header_chunk(), smc_decode_stream(), tdsc_decode_frame(), tdsc_decode_tiles(), tdsc_load_cursor(), tdsc_parse_dtsm(), tdsc_parse_tdsf(), tgq_decode_mb(), tiff_decode_tag(), tm2_read_stream(), tscc2_decode_frame(), txd_decode_frame(), vmd_decode(), vqa_decode_frame_hicolor(), vqa_decode_frame_pal8(), wavpack_decode_block(), wbmp_decode_frame(), webp_decode_frame(), write_nalu(), xan_decode_chroma(), xan_decode_frame(), and xan_unpack_luma().

◆ bytestream2_skipu()

◆ bytestream2_skip_p()

◆ bytestream2_tell()

static av_always_inline int bytestream2_tell ( const GetByteContext * g)
static

Definition at line 192 of file bytestream.h.

Referenced by adpcm_decode_frame(), arith2_get_consumed_bytes(), av_exif_parse_buffer(), avi_extract_stream_metadata(), bethsoftvid_decode_frame(), bytestream2_seek(), cbs_h264_split_fragment(), cbs_h265_split_fragment(), cbs_h266_split_fragment(), cbs_lcevc_split_fragment(), cfhd_decode(), clv_decode_frame(), decode_0(), decode_anim(), decode_blocks(), decode_byterun(), decode_byterun2(), decode_dlta(), decode_format80(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_interframe_v4(), decode_interframe_v4a(), decode_kfrm(), decode_mous(), decode_move(), decode_mpos(), decode_mvdv(), decode_plane(), decode_type1(), decode_type2(), decode_zlib(), decompress(), dvbsub_read_8bit_string(), dxv_decompress_cocg(), dxv_decompress_opcodes(), dxv_decompress_yo(), exif_decode_tag(), exif_parse_ifd_list(), ff_amf_tag_size(), ff_flac_parse_picture(), ff_h2645_packet_split(), ff_lzw_decode_tail(), ff_mjpeg_decode_frame_from_buf(), ff_tread_tag(), filter(), flic_decode_frame_15_16BPP(), flic_decode_frame_1BPP(), flic_decode_frame_24BPP(), flic_decode_frame_8BPP(), g2m_decode_frame(), get_ep_size(), get_plt(), get_sbdy_offset(), get_tiles_info(), gif_decode_frame(), gif_parse_packet(), hnm_update_palette(), interp_lowres(), ipvideo_decode_format_06_opcodes(), ipvideo_decode_format_11_opcodes(), jp2_find_codestream(), jpeg2000_decode_frame(), jpeg2000_read_main_headers(), magy_decode_frame(), misc4_decode(), mjpeg_decode_scan(), mss2_decode_frame(), mxpeg_decode_frame(), parse_opus_ts_header(), pcm_bluray_decode_frame(), pcx_decode_frame(), pix_decode_frame(), process_lcevc_nalu(), read_highpass(), read_huffman_tables(), read_hufftable(), rle_unpack(), roqvideo_decode_frame(), tiff_decode_tag(), tm2_read_stream(), tscc2_decode_frame(), unpack_intraframe(), vqa_decode_frame_hicolor(), vqa_decode_frame_pal8(), webp_decode_frame(), write_nalu(), and xan_unpack_luma().

◆ bytestream2_tell_p()

◆ bytestream2_size()

static av_always_inline int bytestream2_size ( const GetByteContext * g)
static

Definition at line 202 of file bytestream.h.

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

◆ bytestream2_size_p()

static av_always_inline int bytestream2_size_p ( const PutByteContext * p)
static

Definition at line 207 of file bytestream.h.

Referenced by decode_long_vertical_delta(), and decode_long_vertical_delta2().

◆ bytestream2_seek()

◆ bytestream2_seek_p()

◆ bytestream2_get_buffer()

static av_always_inline unsigned int bytestream2_get_buffer ( GetByteContext * g,
uint8_t * dst,
unsigned int size )
static

Definition at line 267 of file bytestream.h.

Referenced by amf_get_field_value2(), bethsoftvid_decode_frame(), bfi_decode_frame(), cdg_decode_frame(), chunky2chunky(), cri_decode_frame(), dds_decode(), decode_bdlt(), decode_byterun(), decode_copy(), decode_exif_chunk(), decode_format80(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_header(), decode_nal_sei_decoded_picture_hash(), decode_tdlt(), decode_wdlt(), decompress_chunks_thread(), dxv_decompress_opcodes(), dxv_decompress_raw(), exif_decode_tag(), exif_read_values(), ff_amf_get_string(), ff_jpegxl_collect_codestream_header(), ff_lzf_uncompress(), flic_decode_frame_24BPP(), flic_decode_frame_8BPP(), hevc_extradata_to_annexb(), hevc_mp4toannexb_filter(), ipvideo_decode_block_opcode_0x9(), ipvideo_decode_block_opcode_0xA(), ipvideo_decode_block_opcode_0xB(), ipvideo_format_06_firstpass(), ipvideo_format_10_firstpass(), lz4_decompress(), mm_decode_raw(), ogm_header(), paf_video_decode(), pcm_bluray_decode_frame(), pcm_dvd_decode_samples(), pcx_rle_decode(), photocd_decode_frame(), piz_uncompress(), qtrle_decode_8bpp(), read4x4block(), sga_decode_frame(), snappy_literal(), targa_decode_rle(), tdsc_decode_tiles(), tgq_decode_mb(), txd_decode_frame(), vb_decode_framedata(), vmd_decode(), vp8_lossy_decode_alpha(), vqa_decode_frame_hicolor(), vqa_decode_frame_pal8(), vvc_extradata_to_annexb(), vvc_mp4toannexb_filter(), wavpack_decode_block(), wbmp_decode_frame(), webp_decode_frame(), wv_unpack_dsd_fast(), xan_unpack(), and xan_unpack().

◆ bytestream2_get_bufferu()

◆ bytestream2_put_buffer()

◆ bytestream2_put_bufferu()

static av_always_inline unsigned int bytestream2_put_bufferu ( PutByteContext * p,
const uint8_t * src,
unsigned int size )
static

◆ bytestream2_set_buffer()

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

Definition at line 310 of file bytestream.h.

◆ bytestream2_set_bufferu()

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

Definition at line 324 of file bytestream.h.

◆ bytestream2_get_eof()

static av_always_inline unsigned int bytestream2_get_eof ( PutByteContext * p)
static

Definition at line 332 of file bytestream.h.

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

◆ bytestream2_copy_bufferu()

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

Definition at line 337 of file bytestream.h.

Referenced by bytestream2_copy_buffer().

◆ bytestream2_copy_buffer()

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

Definition at line 347 of file bytestream.h.

Referenced by filter(), and handle_metadata().

◆ bytestream_get_buffer()

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

◆ bytestream_put_buffer()

Variable Documentation

◆ le64

uint64_t_TMPL le64

Definition at line 91 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

◆ AV_RL64

uint64_t_TMPL AV_RL64

Definition at line 91 of file bytestream.h.

◆ le32

uint64_t_TMPL AV_WL64 unsigned int_TMPL le32

Definition at line 92 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

◆ AV_RL32

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_RL32

Definition at line 92 of file bytestream.h.

◆ le24

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL le24

Definition at line 93 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

◆ AV_RL24

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_RL24

Definition at line 93 of file bytestream.h.

◆ le16

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL le16

Definition at line 94 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

◆ AV_RL16

uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_RL16

Definition at line 94 of file bytestream.h.

◆ be64

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 95 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

◆ 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_RB64

Definition at line 95 of file bytestream.h.

◆ 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 be32

Definition at line 96 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

◆ 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_RB32

Definition at line 96 of file bytestream.h.

◆ 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 be24

Definition at line 97 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

◆ 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_RB24

Definition at line 97 of file bytestream.h.

◆ 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 be16

Definition at line 98 of file bytestream.h.

Referenced by pcm_decode_frame(), and pcm_encode_frame().

◆ 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_RB16

Definition at line 98 of file bytestream.h.

◆ byte

◆ AV_RB8

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

Definition at line 99 of file bytestream.h.