#include <string.h>
#include "codex.h"
#include "huffcodex.h"
Go to the source code of this file.
◆ __HUFREAD
◆ GET16BITS
Value: bitsunshifted = qs[0] | (bitsunshifted << 8);\
bitsunshifted = qs[1] | (bitsunshifted << 8);\
qs += 2;
Definition at line 49 of file huffdecode.cpp.
◆ SQgetbits
| #define SQgetbits |
( |
| v, |
|
|
| n ) |
Value: if (n) \
{ \
v = bits >> (32-(n));\
bits <<= (n);\
bitsleft -= (n);\
} \
\
if (bitsleft<0)\
{\
GET16BITS() \
\
bits = bitsunshifted<<(-bitsleft);\
bitsleft += 16;\
}
Definition at line 55 of file huffdecode.cpp.
◆ SQgetnum
◆ SQmemset
| #define SQmemset |
( |
| ptr, |
|
|
| val, |
|
|
| amt ) |
Value:{\
int i = amt/16;\
int intval = (val<<24)|(val<<16)|(val<<8)|val;\
int* lptr = (int*)ptr;\
\
while (i)\
{\
lptr[0] = intval;\
lptr[1] = intval;\
lptr[2] = intval;\
lptr[3] = intval;\
lptr += 4;\
--i;\
}\
}\
Definition at line 120 of file huffdecode.cpp.
◆ HUFF_decode()
| int GCALL HUFF_decode |
( |
void * | dest, |
|
|
const void * | compresseddata, |
|
|
int * | compressedsize ) |
◆ HUFF_is()
| bool GCALL HUFF_is |
( |
const void * | compresseddata | ) |
|
◆ HUFF_size()
| int GCALL HUFF_size |
( |
const void * | compresseddata | ) |
|