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) -> usizefn data(&self) -> Cow<'_, [u8]>