Enum nannou::image::codecs::png::FilterType [−][src]
pub enum FilterType { NoFilter, Sub, Up, Avg, Paeth, // some variants omitted }
Expand description
Filter algorithms used to process image data to improve compression.
The default filter is Sub
though this default may change in the future, most notable if an
adaptive encoding option is implemented.
Variants
No processing done, best used for low bit depth greyscale or data with a low color count
Filters based on previous pixel in the same scanline
Filters based on the scanline above
Filters based on the average of left and right neighbor pixels
Algorithm that takes into account the left, upper left, and above pixels
Trait Implementations
Returns the “default value” for a type. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for FilterType
impl Send for FilterType
impl Sync for FilterType
impl Unpin for FilterType
impl UnwindSafe for FilterType
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
Mutably borrows from an owned value. Read more
Convert into T with values clamped to the color defined bounds Read more
Convert into T. The resulting color might be invalid in its color space Read more
Convert into T, returning ok if the color is inside of its defined range,
otherwise an OutOfBounds
error is returned which contains the unclamped color. Read more
Compare self to key
and return true
if they are equal.
pub fn vzip(self) -> V