Enum Filter
#[non_exhaustive]
pub enum Filter
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.
Details on how each filter works can be found in the PNG Book.
The default filter is Adaptive, which uses heuristics to select the best filter for every row.
Variants
-
NoFilter -
Sub -
Up -
Avg -
Paeth -
Adaptive -
MinEntropy
Trait Implementations
impl Clone for Filter
fn clone(&self) -> Self
impl Copy for Filter
impl Debug for Filter
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for Filter
fn default() -> Self
impl Eq for Filter
impl PartialEq for Filter
fn eq(&self, other: &Self) -> bool