Enum lodepng::ffi::FilterStrategy [] [src]

pub enum FilterStrategy {
    LFS_ZERO,
    LFS_MINSUM,
    LFS_ENTROPY,
    LFS_BRUTE_FORCE,
    LFS_PREDEFINED,
}

automatically use color type with less bits per pixel if losslessly possible. Default: AUTO

Variants

every filter at zero

Use filter that gives minumum sum, as described in the official PNG filter heuristic.

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-search PNG filters by compressing each filter for each scanline. Experimental, very slow, and only rarely gives better compression than MINSUM.

use predefined_filters buffer: you specify the filter type for each scanline

Trait Implementations

impl Copy for FilterStrategy
[src]

impl Clone for FilterStrategy
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for FilterStrategy
[src]

Formats the value using the given formatter.

impl PartialEq for FilterStrategy
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for FilterStrategy
[src]