FFmpeg
Functions
snappy.h File Reference

Snappy decompression. More...

#include <stdint.h>
#include "bytestream.h"

Go to the source code of this file.

Functions

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...
 

Detailed Description

Snappy decompression.

Snappy is a compression/decompression algorithm that does not aim for maximum compression, but rather for very high speeds and reasonable compression.

http://en.wikipedia.org/wiki/Snappy_%28software%29

Definition in file snappy.h.

Function Documentation

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.

Parameters
gbinput GetByteContext.
Returns
A positive length on success, AVERROR otherwise.

Definition at line 133 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.

Parameters
gbinput GetByteContext.
bufinput buffer pointer.
sizeinput/output on input, the size of buffer, on output, the size of the uncompressed data.
Returns
0 if success, AVERROR otherwise.

Definition at line 143 of file snappy.c.

Referenced by decompress_chunks_thread().