ReactOS 0.4.16-dev-122-g325d74c
|
#include <stdlib.h>
#include <string.h>
#include "bitstream.h"
#include "compiler.h"
#include "fse.h"
#include "error_private.h"
#include <ntifs.h>
#include <ntddk.h>
Go to the source code of this file.
Macros | |
#define | FSE_STATIC_LINKING_ONLY |
#define | FSE_isError ERR_isError |
#define | FSE_STATIC_ASSERT(c) DEBUG_STATIC_ASSERT(c) /* use only *after* variable declarations */ |
#define | FSE_CAT(X, Y) X##Y |
#define | FSE_FUNCTION_NAME(X, Y) FSE_CAT(X,Y) |
#define | FSE_TYPE_NAME(X, Y) FSE_CAT(X,Y) |
#define | FSED_ALLOC_TAG 0x64455346 |
#define | FSE_GETSYMBOL(statePtr) fast ? FSE_decodeSymbolFast(statePtr, &bitD) : FSE_decodeSymbol(statePtr, &bitD) |
Typedefs | |
typedef FSE_DTable | DTable_max_t[FSE_DTABLE_SIZE_U32(FSE_MAX_TABLELOG)] |
Functions | |
FSE_DTable * | FSE_createDTable (unsigned tableLog) |
void | FSE_freeDTable (FSE_DTable *dt) |
size_t | FSE_buildDTable (FSE_DTable *dt, const short *normalizedCounter, unsigned maxSymbolValue, unsigned tableLog) |
size_t | FSE_buildDTable_rle (FSE_DTable *dt, BYTE symbolValue) |
size_t | FSE_buildDTable_raw (FSE_DTable *dt, unsigned nbBits) |
FORCE_INLINE_TEMPLATE size_t | FSE_decompress_usingDTable_generic (void *dst, size_t maxDstSize, const void *cSrc, size_t cSrcSize, const FSE_DTable *dt, const unsigned fast) |
size_t | FSE_decompress_usingDTable (void *dst, size_t originalSize, const void *cSrc, size_t cSrcSize, const FSE_DTable *dt) |
size_t | FSE_decompress_wksp (void *dst, size_t dstCapacity, const void *cSrc, size_t cSrcSize, FSE_DTable *workSpace, unsigned maxLog) |
size_t | FSE_decompress (void *dst, size_t dstCapacity, const void *cSrc, size_t cSrcSize) |
#define FSE_GETSYMBOL | ( | statePtr | ) | fast ? FSE_decodeSymbolFast(statePtr, &bitD) : FSE_decodeSymbol(statePtr, &bitD) |
#define FSE_isError ERR_isError |
Definition at line 33 of file fse_decompress.c.
Definition at line 34 of file fse_decompress.c.
#define FSE_STATIC_LINKING_ONLY |
Definition at line 23 of file fse_decompress.c.
#define FSED_ALLOC_TAG 0x64455346 |
Definition at line 59 of file fse_decompress.c.
typedef FSE_DTable DTable_max_t[FSE_DTABLE_SIZE_U32(FSE_MAX_TABLELOG)] |
Definition at line 279 of file fse_decompress.c.
size_t FSE_buildDTable | ( | FSE_DTable * | dt, |
const short * | normalizedCounter, | ||
unsigned | maxSymbolValue, | ||
unsigned | tableLog | ||
) |
FSE_buildDTable(): Builds 'dt', which must be already allocated, using FSE_createDTable(). return : 0, or an errorCode, which can be tested using FSE_isError()
Definition at line 73 of file fse_decompress.c.
Referenced by FSE_decompress_wksp().
size_t FSE_buildDTable_raw | ( | FSE_DTable * | dt, |
unsigned | nbBits | ||
) |
Definition at line 154 of file fse_decompress.c.
size_t FSE_buildDTable_rle | ( | FSE_DTable * | dt, |
BYTE | symbolValue | ||
) |
Definition at line 136 of file fse_decompress.c.
FSE_DTable * FSE_createDTable | ( | unsigned | tableLog | ) |
Definition at line 62 of file fse_decompress.c.
FSE_decompress(): Decompress FSE data from buffer 'cSrc', of size 'cSrcSize', into already allocated destination buffer 'dst', of size 'dstCapacity'.
Important ** : FSE_decompress() does not decompress non-compressible nor RLE data !!! Why ? : making this distinction requires a header. Header management is intentionally delegated to the user layer, which can better manage special cases.
Definition at line 281 of file fse_decompress.c.
size_t FSE_decompress_usingDTable | ( | void * | dst, |
size_t | dstCapacity, | ||
const void * | cSrc, | ||
size_t | cSrcSize, | ||
const FSE_DTable * | dt | ||
) |
FSE_decompress_usingDTable(): Decompress compressed source cSrc
of size cSrcSize
using dt
into dst
which must be already allocated.
dstCapacity
), or an errorCode, which can be tested using FSE_isError() Definition at line 243 of file fse_decompress.c.
Referenced by FSE_decompress_wksp().
FORCE_INLINE_TEMPLATE size_t FSE_decompress_usingDTable_generic | ( | void * | dst, |
size_t | maxDstSize, | ||
const void * | cSrc, | ||
size_t | cSrcSize, | ||
const FSE_DTable * | dt, | ||
const unsigned | fast | ||
) |
Definition at line 180 of file fse_decompress.c.
Referenced by FSE_decompress_usingDTable().
size_t FSE_decompress_wksp | ( | void * | dst, |
size_t | dstCapacity, | ||
const void * | cSrc, | ||
size_t | cSrcSize, | ||
FSE_DTable * | workSpace, | ||
unsigned | maxLog | ||
) |
Definition at line 257 of file fse_decompress.c.
Referenced by FSE_decompress(), and HUF_readStats().
void FSE_freeDTable | ( | FSE_DTable * | dt | ) |
Definition at line 68 of file fse_decompress.c.