|
ZXC 1.0.3
High-performance asymmetric lossless compression library
|
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). | |
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.
| #define ZXC_BLOCK_SIZE_DEFAULT (512 * 1024) |
Default block size (512 KB).
Definition at line 71 of file zxc_constants.h.
Referenced by zxc_cctx_set_param(), zxc_cparams_defaults(), zxc_cstream_create(), zxc_dstream_in_size(), zxc_dstream_out_size(), and zxc_stream_compress().
| #define ZXC_BLOCK_SIZE_MAX (1U << ZXC_BLOCK_SIZE_MAX_LOG2) |
Maximum allowed block size (2 MB = 2^21).
Definition at line 75 of file zxc_constants.h.
Referenced by zxc_compress_block_at(), zxc_compress_block_bound(), zxc_cparam_bounds(), zxc_decompress_block(), zxc_decompress_block_bound(), zxc_decompress_block_safe(), and zxc_validate_block_size().
| #define ZXC_BLOCK_SIZE_MAX_LOG2 21 |
log2(ZXC_BLOCK_SIZE_MAX) - exponent code for maximum block size.
Definition at line 69 of file zxc_constants.h.
Referenced by zxc_read_file_header().
| #define ZXC_BLOCK_SIZE_MIN (1U << ZXC_BLOCK_SIZE_MIN_LOG2) |
Minimum allowed block size (4 KB = 2^12).
Definition at line 73 of file zxc_constants.h.
Referenced by zxc_block_size_ceil(), zxc_compress_bound(), zxc_cparam_bounds(), and zxc_validate_block_size().
| #define ZXC_BLOCK_SIZE_MIN_LOG2 12 |
log2(ZXC_BLOCK_SIZE_MIN) - exponent code for minimum block size.
Definition at line 67 of file zxc_constants.h.