#include "hfilter.h"
#include "filter.h"
#include <cstring>
Go to the source code of this file.
◆ ENCODE_CONTROL_BITS
| #define ENCODE_CONTROL_BITS |
( |
|
bits | ) |
|
Value:ASSERT (bits >= 0 && bits <= 3); \
controlData >>= 2; \
controlData |= (bits << 6); \
stats[bits]++; \
ASSERT (controlBits >= 2); \
controlBits -= 2; \
if (controlBits == 0) { \
*controlPtr = controlData; \
controlPtr = outPtr++; \
outBytes++; \
controlData = 0; \
controlBits = 8; \
}
◆ CODE_NewLiteral
| const uint CODE_NewLiteral = 3 |
◆ CODE_PrevLiteral
| const uint CODE_PrevLiteral = 1 |
◆ CODE_RunLength
| const uint CODE_RunLength = 2 |
◆ CODE_ZeroLiteral
| const uint CODE_ZeroLiteral = 0 |
◆ FLAG_Copied
| const byte FLAG_Copied = 0 |
◆ FLAG_Packed
| const byte FLAG_Packed = 1 |
◆ MIN_RLE_LENGTH
| const uint MIN_RLE_LENGTH = 9 |
◆ OVERFLOW_BYTES
| const uint OVERFLOW_BYTES = 8 |