Enum jpeg_encoder::ColorType
source · 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§
Luma
Grayscale with 1 byte per pixel
Rgb
RGB with 3 bytes per pixel
Rgba
Red, Green, Blue with 4 bytes per pixel. The alpha channel will be ignored during encoding.
Bgr
RGB with 3 bytes per pixel
Bgra
RGBA with 4 bytes per pixel. The alpha channel will be ignored during encoding.
Ycbcr
YCbCr with 3 bytes per pixel.
Cmyk
CMYK with 4 bytes per pixel.
CmykAsYcck
CMYK with 4 bytes per pixel. Encoded as YCCK (YCbCrK)
Ycck
YCCK (YCbCrK) with 4 bytes per pixel.
Trait Implementations§
source§impl PartialEq for ColorType
impl PartialEq for ColorType
impl Copy for ColorType
impl Eq for ColorType
impl StructuralEq for ColorType
impl StructuralPartialEq for ColorType
Auto Trait Implementations§
impl RefUnwindSafe for ColorType
impl Send for ColorType
impl Sync for ColorType
impl Unpin for ColorType
impl UnwindSafe for ColorType
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