Go to the documentation of this file.
41 tmp = bytestream2_get_byte(gb);
57 len += bytestream2_get_le32(gb);
60 len += bytestream2_get_le24(gb);
63 len += bytestream2_get_le16(gb);
66 len += bytestream2_get_byte(gb);
81 unsigned int off,
int len)
85 if (off > p - start ||
size <
len)
100 unsigned int off = bytestream2_get_byte(gb) | (
val & 0x38) << 5;
109 unsigned int off = bytestream2_get_le16(gb);
118 unsigned int off = bytestream2_get_le32(gb);
127 if (len < 0 || len > UINT_MAX)
159 uint8_t s = bytestream2_get_byte(gb);
static av_always_inline int bytestream2_seek(GetByteContext *g, int offset, int whence)
static int64_t bytestream2_get_levarint(GetByteContext *gb)
static double val(void *priv, double ch)
#define AVERROR_BUFFER_TOO_SMALL
Buffer too small.
static int snappy_copy(uint8_t *start, uint8_t *p, int size, unsigned int off, int len)
static int64_t decode_len(GetByteContext *gb)
static av_always_inline unsigned int bytestream2_get_buffer(GetByteContext *g, uint8_t *dst, unsigned int size)
static av_always_inline int bytestream2_get_bytes_left(GetByteContext *g)
static int snappy_literal(GetByteContext *gb, uint8_t *p, int size, int val)
static int snappy_copy4(GetByteContext *gb, uint8_t *start, uint8_t *p, int size, int val)
static int snappy_copy2(GetByteContext *gb, uint8_t *start, uint8_t *p, int size, int val)
static int shift(int a, int b)
int64_t ff_snappy_peek_uncompressed_length(GetByteContext *gb)
Get the uncompressed length of an input buffer compressed using the Snappy algorithm.
int ff_snappy_uncompress(GetByteContext *gb, uint8_t *buf, int64_t *size)
Decompress an input buffer using Snappy algorithm.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
static int snappy_copy1(GetByteContext *gb, uint8_t *start, uint8_t *p, int size, int val)