Introduced class OptVar for tracking optionally set options. Also

added three new options for finetuning lzma compression.
This commit is contained in:
Markus F.X.J. Oberhumer
2006-10-12 13:47:15 +02:00
parent 407a9e5be0
commit 0ef3f75d7a
5 changed files with 135 additions and 44 deletions
+7
View File
@@ -189,6 +189,13 @@ bool Packer::compress(upx_bytep in, upx_bytep out,
step = 0;
#endif
}
if (M_IS_LZMA(ph.method))
{
// info: these are optional assignments which query OptVar::is_set
cconf.conf_lzma.pos_bits = opt->crp.crp_lzma.pos_bits;
cconf.conf_lzma.lit_pos_bits = opt->crp.crp_lzma.lit_pos_bits;
cconf.conf_lzma.lit_context_bits = opt->crp.crp_lzma.lit_context_bits;
}
if (uip->ui_pass >= 0)
uip->ui_pass++;
uip->startCallback(ph.u_len, step, uip->ui_pass, uip->ui_total_passes);