#include <string.h>
#include "libavutil/common.h"
#include "libavutil/intreadwrite.h"
Go to the source code of this file.
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 | |
static av_always_inline unsigned int | bytestream_get_le32 (const uint8_t **b) |
static av_always_inline void | bytestream_put_le32 (uint8_t **b, const unsigned int value) |
static av_always_inline unsigned int | bytestream_get_le24 (const uint8_t **b) |
static av_always_inline void | bytestream_put_le24 (uint8_t **b, const unsigned int value) |
static av_always_inline unsigned int | bytestream_get_le16 (const uint8_t **b) |
static av_always_inline void | bytestream_put_le16 (uint8_t **b, const unsigned int value) |
static av_always_inline unsigned int | bytestream_get_be32 (const uint8_t **b) |
static av_always_inline void | bytestream_put_be32 (uint8_t **b, const unsigned int value) |
static av_always_inline unsigned int | bytestream_get_be24 (const uint8_t **b) |
static av_always_inline void | bytestream_put_be24 (uint8_t **b, const unsigned int value) |
static av_always_inline unsigned int | bytestream_get_be16 (const uint8_t **b) |
static av_always_inline void | bytestream_put_be16 (uint8_t **b, const unsigned int value) |
static av_always_inline unsigned int | bytestream_get_byte (const uint8_t **b) |
static av_always_inline void | bytestream_put_byte (uint8_t **b, const unsigned int value) |
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) |
Definition at line 39 of file bytestream.h.
Definition at line 41 of file bytestream.h.
#define DEF_T | ( | type, | |||
name, | |||||
bytes, | |||||
read, | |||||
write | ) |
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;\ }
Definition at line 29 of file bytestream.h.
static av_always_inline unsigned int bytestream_get_be16 | ( | const uint8_t ** | b | ) | [static] |
Definition at line 51 of file bytestream.h.
Referenced by adpcm_decode_frame(), alac_set_info(), atrac3_decode_init(), cook_decode_init(), decode_frame(), ff_init_range_decoder(), pcm_decode_frame(), ulti_decode_frame(), and vp56_init_range_decoder().
static av_always_inline unsigned int bytestream_get_be24 | ( | const uint8_t ** | b | ) | [static] |
Definition at line 50 of file bytestream.h.
Referenced by decode_frame(), pcm_decode_frame(), pcx_palette(), ulti_decode_frame(), vb_decode_palette(), and vp56_decode_frame().
static av_always_inline unsigned int bytestream_get_be32 | ( | const uint8_t ** | b | ) | [static] |
Definition at line 49 of file bytestream.h.
Referenced by adpcm_decode_frame(), alac_set_info(), ape_decode_frame(), atrac3_decode_init(), cook_decode_init(), decode_frame(), init_entropy_decoder(), and read_rle_sgi().
static av_always_inline unsigned int bytestream_get_buffer | ( | const uint8_t ** | b, | |
uint8_t * | dst, | |||
unsigned int | size | |||
) | [static] |
Definition at line 58 of file bytestream.h.
Referenced by bethsoftvid_decode_frame(), bfi_decode_frame(), decode_frame(), gif_read_header1(), gif_read_image(), and ogm_header().
static av_always_inline unsigned int bytestream_get_byte | ( | const uint8_t ** | b | ) | [static] |
Definition at line 52 of file bytestream.h.
Referenced by bfi_decode_frame(), bmp_decode_frame(), decode_frame(), expand_rle_row(), gif_parse_next_image(), gif_read_extension(), gif_read_header1(), gif_read_image(), mimic_decode_frame(), range_start_decoding(), tgq_decode_mb(), vb_decode_framedata(), vb_decode_palette(), and vorbis_header().
static av_always_inline unsigned int bytestream_get_le16 | ( | const uint8_t ** | b | ) | [static] |
Definition at line 47 of file bytestream.h.
Referenced by adpcm_decode_frame(), atrac3_decode_init(), bethsoftvid_decode_frame(), bfi_decode_frame(), bmp_decode_frame(), decode_frame(), decode_i2_frame(), gif_read_extension(), gif_read_header1(), gif_read_image(), ipvideo_decode_block_opcode_0x7(), ipvideo_decode_block_opcode_0x9(), iv_decode_frame(), mimic_decode_frame(), msnwc_tcp_probe(), ogm_header(), pcm_decode_frame(), and roqvideo_decode_frame().
static av_always_inline unsigned int bytestream_get_le24 | ( | const uint8_t ** | b | ) | [static] |
Definition at line 46 of file bytestream.h.
Referenced by bmp_decode_frame(), and cinvideo_decode_frame().
static av_always_inline unsigned int bytestream_get_le32 | ( | const uint8_t ** | b | ) | [static] |
Definition at line 45 of file bytestream.h.
Referenced by adpcm_decode_frame(), atrac3_decode_init(), bmp_decode_frame(), decode_frame(), decode_i2_frame(), fraps2_decode_plane(), ipvideo_decode_block_opcode_0x9(), iv_decode_frame(), mimic_decode_frame(), msnwc_tcp_probe(), mxf_get_d10_aes3_packet(), ogm_header(), roqvideo_decode_frame(), vorbis_comment(), and vorbis_header().
static av_always_inline void bytestream_put_be16 | ( | uint8_t ** | b, | |
const unsigned int | value | |||
) | [static] |
Definition at line 51 of file bytestream.h.
Referenced by encode_bitstream(), encode_dvb_subtitles(), encode_dvd_subtitles(), encode_frame(), mjpega_dump_header(), and ogg_build_flac_headers().
static av_always_inline void bytestream_put_be24 | ( | uint8_t ** | b, | |
const unsigned int | value | |||
) | [static] |
Definition at line 50 of file bytestream.h.
Referenced by encode_frame(), gif_image_write_header(), imx_dump_header(), ogg_build_flac_headers(), pam_encode_frame(), and pcm_encode_frame().
static av_always_inline void bytestream_put_be32 | ( | uint8_t ** | b, | |
const unsigned int | value | |||
) | [static] |
Definition at line 49 of file bytestream.h.
Referenced by encode_frame(), mjpega_dump_header(), and png_write_chunk().
static av_always_inline void bytestream_put_buffer | ( | uint8_t ** | b, | |
const uint8_t * | src, | |||
unsigned int | size | |||
) | [static] |
Definition at line 65 of file bytestream.h.
Referenced by gif_image_write_header(), gif_image_write_image(), imx_dump_header(), mjpega_dump_header(), ogg_build_flac_headers(), qtrle_encode_line(), write_codebooks(), and write_typecode().
static av_always_inline void bytestream_put_byte | ( | uint8_t ** | b, | |
const unsigned int | value | |||
) | [static] |
Definition at line 52 of file bytestream.h.
Referenced by bmp_encode_frame(), encode_frame(), gif_image_write_header(), gif_image_write_image(), imx_dump_header(), mjpega_dump_header(), ogg_build_flac_headers(), qtrle_encode_line(), read_uncompressed_sgi(), reconstruct_and_encode_image(), roq_dpcm_encode_frame(), roq_write_video_info_chunk(), and write_codebooks().
static av_always_inline void bytestream_put_le16 | ( | uint8_t ** | b, | |
const unsigned int | value | |||
) | [static] |
Definition at line 47 of file bytestream.h.
Referenced by add_entry(), bmp_encode_frame(), gif_image_write_header(), gif_image_write_image(), mxf_get_d10_aes3_packet(), reconstruct_and_encode_image(), roq_dpcm_encode_frame(), roq_write_video_info_chunk(), write_codebooks(), and write_typecode().
static av_always_inline void bytestream_put_le24 | ( | uint8_t ** | b, | |
const unsigned int | value | |||
) | [static] |
Definition at line 46 of file bytestream.h.
Referenced by mxf_get_d10_aes3_packet().
static av_always_inline void bytestream_put_le32 | ( | uint8_t ** | b, | |
const unsigned int | value | |||
) | [static] |
Definition at line 45 of file bytestream.h.
Referenced by add_entry(), bmp_encode_frame(), ogg_build_flac_headers(), reconstruct_and_encode_image(), roq_dpcm_encode_frame(), roq_write_video_info_chunk(), and write_codebooks().