Enum jpeg_encoder::ColorType [−][src]
pub enum ColorType { Luma, Rgb, Rgba, Bgr, Bgra, Ycbcr, Cmyk, CmykAsYcck, Ycck, }
Expand description
Color types for input images
Available color input formats for Encoder::encode. Other types can be used by implementing an ImageBuffer.
Variants
Grayscale with 1 byte per pixel
RGB with 3 bytes per pixel
Red, Green, Blue with 4 bytes per pixel. The alpha channel will be ignored during encoding.
RGB with 3 bytes per pixel
RGBA with 4 bytes per pixel. The alpha channel will be ignored during encoding.
YCbCr with 3 bytes per pixel.
CMYK with 4 bytes per pixel.
CMYK with 4 bytes per pixel. Encoded as YCCK (YCbCrK)
YCCK (YCbCrK) with 4 bytes per pixel.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ColorType
impl UnwindSafe for ColorType
Blanket Implementations
Mutably borrows from an owned value. Read more