Enum lodepng::ffi::FilterStrategy
[−]
[src]
#[repr(C)]pub enum FilterStrategy { ZERO, MINSUM, ENTROPY, BRUTE_FORCE, PREDEFINED, }
automatically use color type with less bits per pixel if losslessly possible. Default: AUTO
Variants
ZEROevery filter at zero
MINSUMUse filter that gives minumum sum, as described in the official PNG filter heuristic.
ENTROPYUse the filter type that gives smallest Shannon entropy for this scanline. Depending on the image, this is better or worse than minsum.
BRUTE_FORCEBrute-force-search PNG filters by compressing each filter for each scanline. Experimental, very slow, and only rarely gives better compression than MINSUM.
PREDEFINEDuse predefined_filters buffer: you specify the filter type for each scanline
Trait Implementations
impl Copy for FilterStrategy[src]
impl Clone for FilterStrategy[src]
fn clone(&self) -> FilterStrategy[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 FilterStrategy[src]
impl PartialEq for FilterStrategy[src]
fn eq(&self, __arg_0: &FilterStrategy) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.