]> git.tuebingen.mpg.de Git - paraslash.git/commit
compress: Overhaul the meaning of --aggressiveness.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 1 Sep 2018 19:07:54 +0000 (21:07 +0200)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 2 Sep 2018 15:42:54 +0000 (17:42 +0200)
commit99f21f0b6ecf29f949cdbce285e241a2e3ef3093
tree62d6aab9b1586f4223bba347dc1eafd7e596be92
parente0441a354b25f6fdd97480fe4e1f4f942347611f
compress: Overhaul the meaning of --aggressiveness.

Large values for the argument to --aggressiveless are next to useless
because they correspond to gain factors which are much too large. The
default value of four is already too large as it allows for a 16-fold
volume amplification.

This patch changes the meaning of the argument to be a multiplication
rather than a shift. Admissible values are restricted to the range
0..10, which allows for fine-grained control over the maximal gain
factor.

The maximal gain factor is four, so the inertia argument must not
exceed 14 to guarantee that no integer overflow can happen.
compress_filter.c
m4/lls/filter_cmd.suite.m4