Enum png::FilterType [−][src]
#[repr(u8)]
pub enum FilterType {
NoFilter,
Sub,
Up,
Avg,
Paeth,
}
Expand description
The byte level filter applied to scanlines to prepare them for compression.
Compression in general benefits from repetitive data. The filter is a content-aware method of compressing the range of occurring byte values to help the compression algorithm. Note that this does not operate on pixels but on raw bytes of a scanline.
Variants
Implementations
u8 -> Self. Temporary solution until Rust provides a canonical one.
Trait Implementations
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
Mutably borrows from an owned value. Read more