FFmpeg
4.0
|
#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 |
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.
Referenced by ff_videotoolbox_uninit().
#define bytestream2_put_ne24 bytestream2_put_le24 |
Definition at line 124 of file bytestream.h.
Referenced by ff_videotoolbox_uninit().
#define bytestream2_put_ne32 bytestream2_put_le32 |
Definition at line 125 of file bytestream.h.
Referenced by ff_videotoolbox_uninit().
#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.
|
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_extradata_ps_mp4(), decode_frame(), decode_frame_common(), 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_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_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 |
Definition at line 143 of file bytestream.h.
Referenced by append_flv_data(), decode_byte_vertical_delta(), decode_delta_d(), decode_delta_e(), decode_delta_l(), decode_extradata_ps_mp4(), decode_frame(), decode_long_vertical_delta(), decode_long_vertical_delta2(), decode_short_horizontal_delta(), decode_short_vertical_delta(), decode_short_vertical_delta2(), encode_frame(), ff_videotoolbox_uninit(), ffat_get_magic_cookie(), gdv_decode_frame(), generate_fake_vps(), hap_write_frame_header(), jpeg_create_header(), magy_encode_frame(), sunrast_encode_frame(), tiff_unpack_strip(), utvideo_encode_frame(), wavpack_encode_block(), and write_begin().
|
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_dsw1(), decode_extradata_ps_mp4(), decode_format80(), decode_frame(), decode_frame_common(), decode_header(), decode_hextile(), decode_init(), decode_long_vertical_delta2(), 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(), 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_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(), 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 |
Definition at line 159 of file bytestream.h.
Referenced by decode_delta_d(), decode_delta_e(), decode_long_vertical_delta2(), decode_short_vertical_delta2(), decompress_2(), decompress_5(), decompress_68(), magy_encode_frame(), sgi_rle_encode(), and wavpack_encode_block().
|
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_extradata_ps_mp4(), decode_fctl_chunk(), 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_long_vertical_delta(), 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_i(), decompress_p(), dfa_decode_frame(), dxv_decode(), dxv_decompress_cocg(), dxv_decompress_opcodes(), dxv_decompress_yo(), extract_header(), 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(), 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 |
Definition at line 170 of file bytestream.h.
Referenced by adpcm_decode_frame(), alac_set_info(), cfhd_decode(), decode_0(), decode_frame(), decode_init(), dpcm_decode_frame(), gif_read_extension(), gif_read_image(), jp2_find_codestream(), lz_unpack(), pcx_decode_frame(), qdmc_decode_init(), redspark_read_header(), and xwd_decode_frame().
|
static |
Definition at line 176 of file bytestream.h.
Referenced by append_flv_data(), decode_delta_d(), decode_delta_e(), decode_delta_l(), decompress_2(), decompress_5(), decompress_68(), encode_frame(), magy_encode_frame(), rle_uncompress(), sunrast_image_write_image(), and wavpack_encode_block().
|
static |
Definition at line 188 of file bytestream.h.
Referenced by adpcm_decode_frame(), arith2_get_consumed_bytes(), avi_extract_stream_metadata(), bethsoftvid_decode_frame(), bytestream2_seek(), cbs_h2645_split_fragment(), cfhd_decode(), clv_decode_frame(), decode_0(), decode_byterun(), decode_byterun2(), decode_format80(), decode_frame(), decode_frame_common(), decode_interframe_v4(), decode_interframe_v4a(), decode_plane(), decode_type1(), decode_type2(), dxv_decompress_cocg(), dxv_decompress_opcodes(), dxv_decompress_yo(), exif_decode_tag(), ff_amf_tag_size(), ff_h2645_packet_split(), ff_lzw_decode_tail(), ff_tread_tag(), flic_decode_frame_15_16BPP(), flic_decode_frame_24BPP(), flic_decode_frame_8BPP(), g2m_decode_frame(), get_plt(), gif_decode_frame(), hnm_update_palette(), ipvideo_decode_format_06_opcodes(), ipvideo_decode_format_11_opcodes(), jp2_find_codestream(), jpeg2000_decode_frame(), jpeg2000_read_main_headers(), magy_decode_frame(), mjpeg_decode_app(), mss2_decode_frame(), old_codec1(), old_codec47(), parse_opus_ts_header(), pcm_bluray_decode_frame(), pcx_decode_frame(), pix_decode_frame(), process_block(), read_highpass(), rle_unpack(), roqvideo_decode_frame(), tiff_decode_tag(), tm2_read_stream(), tscc2_decode_frame(), unpack_intraframe(), vqa_decode_chunk(), wavpack_decode_block(), webp_decode_frame(), and xan_unpack_luma().
|
static |
Definition at line 193 of file bytestream.h.
Referenced by bytestream2_seek_p(), decode_extradata_ps_mp4(), decode_frame(), decode_type1(), decode_type2(), decompress_68(), encode_frame(), generate_fake_vps(), jpeg_create_header(), lz_copy(), magy_encode_frame(), sgi_rle_encode(), sunrast_encode_frame(), sunrast_image_write_image(), utvideo_encode_frame(), and wavpack_encode_block().
|
static |
Definition at line 198 of file bytestream.h.
Referenced by smc_decode_stream(), and xan_decode_frame_type0().
|
static |
Definition at line 203 of file bytestream.h.
Referenced by ff_videotoolbox_uninit().
|
static |
Definition at line 208 of file bytestream.h.
Referenced by adpcm_decode_frame(), cfhd_decode(), decode_frame(), decode_type1(), decode_type2(), dxv_decompress_cocg(), dxv_decompress_yo(), exif_decode_tag(), ff_snappy_peek_uncompressed_length(), ff_tread_tag(), fill_ltable(), hap_decode(), hapqa_extract(), ipvideo_decode_format_06_opcodes(), ipvideo_decode_format_10_opcodes(), jp2_find_codestream(), jpeg2000_decode_frame(), lz_copy(), mjpeg_decode_app(), pcx_decode_frame(), process_block(), qtrle_decode_frame(), read_rle_sgi(), redspark_read_header(), tiff_decode_tag(), vqa_decode_chunk(), webp_decode_frame(), xan_decode_chroma(), xan_decode_frame_type0(), xan_decode_frame_type1(), and xan_unpack_luma().
|
static |
Definition at line 232 of file bytestream.h.
Referenced by decode_byte_vertical_delta(), decode_delta_d(), decode_delta_e(), decode_delta_l(), decode_long_vertical_delta(), decode_long_vertical_delta2(), decode_short_horizontal_delta(), decode_short_vertical_delta(), decode_short_vertical_delta2(), encode_plane(), magy_encode_frame(), and tiff_unpack_strip().
|
static |
Definition at line 263 of file bytestream.h.
Referenced by amf_get_field_value2(), bethsoftvid_decode_frame(), bfi_decode_frame(), cdg_decode_frame(), chunky2chunky(), dds_decode(), decode_bdlt(), decode_byterun(), decode_copy(), decode_format80(), decode_frame(), decode_header(), decode_tdlt(), decode_wdlt(), decompress_chunks_thread(), dxv_decompress_opcodes(), dxv_decompress_raw(), ff_amf_get_string(), ff_lzf_uncompress(), 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(), ogm_header(), old_codec37(), paf_video_decode(), pcm_bluray_decode_frame(), pcm_dvd_decode_samples(), pcx_rle_decode(), piz_uncompress(), qtrle_decode_8bpp(), read4x4block(), 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_chunk(), wavpack_decode_block(), webp_decode_frame(), and xan_unpack().
|
static |
Definition at line 273 of file bytestream.h.
Referenced by ff_tadd_string_metadata(), gif_read_header1(), jpeg2000_decode_packet(), msrle_decode_8_16_24_32(), old_codec37(), old_codec47(), op(), paf_video_decode(), process_block(), redspark_read_header(), rle_decode(), rle_unpack(), tiff_decode_tag(), vmd_decode(), and xwd_decode_frame().
|
static |
Definition at line 282 of file bytestream.h.
Referenced by append_flv_data(), encode_plane(), ff_videotoolbox_uninit(), ffat_get_magic_cookie(), jpeg_create_header(), and sunrast_image_write_image().
|
static |
Definition at line 297 of file bytestream.h.
|
static |
Definition at line 306 of file bytestream.h.
|
static |
Definition at line 320 of file bytestream.h.
|
static |
Definition at line 328 of file bytestream.h.
Referenced by tiff_unpack_strip(), and wavpack_encode_block().
|
static |
Definition at line 333 of file bytestream.h.
Referenced by bytestream2_copy_buffer().
|
static |
Definition at line 343 of file bytestream.h.
|
static |
Definition at line 359 of file bytestream.h.
Referenced by flac_read_header(), pcm_decode_frame(), and rtmp_write().
|
static |
Definition at line 368 of file bytestream.h.
Referenced by adx_encode_header(), av_packet_merge_side_data(), encode_frame(), encode_packet(), ff_amf_write_field_name(), ff_amf_write_string(), ff_amf_write_string2(), ff_rtp_send_jpeg(), ff_vorbiscomment_write(), gif_image_write_image(), iff_read_header(), imx_dump_header(), inject_fake_duration_metadata(), libopus_write_header(), mjpega_dump_header(), ogg_build_flac_headers(), ogg_build_opus_headers(), ogg_build_speex_headers(), ogg_build_vp8_headers(), ogg_init(), opus_write_extradata(), pcm_encode_frame(), prores_encode_frame(), put_com(), qtrle_encode_line(), read_packet(), write_codebooks(), write_typecode(), and xwd_encode_frame().