#[repr(u16)]pub enum PhotometricInterpretation {
WhiteIsZero = 0,
BlackIsZero = 1,
Rgb = 2,
PaletteColor = 3,
TransparencyMask = 4,
Cmyk = 5,
YCbCr = 6,
CieLab = 8,
Cfa = 32_803,
LinearRaw = 34_892,
}Expand description
Photometric interpretation values (0x0106).
Variants§
WhiteIsZero = 0
WhiteIsZero (0)
BlackIsZero = 1
BlackIsZero (1)
Rgb = 2
RGB (2)
PaletteColor = 3
Palette color (3)
TransparencyMask = 4
Transparency mask (4)
Cmyk = 5
CMYK (5)
YCbCr = 6
YCbCr (6)
CieLab = 8
CIE Lab* (8)
Cfa = 32_803
Color Filter Array / Bayer (32803)
LinearRaw = 34_892
Linear Raw (34892)
Implementations§
Trait Implementations§
Source§impl BinRead for PhotometricInterpretation
impl BinRead for PhotometricInterpretation
Source§fn read_options<R: Read + Seek>(
__binrw_generated_var_reader: &mut R,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<Self>
fn read_options<R: Read + Seek>( __binrw_generated_var_reader: &mut R, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<Self>
Source§fn read_be<R>(reader: &mut R) -> Result<Self, Error>
fn read_be<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
big-endian byte order. Read moreSource§fn read_le<R>(reader: &mut R) -> Result<Self, Error>
fn read_le<R>(reader: &mut R) -> Result<Self, Error>
Read
Self from the reader using default arguments and assuming
little-endian byte order. Read moreSource§fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
fn read_ne<R>(reader: &mut R) -> Result<Self, Error>
Read
T from the reader assuming native-endian byte order. Read moreSource§fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
fn read_be_args<R>(reader: &mut R, args: Self::Args<'_>) -> Result<Self, Error>
Read
Self from the reader, assuming big-endian byte order, using the
given arguments. Read moreSource§impl BinWrite for PhotometricInterpretation
impl BinWrite for PhotometricInterpretation
Source§fn write_options<W: Write + Seek>(
&self,
__binrw_generated_var_writer: &mut W,
__binrw_generated_var_endian: Endian,
__binrw_generated_var_arguments: Self::Args<'_>,
) -> BinResult<()>
fn write_options<W: Write + Seek>( &self, __binrw_generated_var_writer: &mut W, __binrw_generated_var_endian: Endian, __binrw_generated_var_arguments: Self::Args<'_>, ) -> BinResult<()>
Source§fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_be<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming big-endian byte order. Read moreSource§fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_le<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming little-endian byte order. Read moreSource§fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
fn write_ne<W>(&self, writer: &mut W) -> Result<(), Error>
Write
Self to the writer assuming native-endian byte order. Read moreSource§fn write_be_args<W>(
&self,
writer: &mut W,
args: Self::Args<'_>,
) -> Result<(), Error>
fn write_be_args<W>( &self, writer: &mut W, args: Self::Args<'_>, ) -> Result<(), Error>
Write
Self to the writer, assuming big-endian byte order, using the
given arguments. Read moreSource§impl Clone for PhotometricInterpretation
impl Clone for PhotometricInterpretation
Source§fn clone(&self) -> PhotometricInterpretation
fn clone(&self) -> PhotometricInterpretation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PhotometricInterpretation
impl Debug for PhotometricInterpretation
Source§impl PartialEq for PhotometricInterpretation
impl PartialEq for PhotometricInterpretation
Source§fn eq(&self, other: &PhotometricInterpretation) -> bool
fn eq(&self, other: &PhotometricInterpretation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PhotometricInterpretation
impl Eq for PhotometricInterpretation
impl StructuralPartialEq for PhotometricInterpretation
Auto Trait Implementations§
impl Freeze for PhotometricInterpretation
impl RefUnwindSafe for PhotometricInterpretation
impl Send for PhotometricInterpretation
impl Sync for PhotometricInterpretation
impl Unpin for PhotometricInterpretation
impl UnsafeUnpin for PhotometricInterpretation
impl UnwindSafe for PhotometricInterpretation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more