#include <string.h>
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
Go to the source code of this file.
Data Structures | |
struct | GetByteContext |
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) |
Functions | |
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 AV_WB16 static AV_WB8 av_always_inline void | bytestream2_init (GetByteContext *g, const uint8_t *buf, int buf_size) |
static av_always_inline unsigned int | bytestream2_get_bytes_left (GetByteContext *g) |
static av_always_inline void | bytestream2_skip (GetByteContext *g, unsigned int size) |
static av_always_inline unsigned int | bytestream2_get_buffer (GetByteContext *g, uint8_t *dst, 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 | |
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 |
Definition at line 55 of file bytestream.h.
Definition at line 57 of file bytestream.h.
#define DEF_T | ( | type, | |||
name, | |||||
bytes, | |||||
read, | |||||
write | ) |
Value:
static av_always_inline type bytestream_get_ ## name(const uint8_t **b){\ (*b) += bytes;\ return read(*b - bytes);\ }\ static av_always_inline void bytestream_put_ ##name(uint8_t **b, const type value){\ write(*b, value);\ (*b) += bytes;\ }\ static av_always_inline type bytestream2_get_ ## name(GetByteContext *g)\ {\ if (g->buffer_end - g->buffer < bytes)\ return 0;\ return bytestream_get_ ## name(&g->buffer);\ }\ static av_always_inline type bytestream2_peek_ ## name(GetByteContext *g)\ {\ if (g->buffer_end - g->buffer < bytes)\ return 0;\ return read(g->buffer);\ }
Definition at line 33 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 92 of file bytestream.h.
static av_always_inline unsigned int bytestream2_get_bytes_left | ( | GetByteContext * | g | ) | [static] |
Definition at line 81 of file bytestream.h.
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 AV_WB16 static AV_WB8 av_always_inline void bytestream2_init | ( | GetByteContext * | g, | |
const uint8_t * | buf, | |||
int | buf_size | |||
) | [static] |
static av_always_inline void bytestream2_skip | ( | GetByteContext * | g, | |
unsigned int | size | |||
) | [static] |
Definition at line 86 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 102 of file bytestream.h.
Referenced by bethsoftvid_decode_frame(), bfi_decode_frame(), cdg_decode_frame(), decode_bdlt(), decode_copy(), decode_frame(), decode_packet(), decode_wdlt(), flac_read_header(), gif_read_header1(), gif_read_image(), ogm_header(), rtmp_write(), and xan_unpack().
static av_always_inline void bytestream_put_buffer | ( | uint8_t ** | b, | |
const uint8_t * | src, | |||
unsigned int | size | |||
) | [static] |
Definition at line 109 of file bytestream.h.
Referenced by 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(), and write_typecode().
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 AV_RB16 |
Definition at line 61 of file bytestream.h.
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_RB24 |
Definition at line 61 of file bytestream.h.
AV_WL32 AV_WL24 AV_WL16 AV_RB32 |
Definition at line 61 of file bytestream.h.
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 AV_WB16 AV_RB8 |
Definition at line 61 of file bytestream.h.
AV_WL32 AV_WL24 AV_RL16 |
Definition at line 61 of file bytestream.h.
AV_WL32 AV_RL24 |
Definition at line 61 of file bytestream.h.
AV_RL32 |
Definition at line 61 of file bytestream.h.
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 be16_TMPL |
Definition at line 61 of file bytestream.h.
AV_WL32 AV_WL24 AV_WL16 AV_WB32 be24_TMPL |
Definition at line 61 of file bytestream.h.
AV_WL32 AV_WL24 AV_WL16 be32_TMPL |
Definition at line 61 of file bytestream.h.
AV_WL32 AV_WL24 AV_WL16 AV_WB32 AV_WB24 AV_WB16 byte_TMPL |
Definition at line 61 of file bytestream.h.
AV_WL32 AV_WL24 le16_TMPL |
Definition at line 61 of file bytestream.h.
AV_WL32 le24_TMPL |
Definition at line 61 of file bytestream.h.
Definition at line 61 of file bytestream.h.