Enum lcms2::PixelFormat []

#[repr(u32)]
pub enum PixelFormat { GRAY_8, GRAY_8_REV, GRAY_16, GRAY_16_REV, GRAY_16_SE, GRAYA_8, GRAYA_16, GRAYA_16_SE, GRAYA_8_PLANAR, GRAYA_16_PLANAR, RGB_8, RGB_8_PLANAR, BGR_8, BGR_8_PLANAR, RGB_16, RGB_16_PLANAR, RGB_16_SE, BGR_16, BGR_16_PLANAR, BGR_16_SE, RGBA_8, RGBA_8_PLANAR, RGBA_16, RGBA_16_PLANAR, RGBA_16_SE, ARGB_8, ARGB_8_PLANAR, ARGB_16, ABGR_8, ABGR_8_PLANAR, ABGR_16, ABGR_16_PLANAR, ABGR_16_SE, BGRA_8, BGRA_8_PLANAR, BGRA_16, BGRA_16_SE, CMY_8, CMY_8_PLANAR, CMY_16, CMY_16_PLANAR, CMY_16_SE, CMYK_8, CMYKA_8, CMYK_8_REV, CMYK_8_PLANAR, CMYK_16, CMYK_16_REV, CMYK_16_PLANAR, CMYK_16_SE, KYMC_8, KYMC_16, KYMC_16_SE, KCMY_8, KCMY_8_REV, KCMY_16, KCMY_16_REV, KCMY_16_SE, CMYK5_8, CMYK5_16, CMYK5_16_SE, KYMC5_8, KYMC5_16, KYMC5_16_SE, CMYK6_8, CMYK6_8_PLANAR, CMYK6_16, CMYK6_16_PLANAR, CMYK6_16_SE, CMYK7_8, CMYK7_16, CMYK7_16_SE, KYMC7_8, KYMC7_16, KYMC7_16_SE, CMYK8_8, CMYK8_16, CMYK8_16_SE, KYMC8_8, KYMC8_16, KYMC8_16_SE, CMYK9_8, CMYK9_16, CMYK9_16_SE, KYMC9_8, KYMC9_16, KYMC9_16_SE, CMYK10_8, CMYK10_16, CMYK10_16_SE, KYMC10_8, KYMC10_16, KYMC10_16_SE, CMYK11_8, CMYK11_16, CMYK11_16_SE, KYMC11_8, KYMC11_16, KYMC11_16_SE, CMYK12_8, CMYK12_16, CMYK12_16_SE, KYMC12_8, KYMC12_16, KYMC12_16_SE, XYZ_16, Lab_8, LabV2_8, ALab_8, ALabV2_8, Lab_16, LabV2_16, Yxy_16, YCbCr_8, YCbCr_8_PLANAR, YCbCr_16, YCbCr_16_PLANAR, YCbCr_16_SE, YUV_8, YUV_8_PLANAR, YUV_16, YUV_16_PLANAR, YUV_16_SE, HLS_8, HLS_8_PLANAR, HLS_16, HLS_16_PLANAR, HLS_16_SE, HSV_8, HSV_8_PLANAR, HSV_16, HSV_16_PLANAR, HSV_16_SE, NAMED_COLOR_INDEX, XYZ_FLT, Lab_FLT, LabA_FLT, GRAY_FLT, RGB_FLT, RGBA_FLT, ARGB_FLT, BGR_FLT, BGRA_FLT, CMYK_FLT, XYZ_DBL, Lab_DBL, GRAY_DBL, RGB_DBL, BGR_DBL, CMYK_DBL, GRAY_HALF_FLT, RGB_HALF_FLT, RGBA_HALF_FLT, CMYK_HALF_FLT, ARGB_HALF_FLT, BGR_HALF_FLT, BGRA_HALF_FLT, }

Format of pixel is defined by one cmsUInt32Number, using bit fields as follows

2                1          0
                     3 2 10987 6 5 4 3 2 1 098 7654 321
                     A O TTTTT U Y F P X S EEE CCCC BBB

       A: Floating point -- With this flag we can differentiate 16 bits as float and as int
       O: Optimized -- previous optimization already returns the final 8-bit value
       T: Pixeltype
       F: Flavor  0=MinIsBlack(Chocolate) 1=MinIsWhite(Vanilla)
       P: Planar? 0=Chunky, 1=Planar
       X: swap 16 bps endianness?
       S: Do swap? ie, BGR, KYMC
       E: Extra samples
       C: Channels (Samples per pixel)
       B: bytes per sample
       Y: Swap first - changes ABGR to BGRA and KCMY to CMYK

Variants

Methods

impl PixelFormat

Trait Implementations

impl PartialEq<PixelFormat> for PixelFormat

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Copy for PixelFormat

impl Debug for PixelFormat

Formats the value using the given formatter. Read more

impl Eq for PixelFormat

impl Clone for PixelFormat

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more