Enum Predictor

#[non_exhaustive]
#[repr(u16)]
pub enum Predictor

Variants

None = 1

No changes were made to the data

Horizontal = 2

The images' rows were processed to contain the difference of each pixel from the previous one.

This means that instead of having in order [r1, g1. b1, r2, g2 ...] you will find [r1, g1, b1, r2-r1, g2-g1, b2-b1, r3-r2, g3-g2, ...]

FloatingPoint = 3

Not currently supported

Implementations

impl Predictor

const fn from_u16(val: u16) -> Option<Self>
const fn to_u16(&self) -> u16

Trait Implementations

impl Clone for Predictor

fn clone(&self) -> Self

impl Copy for Predictor

impl Debug for Predictor

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

impl Eq for Predictor

impl Hash for Predictor

fn hash<__H: Hasher>(&self, state: &mut __H)

impl PartialEq for Predictor

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for Predictor

impl TiffValue for Predictor

const BYTE_LEN: u8 = <u16 as TiffValue>::BYTE_LEN;
const FIELD_TYPE: Type = Type::SHORT;
fn count(&self) -> usize
fn data(&self) -> Cow<'_, [u8]>

Auto Trait Implementations

impl Freeze for Predictor

impl RefUnwindSafe for Predictor

impl Send for Predictor

impl Sync for Predictor

impl Unpin for Predictor

impl UnsafeUnpin for Predictor

impl UnwindSafe for Predictor

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for Predictor where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for Predictor where ST: ?Sized, DT: ?Sized,

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

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

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

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

impl<T> From<T> for Predictor

impl<T> Read<Exclusive, BecauseExclusive> for Predictor where T: ?Sized,

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

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

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

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