|
Krita Source Code Documentation
|
Go to the source code of this file.
Macros | |
| #define | HASH_LOG 12 |
| #define | HASH_MASK (HASH_SIZE-1) |
| #define | HASH_SIZE (1<< HASH_LOG) |
| #define | MAX_COPY 32 |
| #define | MAX_DISTANCE 8192 |
| #define | MAX_LEN 264 /* 256 + 8 */ |
| #define | UPDATE_HASH(v, p) { v = *((quint16*)p); v ^= *((quint16*)(p+1))^(v>>(16-HASH_LOG)); } |
Functions | |
| int | lzff_compress (const void *input, int length, void *output, int) |
| int | lzff_decompress (const void *input, int length, void *output, int maxout) |
| #define HASH_LOG 12 |
Definition at line 12 of file kis_lzf_compression.cpp.
| #define HASH_MASK (HASH_SIZE-1) |
Definition at line 14 of file kis_lzf_compression.cpp.
| #define HASH_SIZE (1<< HASH_LOG) |
Definition at line 13 of file kis_lzf_compression.cpp.
| #define MAX_COPY 32 |
Definition at line 21 of file kis_lzf_compression.cpp.
| #define MAX_DISTANCE 8192 |
Definition at line 23 of file kis_lzf_compression.cpp.
| #define MAX_LEN 264 /* 256 + 8 */ |
Definition at line 22 of file kis_lzf_compression.cpp.
Definition at line 19 of file kis_lzf_compression.cpp.
Definition at line 28 of file kis_lzf_compression.cpp.
References distance(), HASH_MASK, HASH_SIZE, length(), MAX_COPY, MAX_DISTANCE, MAX_LEN, and UPDATE_HASH.
Definition at line 173 of file kis_lzf_compression.cpp.
References length().