Scid  4.6.5
Macros | Variables
filter.cpp File Reference
#include "filter.h"
#include <cstring>
Include dependency graph for filter.cpp:

Go to the source code of this file.

Macros

#define ENCODE_CONTROL_BITS(bits)
 

Variables

const uint OVERFLOW_BYTES = 8
 
const byte FLAG_Packed = 1
 
const byte FLAG_Copied = 0
 
const uint CODE_ZeroLiteral = 0
 
const uint CODE_PrevLiteral = 1
 
const uint CODE_RunLength = 2
 
const uint CODE_NewLiteral = 3
 
const uint MIN_RLE_LENGTH = 9
 

Macro Definition Documentation

#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; \
}
#define ASSERT(f)
Definition: common.h:67
statsfmt
Definition: optable.tcl:717

Variable Documentation

const uint CODE_NewLiteral = 3

Definition at line 136 of file filter.cpp.

const uint CODE_PrevLiteral = 1

Definition at line 134 of file filter.cpp.

const uint CODE_RunLength = 2

Definition at line 135 of file filter.cpp.

const uint CODE_ZeroLiteral = 0

Definition at line 133 of file filter.cpp.

const byte FLAG_Copied = 0

Definition at line 131 of file filter.cpp.

const byte FLAG_Packed = 1

Definition at line 130 of file filter.cpp.

const uint MIN_RLE_LENGTH = 9

Definition at line 138 of file filter.cpp.

const uint OVERFLOW_BYTES = 8

Definition at line 37 of file filter.cpp.