37 #define LZF_LITERAL_MAX (1 << 5)
38 #define LZF_LONG_BACKREF 7 + 2
47 uint8_t s = bytestream2_get_byte(gb);
64 int off = ((
s & 0x1f) << 8) + 1;
67 l += bytestream2_get_byte(gb);
69 off += bytestream2_get_byte(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)
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
void av_memcpy_backptr(uint8_t *dst, int back, int cnt)
Overlapping memcpy() implementation.
int av_reallocp(void *ptr, size_t size)
Allocate, reallocate, or free a block of memory through a pointer to a pointer.
int ff_lzf_uncompress(GetByteContext *gb, uint8_t **buf, int64_t *size)
Memory handling functions.