Struct zopfli_rs::Options
[−]
[src]
pub struct Options { pub verbose: bool, pub verbose_more: bool, pub iterations: i32, pub block_splitting: bool, pub block_splitting_max: i32, }
Options used to tweak optimization versus speed of compression.
Fields
verbose: bool
Prints statisitcs on compression to the console. Default: false
.
verbose_more: bool
Prints other statisitcs on block splitting et cetra to the console. Default: false
.
iterations: i32
Maximum amount of times to rerun forward and backward pass to optimize LZ77 compression
cost. Good values: 10
, 15
for small files, 5
for files over several MB in size or it
will be too slow. Default: 15
.
block_splitting: bool
If true
, splits the data in multiple deflate blocks with optimal choice
for the block boundaries. Block splitting gives better compression. Default: true
.
block_splitting_max: i32
Maximum amount of blocks to split into (0
for unlimited, but this can give extreme
results that hurt compression on some files). Default: 15
.
Trait Implementations
impl Copy for Options
[src]
impl Clone for Options
[src]
fn clone(&self) -> Options
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Options
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more