Enum jpeg_decoder::PixelFormat
source · pub enum PixelFormat {
L8,
L16,
RGB24,
CMYK32,
}
Expand description
An enumeration over combinations of color spaces and bit depths a pixel can have.
Variants§
L8
Luminance (grayscale), 8 bits
L16
Luminance (grayscale), 16 bits
RGB24
RGB, 8 bits per channel
CMYK32
CMYK, 8 bits per channel
Implementations§
source§impl PixelFormat
impl PixelFormat
sourcepub fn pixel_bytes(&self) -> usize
pub fn pixel_bytes(&self) -> usize
Determine the size in bytes of each pixel in this format
Trait Implementations§
source§impl Clone for PixelFormat
impl Clone for PixelFormat
source§fn clone(&self) -> PixelFormat
fn clone(&self) -> PixelFormat
Returns a copy of the value. Read more
1.0.0 · 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 PixelFormat
impl Debug for PixelFormat
source§impl PartialEq<PixelFormat> for PixelFormat
impl PartialEq<PixelFormat> for PixelFormat
source§fn eq(&self, other: &PixelFormat) -> bool
fn eq(&self, other: &PixelFormat) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.