Enum InterlaceInfo

pub enum InterlaceInfo

Describes which interlacing algorithm applies to a decoded row.

PNG (2003) specifies two interlace modes, but reserves future extensions.

See also Reader.next_interlaced_row.

Variants

Null(NullInfo)

The null method means no interlacing.

Adam7(Adam7Info)

The Adam7 algorithm derives its name from doing 7 passes over the image, only decoding a subset of all pixels in each pass. The following table shows pictorially what parts of each 8x8 area of the image is found in each pass:

1 6 4 6 2 6 4 6
7 7 7 7 7 7 7 7
5 6 5 6 5 6 5 6
7 7 7 7 7 7 7 7
3 6 4 6 3 6 4 6
7 7 7 7 7 7 7 7
5 6 5 6 5 6 5 6
7 7 7 7 7 7 7 7

Trait Implementations

impl Clone for InterlaceInfo

fn clone(&self) -> Self

impl Copy for InterlaceInfo

impl Debug for InterlaceInfo

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl Freeze for InterlaceInfo

impl RefUnwindSafe for InterlaceInfo

impl Send for InterlaceInfo

impl Sync for InterlaceInfo

impl Unpin for InterlaceInfo

impl UnsafeUnpin for InterlaceInfo

impl UnwindSafe for InterlaceInfo

Blanket Implementations

impl<T> Any for InterlaceInfo where T: 'static + ?Sized,

impl<T> Borrow<T> for InterlaceInfo where T: ?Sized,

impl<T> BorrowMut<T> for InterlaceInfo where T: ?Sized,

impl<T> CloneToUninit for InterlaceInfo where T: Clone,

impl<T> From<T> for InterlaceInfo

impl<T> ToOwned for InterlaceInfo where T: Clone,

impl<T, U> Into<U> for InterlaceInfo where U: From<T>,

impl<T, U> TryFrom<U> for InterlaceInfo where U: Into<T>,

impl<T, U> TryInto<U> for InterlaceInfo where U: TryFrom<T>,