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
ZERO
every filter at zero
MINSUM
Use filter that gives minumum sum, as described in the official PNG filter heuristic.
ENTROPY
Use the filter type that gives smallest Shannon entropy for this scanline. Depending on the image, this is better or worse than minsum.
BRUTE_FORCE
Brute-force-search PNG filters by compressing each filter for each scanline. Experimental, very slow, and only rarely gives better compression than MINSUM.
PREDEFINED
use predefined_filters buffer: you specify the filter type for each scanline
Trait Implementations
impl Copy for FilterStrategy
[src]
impl Copy for FilterStrategy
impl Clone for FilterStrategy
[src]
impl Clone for FilterStrategy
fn clone(&self) -> FilterStrategy
[src]
fn clone(&self) -> FilterStrategy
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for FilterStrategy
[src]
impl Debug for FilterStrategy
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for FilterStrategy
[src]
impl PartialEq for FilterStrategy
fn eq(&self, other: &FilterStrategy) -> bool
[src]
fn eq(&self, other: &FilterStrategy) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for FilterStrategy
[src]
impl Eq for FilterStrategy
Auto Trait Implementations
impl Send for FilterStrategy
impl Send for FilterStrategy
impl Sync for FilterStrategy
impl Sync for FilterStrategy