ZXC 0.15.0
High-performance asymmetric lossless compression library
Loading...
Searching...
No Matches
Block Size

Block size constraints for compression. More...

Macros

#define ZXC_BLOCK_SIZE_MIN_LOG2   12
 log2(ZXC_BLOCK_SIZE_MIN) - exponent code for minimum block size.
 
#define ZXC_BLOCK_SIZE_MAX_LOG2   21
 log2(ZXC_BLOCK_SIZE_MAX) - exponent code for maximum block size.
 
#define ZXC_BLOCK_SIZE_DEFAULT   (512 * 1024)
 Default block size (512 KB).
 
#define ZXC_BLOCK_SIZE_MIN   (1U << ZXC_BLOCK_SIZE_MIN_LOG2)
 Minimum allowed block size (4 KB = 2^12).
 
#define ZXC_BLOCK_SIZE_MAX   (1U << ZXC_BLOCK_SIZE_MAX_LOG2)
 Maximum allowed block size (2 MB = 2^21).
 

Detailed Description

Block size constraints for compression.

Block size must be a power of two in range [ZXC_BLOCK_SIZE_MIN, ZXC_BLOCK_SIZE_MAX]. Pass 0 to any API to use ZXC_BLOCK_SIZE_DEFAULT.

Macro Definition Documentation

◆ ZXC_BLOCK_SIZE_DEFAULT

#define ZXC_BLOCK_SIZE_DEFAULT   (512 * 1024)

Default block size (512 KB).

Definition at line 60 of file zxc_constants.h.

◆ ZXC_BLOCK_SIZE_MAX

#define ZXC_BLOCK_SIZE_MAX   (1U << ZXC_BLOCK_SIZE_MAX_LOG2)

Maximum allowed block size (2 MB = 2^21).

Definition at line 64 of file zxc_constants.h.

◆ ZXC_BLOCK_SIZE_MAX_LOG2

#define ZXC_BLOCK_SIZE_MAX_LOG2   21

log2(ZXC_BLOCK_SIZE_MAX) - exponent code for maximum block size.

Definition at line 58 of file zxc_constants.h.

◆ ZXC_BLOCK_SIZE_MIN

#define ZXC_BLOCK_SIZE_MIN   (1U << ZXC_BLOCK_SIZE_MIN_LOG2)

Minimum allowed block size (4 KB = 2^12).

Definition at line 62 of file zxc_constants.h.

◆ ZXC_BLOCK_SIZE_MIN_LOG2

#define ZXC_BLOCK_SIZE_MIN_LOG2   12

log2(ZXC_BLOCK_SIZE_MIN) - exponent code for minimum block size.

Definition at line 56 of file zxc_constants.h.