#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_T(type, name, bytes, read, write) |
#define | DEF(name, bytes, read, write) DEF_T(unsigned int, name, bytes, read, write) |
#define | DEF64(name, bytes, read, write) DEF_T(uint64_t, 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_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 | |
le32_TMPL | |
AV_RL32 | |
AV_WL32 | le24_TMPL |
AV_WL32 | AV_RL24 |
AV_WL32 AV_WL24 | le16_TMPL |
AV_WL32 AV_WL24 | AV_RL16 |
AV_WL32 AV_WL24 AV_WL16 | be32_TMPL |
AV_WL32 AV_WL24 AV_WL16 | AV_RB32 |
AV_WL32 AV_WL24 AV_WL16 AV_WB32 | be24_TMPL |
AV_WL32 AV_WL24 AV_WL16 AV_WB32 | AV_RB24 |
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 | be16_TMPL |
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 | AV_RB16 |
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 AV_WB16 | byte_TMPL |
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 AV_WB16 | AV_RB8 |
#define bytestream2_get_ne16 bytestream2_get_le16 |
Definition at line 120 of file bytestream.h.
#define bytestream2_get_ne16u bytestream2_get_le16u |
#define bytestream2_get_ne24 bytestream2_get_le24 |
Definition at line 121 of file bytestream.h.
#define bytestream2_get_ne24u bytestream2_get_le24u |
Definition at line 125 of file bytestream.h.
#define bytestream2_get_ne32 bytestream2_get_le32 |
Definition at line 122 of file bytestream.h.
#define bytestream2_get_ne32u bytestream2_get_le32u |
Definition at line 126 of file bytestream.h.
#define bytestream2_get_ne64 bytestream2_get_le64 |
Definition at line 123 of file bytestream.h.
#define bytestream2_get_ne64u bytestream2_get_le64u |
Definition at line 127 of file bytestream.h.
#define bytestream2_peek_ne16 bytestream2_peek_le16 |
Definition at line 132 of file bytestream.h.
#define bytestream2_peek_ne24 bytestream2_peek_le24 |
Definition at line 133 of file bytestream.h.
#define bytestream2_peek_ne32 bytestream2_peek_le32 |
Definition at line 134 of file bytestream.h.
#define bytestream2_peek_ne64 bytestream2_peek_le64 |
Definition at line 135 of file bytestream.h.
#define bytestream2_put_ne16 bytestream2_put_le16 |
Definition at line 128 of file bytestream.h.
#define bytestream2_put_ne24 bytestream2_put_le24 |
Definition at line 129 of file bytestream.h.
#define bytestream2_put_ne32 bytestream2_put_le32 |
Definition at line 130 of file bytestream.h.
#define bytestream2_put_ne64 bytestream2_put_le64 |
Definition at line 131 of file bytestream.h.
Definition at line 83 of file bytestream.h.
Definition at line 85 of file bytestream.h.
#define DEF_T | ( | type, | |||
name, | |||||
bytes, | |||||
read, | |||||
write | ) |
Definition at line 40 of file bytestream.h.
static av_always_inline unsigned int bytestream2_get_buffer | ( | GetByteContext * | g, | |
uint8_t * | dst, | |||
unsigned int | size | |||
) | [static] |
Definition at line 256 of file bytestream.h.
Referenced by bethsoftvid_decode_frame(), bfi_decode_frame(), decode_bdlt(), decode_copy(), decode_format80(), decode_wdlt(), flic_decode_frame_8BPP(), tgq_decode_mb(), 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 266 of file bytestream.h.
static av_always_inline unsigned int bytestream2_get_bytes_left | ( | GetByteContext * | g | ) | [static] |
Definition at line 157 of file bytestream.h.
Referenced by bfi_decode_frame(), decode_bdlt(), decode_dds1(), decode_dsw1(), decode_frame(), decode_tsw1(), decode_wdlt(), dfa_decode_frame(), expand_rle_row(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), kmvc_decode_inter_8x8(), kmvc_decode_intra_8x8(), mm_decode_inter(), mm_decode_intra(), png_decode_idat(), read_rle_sgi(), read_uncompressed_sgi(), roqvideo_decode_frame(), set_palette(), ulti_decode_frame(), vb_decode_framedata(), vqa_decode_chunk(), xan_decode_chroma(), xan_unpack(), and xan_unpack_luma().
static av_always_inline unsigned int bytestream2_get_bytes_left_p | ( | PutByteContext * | p | ) | [static] |
Definition at line 162 of file bytestream.h.
static av_always_inline unsigned int bytestream2_get_eof | ( | PutByteContext * | p | ) | [static] |
Definition at line 321 of file bytestream.h.
static av_always_inline void bytestream2_init | ( | GetByteContext * | g, | |
const uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
Definition at line 138 of file bytestream.h.
Referenced by bethsoftvid_decode_frame(), bfi_decode_frame(), decode_frame(), decode_i2_frame(), decode_p_frame(), dfa_decode_frame(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), mm_decode_frame(), mm_decode_inter(), roq_decode_frame(), smc_decode_frame(), tgq_decode_frame(), tm2_read_stream(), ulti_decode_frame(), vqa_decode_chunk(), vqa_decode_frame(), and xan_decode_frame().
static av_always_inline void bytestream2_init_writer | ( | PutByteContext * | p, | |
uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
Definition at line 147 of file bytestream.h.
static av_always_inline unsigned int bytestream2_put_buffer | ( | PutByteContext * | p, | |
const uint8_t * | src, | |||
unsigned int | size | |||
) | [static] |
Definition at line 275 of file bytestream.h.
static av_always_inline unsigned int bytestream2_put_bufferu | ( | PutByteContext * | p, | |
const uint8_t * | src, | |||
unsigned int | size | |||
) | [static] |
Definition at line 290 of file bytestream.h.
static av_always_inline int bytestream2_seek | ( | GetByteContext * | g, | |
int | offset, | |||
int | whence | |||
) | [static] |
Definition at line 201 of file bytestream.h.
Referenced by 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 225 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 299 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 313 of file bytestream.h.
static av_always_inline void bytestream2_skip | ( | GetByteContext * | g, | |
unsigned int | size | |||
) | [static] |
Definition at line 167 of file bytestream.h.
Referenced by bfi_decode_frame(), decode_frame(), dfa_decode_frame(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), mm_decode_pal(), png_decode_idat(), read_uncompressed_sgi(), smc_decode_stream(), tgq_decode_frame(), tgq_decode_mb(), tm2_read_stream(), vqa_decode_chunk(), xan_decode_chroma(), and xan_unpack_luma().
static av_always_inline void bytestream2_skip_p | ( | PutByteContext * | p, | |
unsigned int | size | |||
) | [static] |
Definition at line 179 of file bytestream.h.
static av_always_inline void bytestream2_skipu | ( | GetByteContext * | g, | |
unsigned int | size | |||
) | [static] |
static av_always_inline int bytestream2_tell | ( | GetByteContext * | g | ) | [static] |
Definition at line 191 of file bytestream.h.
Referenced by bytestream2_seek(), decode_format80(), decode_frame(), flic_decode_frame_15_16BPP(), flic_decode_frame_8BPP(), roqvideo_decode_frame(), tm2_read_stream(), vqa_decode_chunk(), and xan_unpack_luma().
static av_always_inline int bytestream2_tell_p | ( | PutByteContext * | p | ) | [static] |
static av_always_inline unsigned int bytestream_get_buffer | ( | const uint8_t ** | b, | |
uint8_t * | dst, | |||
unsigned int | size | |||
) | [static] |
Definition at line 326 of file bytestream.h.
Referenced by cdg_decode_frame(), decode_frame(), decode_packet(), flac_read_header(), gif_read_header1(), gif_read_image(), ogm_header(), rtmp_write(), and xwd_decode_frame().
static av_always_inline void bytestream_put_buffer | ( | uint8_t ** | b, | |
const uint8_t * | src, | |||
unsigned int | size | |||
) | [static] |
Definition at line 335 of file bytestream.h.
Referenced by adx_encode_header(), av_packet_merge_side_data(), 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().
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 AV_RB16 |
Definition at line 89 of file bytestream.h.
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_RB24 |
Definition at line 89 of file bytestream.h.
AV_WL32 AV_WL24 AV_WL16 AV_RB32 |
Definition at line 89 of file bytestream.h.
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 AV_WB16 AV_RB8 |
Definition at line 89 of file bytestream.h.
AV_WL32 AV_WL24 AV_RL16 |
Definition at line 89 of file bytestream.h.
AV_WL32 AV_RL24 |
Definition at line 89 of file bytestream.h.
AV_RL32 |
Definition at line 89 of file bytestream.h.
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 be16_TMPL |
Definition at line 89 of file bytestream.h.
AV_WL32 AV_WL24 AV_WL16 AV_WB32 be24_TMPL |
Definition at line 89 of file bytestream.h.
AV_WL32 AV_WL24 AV_WL16 be32_TMPL |
Definition at line 89 of file bytestream.h.
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 AV_WB16 byte_TMPL |
Definition at line 89 of file bytestream.h.
AV_WL32 AV_WL24 le16_TMPL |
Definition at line 89 of file bytestream.h.
AV_WL32 le24_TMPL |
Definition at line 89 of file bytestream.h.
Definition at line 89 of file bytestream.h.