61 void (*set)(
void *filter_options,
71 while (*
name !=
'\0') {
77 char *split = strchr(
name,
',');
87 "pairs separated with commas"),
str);
116 set(filter_options,
i, opts[
i].
map[j].
id,
value);
121 set(filter_options,
i, 0,
value);
127 set(filter_options,
i,
v,
value);
245 error_lzma_preset(
const char *valuestr)
258 if (valuestr[0] <
'0' || valuestr[0] >
'9')
259 error_lzma_preset(valuestr);
265 if (valuestr[1] !=
'\0') {
266 if (valuestr[1] ==
'e')
269 error_lzma_preset(valuestr);
271 if (valuestr[2] !=
'\0')
272 error_lzma_preset(valuestr);
276 error_lzma_preset(valuestr);
341 {
"mode", modes, 0, 0 },
342 {
"nice",
NULL, 2, 273 },
358 if (
options->nice_len < nice_len_min)
360 "least nice=%" PRIu32), nice_len_min);
#define LZMA_PRESET_DEFAULT
Default compression preset.
#define LZMA_PRESET_EXTREME
Extreme compression preset.
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len key
#define LZMA_DELTA_DIST_MIN
#define LZMA_DELTA_DIST_MAX
size_t map(int syms, int left, int len)
RZ_API void Ht_() free(HtName_(Ht) *ht)
char * xstrdup(const char *) ATTRIBUTE_MALLOC
static const char struct stat static buf struct stat static buf static vhangup int options
@ LZMA_MODE_FAST
Fast compression.
@ LZMA_MODE_NORMAL
Normal compression.
#define LZMA_DICT_SIZE_MIN
@ LZMA_MF_HC4
Hash Chain with 2-, 3-, and 4-byte hashing.
@ LZMA_MF_BT4
Binary Tree with 2-, 3-, and 4-byte hashing.
@ LZMA_MF_HC3
Hash Chain with 2- and 3-byte hashing.
@ LZMA_MF_BT2
Binary Tree with 2-byte hashing.
@ LZMA_MF_BT3
Binary Tree with 2- and 3-byte hashing.
void message_fatal(const char *fmt,...)
static void set_lzma(void *options, unsigned key, uint64_t value, const char *valuestr)
static void lzma_attribute((__noreturn__))
static void parse_options(const char *str, const option_map *opts, void(*set)(void *filter_options, unsigned key, uint64_t value, const char *valuestr), void *filter_options)
lzma_options_lzma * options_lzma(const char *str)
Parser for LZMA options.
lzma_options_bcj * options_bcj(const char *str)
Parser for BCJ options.
static void set_delta(void *options, unsigned key, uint64_t value, const char *valuestr lzma_attribute((__unused__)))
lzma_options_delta * options_delta(const char *str)
Parser for Delta options.
static void set_bcj(void *options, unsigned key, uint64_t value, const char *valuestr lzma_attribute((__unused__)))
uint32_t start_offset
Start offset for conversions.
Options for the Delta filter.
uint32_t dist
Delta distance.
Options specific to the LZMA1 and LZMA2 filters.
uint32_t nice_len
Nice length of a match.
uint32_t lp
Number of literal position bits.
uint32_t depth
Maximum search depth in the match finder.
uint32_t lc
Number of literal context bits.
uint32_t pb
Number of position bits.
uint32_t dict_size
Dictionary size in bytes.
Common includes, definitions, and prototypes.
uint64_t str_to_uint64(const char *name, const char *value, uint64_t min, uint64_t max)
Fancy version of strtoull()