ZXC 1.0.3
High-performance asymmetric lossless compression library
Loading...
Searching...
No Matches
zxc_opts.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause */
2/*
3 * ZXC - High-performance lossless compression
4 * Copyright (c) Bertrand Lebonnois and contributors.
5 */
6
19
20#ifndef ZXC_OPTS_H
21#define ZXC_OPTS_H
22
23#include <stddef.h>
24#include <stdint.h>
25
26#include "zxc_export.h"
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
40typedef void (*zxc_progress_callback_t)(uint64_t bytes_processed, uint64_t bytes_total,
41 const void* user_data);
42
70
78typedef enum {
88
102ZXC_EXPORT int zxc_cparam_bounds(zxc_cparam_t param, int64_t* min, int64_t* max);
103
108ZXC_EXPORT int zxc_dparam_bounds(zxc_dparam_t param, int64_t* min, int64_t* max);
109
110#ifdef __cplusplus
111}
112#endif
113
114#endif // ZXC_OPTS_H
Platform-specific symbol visibility macros.
zxc_cparam_t
Compression parameters, set on a zxc_cctx with zxc_cctx_set_param().
Definition zxc_opts.h:53
@ ZXC_C_CHECKSUM
1 appends the block checksums and the archive digest; default 0.
Definition zxc_opts.h:66
@ ZXC_C_LEVEL
Compression level, 1 to 7 (zxc_compression_level_t); default ZXC_LEVEL_DEFAULT.
Definition zxc_opts.h:56
@ ZXC_C_BLOCK_SIZE
Block size in bytes, a power of two in [ZXC_BLOCK_SIZE_MIN, ZXC_BLOCK_SIZE_MAX]; default ZXC_BLOCK_SI...
Definition zxc_opts.h:59
@ ZXC_C_THREADS
Workers of the FILE* pipeline, at most ZXC_MAX_THREADS; the reader and writer come on top.
Definition zxc_opts.h:64
@ ZXC_C_SEEKABLE
1 appends a seek table for random-access decompression; default 0.
Definition zxc_opts.h:68
zxc_dparam_t
Decompression parameters, set on a zxc_dctx with zxc_dctx_set_param().
Definition zxc_opts.h:78
@ ZXC_D_CHECKSUM
1 verifies the block checksums and the archive digest when the archive carries them; default 0,...
Definition zxc_opts.h:86
@ ZXC_D_THREADS
Workers of the FILE* pipeline, at most ZXC_MAX_THREADS; the reader and writer come on top.
Definition zxc_opts.h:83
int zxc_cparam_bounds(zxc_cparam_t param, int64_t *min, int64_t *max)
Reports the accepted range of a compression parameter.
void(* zxc_progress_callback_t)(uint64_t bytes_processed, uint64_t bytes_total, const void *user_data)
Progress callback function type.
Definition zxc_opts.h:40
int zxc_dparam_bounds(zxc_dparam_t param, int64_t *min, int64_t *max)
Reports the accepted range of a decompression parameter.