FFmpeg
|
Go to the source code of this file.
Enumerations | |
enum | { SNAPPY_LITERAL, SNAPPY_COPY_1, SNAPPY_COPY_2, SNAPPY_COPY_4 } |
Functions | |
static int64_t | bytestream2_get_levarint (GetByteContext *gb) |
static int | snappy_literal (GetByteContext *gb, uint8_t *p, int size, int val) |
static int | snappy_copy (uint8_t *start, uint8_t *p, int size, unsigned int off, int len) |
static int | snappy_copy1 (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 | snappy_copy4 (GetByteContext *gb, uint8_t *start, uint8_t *p, int size, int val) |
static int64_t | decode_len (GetByteContext *gb) |
int64_t | ff_snappy_peek_uncompressed_length (GetByteContext *gb) |
Get the uncompressed length of an input buffer compressed using the Snappy algorithm. More... | |
int | ff_snappy_uncompress (GetByteContext *gb, uint8_t *buf, int64_t *size) |
Decompress an input buffer using Snappy algorithm. More... | |
anonymous enum |
|
static |
Definition at line 32 of file snappy.c.
Referenced by decode_len().
|
static |
Definition at line 49 of file snappy.c.
Referenced by ff_snappy_uncompress().
|
static |
Definition at line 78 of file snappy.c.
Referenced by snappy_copy1(), snappy_copy2(), and snappy_copy4().
|
static |
Definition at line 94 of file snappy.c.
Referenced by ff_snappy_uncompress().
|
static |
Definition at line 103 of file snappy.c.
Referenced by ff_snappy_uncompress().
|
static |
Definition at line 112 of file snappy.c.
Referenced by ff_snappy_uncompress().
|
static |
Definition at line 121 of file snappy.c.
Referenced by ff_snappy_peek_uncompressed_length(), and ff_snappy_uncompress().
int64_t ff_snappy_peek_uncompressed_length | ( | GetByteContext * | gb | ) |
Get the uncompressed length of an input buffer compressed using the Snappy algorithm.
The GetByteContext is not advanced.
gb | input GetByteContext. |
Definition at line 131 of file snappy.c.
Referenced by hap_parse_frame_header().
int ff_snappy_uncompress | ( | GetByteContext * | gb, |
uint8_t * | buf, | ||
int64_t * | size | ||
) |
Decompress an input buffer using Snappy algorithm.
gb | input GetByteContext. |
buf | input buffer pointer. |
size | input/output on input, the size of buffer, on output, the size of the uncompressed data. |
Definition at line 141 of file snappy.c.
Referenced by decompress_chunks_thread().