a basic LWZ decoder
More...
|
| LWZDecoder (unsigned char const *data, unsigned long len) |
| constructor
|
|
bool | decode (std::vector< unsigned char > &output) |
|
a basic LWZ decoder
- Note
- this code is freely inspired from https://github.com/MichaelDipperstein/lzw GLP 3
◆ LWZDecoder() [1/2]
Canvas5Structure::LWZDecoder::LWZDecoder |
( |
unsigned char const * |
data, |
|
|
unsigned long |
len |
|
) |
| |
|
inline |
◆ LWZDecoder() [2/2]
Canvas5Structure::LWZDecoder::LWZDecoder |
( |
LWZDecoder const & |
| ) |
|
|
protecteddelete |
◆ decode()
bool Canvas5Structure::LWZDecoder::decode |
( |
std::vector< unsigned char > & |
output | ) |
|
◆ decodeRec()
unsigned char Canvas5Structure::LWZDecoder::decodeRec |
( |
unsigned int |
code, |
|
|
std::vector< unsigned char > & |
output |
|
) |
| |
|
inlineprotected |
◆ getBit()
unsigned Canvas5Structure::LWZDecoder::getBit |
( |
| ) |
const |
|
inlineprotected |
◆ getCodeWord()
unsigned Canvas5Structure::LWZDecoder::getCodeWord |
( |
unsigned |
codeLen | ) |
const |
|
inlineprotected |
◆ initDictionary()
void Canvas5Structure::LWZDecoder::initDictionary |
( |
| ) |
|
|
inlineprotected |
◆ operator=()
◆ e_firstCode
int const Canvas5Structure::LWZDecoder::e_firstCode =(1<<8) |
|
static |
◆ e_maxCode
int const Canvas5Structure::LWZDecoder::e_maxCode =(1<<e_maxCodeLen) |
|
static |
◆ e_maxCodeLen
int const Canvas5Structure::LWZDecoder::e_maxCodeLen =12 |
|
static |
◆ m_bit
unsigned long Canvas5Structure::LWZDecoder::m_bit |
|
protected |
◆ m_data
unsigned char const* Canvas5Structure::LWZDecoder::m_data |
|
protected |
◆ m_dictionary
std::vector<LWZEntry> Canvas5Structure::LWZDecoder::m_dictionary |
|
protected |
◆ m_len
unsigned long Canvas5Structure::LWZDecoder::m_len |
|
protected |
◆ m_pos
unsigned long Canvas5Structure::LWZDecoder::m_pos |
|
mutableprotected |
The documentation for this struct was generated from the following file: