|
ZXC 0.15.0
High-performance asymmetric lossless compression library
|
Header specific to General (LZ-based) compression blocks. More...
#include <zxc_internal.h>
Data Fields | |
| uint32_t | n_sequences |
| The total count of LZ sequences in the block. | |
| uint32_t | n_literals |
| The total count of literal bytes. | |
| uint8_t | enc_lit |
| Encoding method used for the literal stream. | |
| uint8_t | enc_tok |
| GLO only: encoding of the token section, whose bytes each pack a literal length and a match length nibble. | |
| uint8_t | enc_mlen |
| Reserved, written 0 and ignored on decode. | |
| uint8_t | enc_off |
| GLO only: width of the offset stream (1 = 1-byte, 0 = 2-byte). | |
Header specific to General (LZ-based) compression blocks.
This header follows the main block header when the block type is GLO/GHI. It describes the layout of sequences and literals.
Definition at line 1254 of file zxc_internal.h.
| zxc_gnr_header_t::enc_lit |
Encoding method used for the literal stream.
Definition at line 1257 of file zxc_internal.h.
| zxc_gnr_header_t::enc_mlen |
Reserved, written 0 and ignored on decode.
Match lengths have no stream of their own: they share the token byte and spill into the extras.
Definition at line 1259 of file zxc_internal.h.
| zxc_gnr_header_t::enc_off |
GLO only: width of the offset stream (1 = 1-byte, 0 = 2-byte).
GHI has no offset stream, so it writes 0 and ignores the field on decode.
Definition at line 1260 of file zxc_internal.h.
| zxc_gnr_header_t::enc_tok |
GLO only: encoding of the token section, whose bytes each pack a literal length and a match length nibble.
Only RAW and HUFFMAN (level 7) occur.
Definition at line 1258 of file zxc_internal.h.
| zxc_gnr_header_t::n_literals |
The total count of literal bytes.
Definition at line 1256 of file zxc_internal.h.
| zxc_gnr_header_t::n_sequences |
The total count of LZ sequences in the block.
Definition at line 1255 of file zxc_internal.h.
Referenced by zxc_encode_block_ghi(), and zxc_encode_block_glo().