#include <stdint.h>
#include <string.h>
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
Go to the source code of this file.
Data Structures | |
struct | GetByteContext |
struct | PutByteContext |
Defines | |
#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 | 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 |
#define bytestream2_get_ne16 bytestream2_get_le16 |
Definition at line 112 of file bytestream.h.
#define bytestream2_get_ne16u bytestream2_get_le16u |
#define bytestream2_get_ne24 bytestream2_get_le24 |
Definition at line 113 of file bytestream.h.
#define bytestream2_get_ne24u bytestream2_get_le24u |
Definition at line 117 of file bytestream.h.
#define bytestream2_get_ne32 bytestream2_get_le32 |
Definition at line 114 of file bytestream.h.
#define bytestream2_get_ne32u bytestream2_get_le32u |
Definition at line 118 of file bytestream.h.
#define bytestream2_get_ne64 bytestream2_get_le64 |
Definition at line 115 of file bytestream.h.
#define bytestream2_get_ne64u bytestream2_get_le64u |
Definition at line 119 of file bytestream.h.
#define bytestream2_peek_ne16 bytestream2_peek_le16 |
Definition at line 124 of file bytestream.h.
#define bytestream2_peek_ne24 bytestream2_peek_le24 |
Definition at line 125 of file bytestream.h.
#define bytestream2_peek_ne32 bytestream2_peek_le32 |
Definition at line 126 of file bytestream.h.
#define bytestream2_peek_ne64 bytestream2_peek_le64 |
Definition at line 127 of file bytestream.h.
#define bytestream2_put_ne16 bytestream2_put_le16 |
Definition at line 120 of file bytestream.h.
#define bytestream2_put_ne24 bytestream2_put_le24 |
Definition at line 121 of file bytestream.h.
#define bytestream2_put_ne32 bytestream2_put_le32 |
Definition at line 122 of file bytestream.h.
#define bytestream2_put_ne64 bytestream2_put_le64 |
Definition at line 123 of file bytestream.h.
#define DEF | ( | type, | |||
name, | |||||
bytes, | |||||
read, | |||||
write | ) |
Definition at line 41 of file bytestream.h.
Referenced by avg_pixels16_TMPL(), avg_pixels16_x2_TMPL(), avg_pixels16_xy2_TMPL(), avg_pixels16_y2_TMPL(), pixels16_xy2(), pixels16_y2(), put_no_rnd_pixels16_x2_TMPL(), put_no_rnd_pixels16_y2_TMPL(), and put_pixels16_y2_TMPL().
static av_always_inline unsigned int bytestream2_get_buffer | ( | GetByteContext * | g, | |
uint8_t * | dst, | |||
unsigned int | size | |||
) | [static] |
Definition at line 258 of file bytestream.h.
Referenced by bethsoftvid_decode_frame(), bfi_decode_frame(), decode_bdlt(), decode_copy(), decode_format80(), decode_frame(), decode_wdlt(), flic_decode_frame_8BPP(), ipvideo_decode_block_opcode_0x9(), ipvideo_decode_block_opcode_0xA(), ipvideo_decode_block_opcode_0xB(), pcm_bluray_decode_frame(), targa_decode_rle(), tgq_decode_mb(), txd_decode_frame(), vb_decode_framedata(), vqa_decode_chunk(), and xan_unpack().
static av_always_inline unsigned int bytestream2_get_bufferu | ( | GetByteContext * | g, | |
uint8_t * | dst, | |||
unsigned int | size | |||
) | [static] |
Definition at line 268 of file bytestream.h.
Referenced by decode_frame(), decode_packet(), op(), and xwd_decode_frame().
static av_always_inline unsigned int bytestream2_get_bytes_left | ( | GetByteContext * | g | ) | [static] |
Definition at line 149 of file bytestream.h.
Referenced by adpcm_decode_frame(), bfi_decode_frame(), decode_bdlt(), decode_codestream(), decode_dds1(), decode_dsw1(), decode_frame(), decode_init(), decode_packet(), decode_tsw1(), decode_wdlt(), dfa_decode_frame(), expand_rle_row(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), get_coc(), get_cod(), get_cox(), get_qcc(), get_qcx(), get_siz(), get_sot(), ipvideo_decode_opcodes(), jp2_find_codestream(), kmvc_decode_inter_8x8(), kmvc_decode_intra_8x8(), mm_decode_inter(), mm_decode_intra(), msrle_decode_8_16_24_32(), msrle_decode_pal4(), op(), png_decode_idat(), qpeg_decode_inter(), qpeg_decode_intra(), read_rle_sgi(), read_uncompressed_sgi(), roqvideo_decode_frame(), set_palette(), targa_decode_rle(), tgq_decode_mb(), txd_decode_frame(), ulti_decode_frame(), vb_decode_framedata(), vqa_decode_chunk(), xan_decode_chroma(), xan_unpack(), xan_unpack_luma(), and xwd_decode_frame().
static av_always_inline unsigned int bytestream2_get_bytes_left_p | ( | PutByteContext * | p | ) | [static] |
Definition at line 154 of file bytestream.h.
static av_always_inline unsigned int bytestream2_get_eof | ( | PutByteContext * | p | ) | [static] |
Definition at line 323 of file bytestream.h.
static av_always_inline void bytestream2_init | ( | GetByteContext * | g, | |
const uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
Definition at line 130 of file bytestream.h.
Referenced by aasc_decode_frame(), adpcm_decode_frame(), alac_set_info(), bethsoftvid_decode_frame(), bfi_decode_frame(), bmp_decode_frame(), decode_frame(), decode_i2_frame(), decode_init(), decode_p_frame(), dfa_decode_frame(), dpcm_decode_frame(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), ipvideo_decode_frame(), mimic_decode_frame(), mm_decode_frame(), mm_decode_inter(), msrle_decode_frame(), pcm_bluray_decode_frame(), qtrle_decode_frame(), roq_decode_frame(), smc_decode_frame(), tgq_decode_frame(), tm2_read_stream(), txd_decode_frame(), ulti_decode_frame(), vqa_decode_chunk(), vqa_decode_frame(), xan_decode_frame(), and xwd_decode_frame().
static av_always_inline void bytestream2_init_writer | ( | PutByteContext * | p, | |
uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
Definition at line 139 of file bytestream.h.
Referenced by encode_frame(), and sunrast_encode_frame().
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 292 of file bytestream.h.
static av_always_inline int bytestream2_seek | ( | GetByteContext * | g, | |
int | offset, | |||
int | whence | |||
) | [static] |
Definition at line 203 of file bytestream.h.
Referenced by adpcm_decode_frame(), decode_frame(), qtrle_decode_frame(), read_rle_sgi(), vqa_decode_chunk(), xan_decode_chroma(), xan_decode_frame_type0(), xan_decode_frame_type1(), and xan_unpack_luma().
static av_always_inline int bytestream2_seek_p | ( | PutByteContext * | p, | |
int | offset, | |||
int | whence | |||
) | [static] |
Definition at line 227 of file bytestream.h.
static av_always_inline void bytestream2_set_buffer | ( | PutByteContext * | p, | |
const uint8_t | c, | |||
unsigned int | size | |||
) | [static] |
static av_always_inline void bytestream2_set_bufferu | ( | PutByteContext * | p, | |
const uint8_t | c, | |||
unsigned int | size | |||
) | [static] |
Definition at line 315 of file bytestream.h.
static av_always_inline int bytestream2_size | ( | GetByteContext * | g | ) | [static] |
Definition at line 193 of file bytestream.h.
Referenced by smc_decode_stream(), and xan_decode_frame_type0().
static av_always_inline int bytestream2_size_p | ( | PutByteContext * | p | ) | [static] |
Definition at line 198 of file bytestream.h.
static av_always_inline void bytestream2_skip | ( | GetByteContext * | g, | |
unsigned int | size | |||
) | [static] |
Definition at line 159 of file bytestream.h.
Referenced by adpcm_decode_frame(), bfi_decode_frame(), decode_codestream(), decode_frame(), decode_packet(), dfa_decode_frame(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), get_nb_samples(), ipvideo_decode_opcodes(), j2k_flush(), mimic_decode_frame(), mm_decode_pal(), msrle_decode_8_16_24_32(), msrle_decode_pal4(), pcm_bluray_decode_frame(), png_decode_idat(), qtrle_decode_2n4bpp(), qtrle_decode_frame(), read_uncompressed_sgi(), smc_decode_stream(), tgq_decode_frame(), tgq_decode_mb(), tm2_read_stream(), txd_decode_frame(), vqa_decode_chunk(), xan_decode_chroma(), and xan_unpack_luma().
static av_always_inline void bytestream2_skip_p | ( | PutByteContext * | p, | |
unsigned int | size | |||
) | [static] |
static av_always_inline void bytestream2_skipu | ( | GetByteContext * | g, | |
unsigned int | size | |||
) | [static] |
Definition at line 165 of file bytestream.h.
Referenced by adpcm_decode_frame(), alac_set_info(), decode_frame(), decode_init(), dpcm_decode_frame(), get_sot(), jp2_find_codestream(), and xwd_decode_frame().
static av_always_inline int bytestream2_tell | ( | GetByteContext * | g | ) | [static] |
Definition at line 183 of file bytestream.h.
Referenced by adpcm_decode_frame(), bethsoftvid_decode_frame(), bytestream2_seek(), decode_codestream(), decode_format80(), decode_frame(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), ipvideo_decode_opcodes(), pcm_bluray_decode_frame(), roqvideo_decode_frame(), tm2_read_stream(), vqa_decode_chunk(), and xan_unpack_luma().
static av_always_inline int bytestream2_tell_p | ( | PutByteContext * | p | ) | [static] |
Definition at line 188 of file bytestream.h.
Referenced by bytestream2_seek_p(), sunrast_encode_frame(), and sunrast_image_write_image().
static av_always_inline unsigned int bytestream_get_buffer | ( | const uint8_t ** | b, | |
uint8_t * | dst, | |||
unsigned int | size | |||
) | [static] |
Definition at line 328 of file bytestream.h.
Referenced by cdg_decode_frame(), flac_read_header(), gif_read_header1(), gif_read_image(), ogm_header(), and rtmp_write().
static av_always_inline void bytestream_put_buffer | ( | uint8_t ** | b, | |
const uint8_t * | src, | |||
unsigned int | size | |||
) | [static] |
Definition at line 337 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_vorbiscomment_write(), get_packet(), gif_image_write_header(), gif_image_write_image(), imx_dump_header(), mjpega_dump_header(), ogg_build_flac_headers(), ogg_build_speex_headers(), ogg_write_header(), prores_encode_frame(), qtrle_encode_line(), write_codebooks(), write_typecode(), and xwd_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 84 of file bytestream.h.
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 84 of file bytestream.h.
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 84 of file bytestream.h.
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 84 of file bytestream.h.
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 84 of file bytestream.h.
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL AV_RL16 |
Definition at line 84 of file bytestream.h.
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_RL24 |
Definition at line 84 of file bytestream.h.
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_RL32 |
Definition at line 84 of file bytestream.h.
uint64_t_TMPL AV_RL64 |
Definition at line 84 of file bytestream.h.
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 84 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 be24 |
Definition at line 84 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 be32 |
Definition at line 84 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 be64 |
Definition at line 84 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_WB16 unsigned int_TMPL byte |
Definition at line 84 of file bytestream.h.
Referenced by adpcm_decode_frame(), bfi_decode_frame(), fill_picture(), fill_picture_monoblack(), g723_1_read_packet(), process_audio_header_elements(), read_arbitary(), roqvideo_decode_frame(), and xan_huffman_decode().
uint64_t_TMPL AV_WL64 unsigned int_TMPL AV_WL32 unsigned int_TMPL AV_WL24 unsigned int_TMPL le16 |
Definition at line 84 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 le24 |
Definition at line 84 of file bytestream.h.
Referenced by pcm_decode_frame(), and pcm_encode_frame().
uint64_t_TMPL AV_WL64 unsigned int_TMPL le32 |
Definition at line 84 of file bytestream.h.
Referenced by pcm_decode_frame(), and pcm_encode_frame().
uint64_t_TMPL le64 |
Definition at line 84 of file bytestream.h.
Referenced by pcm_decode_frame(), and pcm_encode_frame().