[−][src]Struct lcms2::PixelFormat
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
Implementations
impl PixelFormat
[src]
pub const GRAY_8: PixelFormat
[src]
pub const GRAY_8_REV: PixelFormat
[src]
pub const GRAY_16: PixelFormat
[src]
pub const GRAY_16_REV: PixelFormat
[src]
pub const GRAY_16_SE: PixelFormat
[src]
pub const GRAYA_8: PixelFormat
[src]
pub const GRAYA_16: PixelFormat
[src]
pub const GRAYA_16_SE: PixelFormat
[src]
pub const GRAYA_8_PLANAR: PixelFormat
[src]
pub const GRAYA_16_PLANAR: PixelFormat
[src]
pub const RGB_8: PixelFormat
[src]
pub const RGB_8_PLANAR: PixelFormat
[src]
pub const BGR_8: PixelFormat
[src]
pub const BGR_8_PLANAR: PixelFormat
[src]
pub const RGB_16: PixelFormat
[src]
pub const RGB_16_PLANAR: PixelFormat
[src]
pub const RGB_16_SE: PixelFormat
[src]
pub const BGR_16: PixelFormat
[src]
pub const BGR_16_PLANAR: PixelFormat
[src]
pub const BGR_16_SE: PixelFormat
[src]
pub const RGBA_8: PixelFormat
[src]
pub const RGBA_8_PLANAR: PixelFormat
[src]
pub const RGBA_16: PixelFormat
[src]
pub const RGBA_16_PLANAR: PixelFormat
[src]
pub const RGBA_16_SE: PixelFormat
[src]
pub const ARGB_8: PixelFormat
[src]
pub const ARGB_8_PLANAR: PixelFormat
[src]
pub const ARGB_16: PixelFormat
[src]
pub const ABGR_8: PixelFormat
[src]
pub const ABGR_8_PLANAR: PixelFormat
[src]
pub const ABGR_16: PixelFormat
[src]
pub const ABGR_16_PLANAR: PixelFormat
[src]
pub const ABGR_16_SE: PixelFormat
[src]
pub const BGRA_8: PixelFormat
[src]
pub const BGRA_8_PLANAR: PixelFormat
[src]
pub const BGRA_16: PixelFormat
[src]
pub const BGRA_16_SE: PixelFormat
[src]
pub const CMY_8: PixelFormat
[src]
pub const CMY_8_PLANAR: PixelFormat
[src]
pub const CMY_16: PixelFormat
[src]
pub const CMY_16_PLANAR: PixelFormat
[src]
pub const CMY_16_SE: PixelFormat
[src]
pub const CMYK_8: PixelFormat
[src]
pub const CMYKA_8: PixelFormat
[src]
pub const CMYK_8_REV: PixelFormat
[src]
pub const CMYK_8_PLANAR: PixelFormat
[src]
pub const CMYK_16: PixelFormat
[src]
pub const CMYK_16_REV: PixelFormat
[src]
pub const CMYK_16_PLANAR: PixelFormat
[src]
pub const CMYK_16_SE: PixelFormat
[src]
pub const KYMC_8: PixelFormat
[src]
pub const KYMC_16: PixelFormat
[src]
pub const KYMC_16_SE: PixelFormat
[src]
pub const KCMY_8: PixelFormat
[src]
pub const KCMY_8_REV: PixelFormat
[src]
pub const KCMY_16: PixelFormat
[src]
pub const KCMY_16_REV: PixelFormat
[src]
pub const KCMY_16_SE: PixelFormat
[src]
pub const CMYK5_8: PixelFormat
[src]
pub const CMYK5_16: PixelFormat
[src]
pub const CMYK5_16_SE: PixelFormat
[src]
pub const KYMC5_8: PixelFormat
[src]
pub const KYMC5_16: PixelFormat
[src]
pub const KYMC5_16_SE: PixelFormat
[src]
pub const CMYK6_8: PixelFormat
[src]
pub const CMYK6_8_PLANAR: PixelFormat
[src]
pub const CMYK6_16: PixelFormat
[src]
pub const CMYK6_16_PLANAR: PixelFormat
[src]
pub const CMYK6_16_SE: PixelFormat
[src]
pub const CMYK7_8: PixelFormat
[src]
pub const CMYK7_16: PixelFormat
[src]
pub const CMYK7_16_SE: PixelFormat
[src]
pub const KYMC7_8: PixelFormat
[src]
pub const KYMC7_16: PixelFormat
[src]
pub const KYMC7_16_SE: PixelFormat
[src]
pub const CMYK8_8: PixelFormat
[src]
pub const CMYK8_16: PixelFormat
[src]
pub const CMYK8_16_SE: PixelFormat
[src]
pub const KYMC8_8: PixelFormat
[src]
pub const KYMC8_16: PixelFormat
[src]
pub const KYMC8_16_SE: PixelFormat
[src]
pub const CMYK9_8: PixelFormat
[src]
pub const CMYK9_16: PixelFormat
[src]
pub const CMYK9_16_SE: PixelFormat
[src]
pub const KYMC9_8: PixelFormat
[src]
pub const KYMC9_16: PixelFormat
[src]
pub const KYMC9_16_SE: PixelFormat
[src]
pub const CMYK10_8: PixelFormat
[src]
pub const CMYK10_16: PixelFormat
[src]
pub const CMYK10_16_SE: PixelFormat
[src]
pub const KYMC10_8: PixelFormat
[src]
pub const KYMC10_16: PixelFormat
[src]
pub const KYMC10_16_SE: PixelFormat
[src]
pub const CMYK11_8: PixelFormat
[src]
pub const CMYK11_16: PixelFormat
[src]
pub const CMYK11_16_SE: PixelFormat
[src]
pub const KYMC11_8: PixelFormat
[src]
pub const KYMC11_16: PixelFormat
[src]
pub const KYMC11_16_SE: PixelFormat
[src]
pub const CMYK12_8: PixelFormat
[src]
pub const CMYK12_16: PixelFormat
[src]
pub const CMYK12_16_SE: PixelFormat
[src]
pub const KYMC12_8: PixelFormat
[src]
pub const KYMC12_16: PixelFormat
[src]
pub const KYMC12_16_SE: PixelFormat
[src]
pub const XYZ_16: PixelFormat
[src]
pub const Lab_8: PixelFormat
[src]
pub const LabV2_8: PixelFormat
[src]
pub const ALab_8: PixelFormat
[src]
pub const ALabV2_8: PixelFormat
[src]
pub const Lab_16: PixelFormat
[src]
pub const LabV2_16: PixelFormat
[src]
pub const Yxy_16: PixelFormat
[src]
pub const YCbCr_8: PixelFormat
[src]
pub const YCbCr_8_PLANAR: PixelFormat
[src]
pub const YCbCr_16: PixelFormat
[src]
pub const YCbCr_16_PLANAR: PixelFormat
[src]
pub const YCbCr_16_SE: PixelFormat
[src]
pub const YUV_8: PixelFormat
[src]
pub const YUV_8_PLANAR: PixelFormat
[src]
pub const YUV_16: PixelFormat
[src]
pub const YUV_16_PLANAR: PixelFormat
[src]
pub const YUV_16_SE: PixelFormat
[src]
pub const HLS_8: PixelFormat
[src]
pub const HLS_8_PLANAR: PixelFormat
[src]
pub const HLS_16: PixelFormat
[src]
pub const HLS_16_PLANAR: PixelFormat
[src]
pub const HLS_16_SE: PixelFormat
[src]
pub const HSV_8: PixelFormat
[src]
pub const HSV_8_PLANAR: PixelFormat
[src]
pub const HSV_16: PixelFormat
[src]
pub const HSV_16_PLANAR: PixelFormat
[src]
pub const HSV_16_SE: PixelFormat
[src]
pub const NAMED_COLOR_INDEX: PixelFormat
[src]
pub const XYZ_FLT: PixelFormat
[src]
pub const Lab_FLT: PixelFormat
[src]
pub const LabA_FLT: PixelFormat
[src]
pub const GRAY_FLT: PixelFormat
[src]
pub const RGB_FLT: PixelFormat
[src]
pub const RGBA_FLT: PixelFormat
[src]
pub const ARGB_FLT: PixelFormat
[src]
pub const BGR_FLT: PixelFormat
[src]
pub const BGRA_FLT: PixelFormat
[src]
pub const CMYK_FLT: PixelFormat
[src]
pub const XYZ_DBL: PixelFormat
[src]
pub const Lab_DBL: PixelFormat
[src]
pub const GRAY_DBL: PixelFormat
[src]
pub const RGB_DBL: PixelFormat
[src]
pub const BGR_DBL: PixelFormat
[src]
pub const CMYK_DBL: PixelFormat
[src]
pub const GRAY_HALF_FLT: PixelFormat
[src]
pub const RGB_HALF_FLT: PixelFormat
[src]
pub const RGBA_HALF_FLT: PixelFormat
[src]
pub const CMYK_HALF_FLT: PixelFormat
[src]
pub const ARGB_HALF_FLT: PixelFormat
[src]
pub const BGR_HALF_FLT: PixelFormat
[src]
pub const BGRA_HALF_FLT: PixelFormat
[src]
pub fn float(&self) -> bool
[src]
A: Floating point -- With this flag we can differentiate 16 bits as float and as int
pub fn optimized(&self) -> bool
[src]
O: Optimized -- previous optimization already returns the final 8-bit value
pub fn pixel_type(&self) -> PixelType
[src]
T: Color space (PT_*
)
pub fn swapfirst(&self) -> bool
[src]
Y: Swap first - changes ABGR to BGRA and KCMY to CMYK
pub fn min_is_white(&self) -> bool
[src]
F: Flavor 0=MinIsBlack(Chocolate) 1=MinIsWhite(Vanilla)
pub fn planar(&self) -> bool
[src]
P: Planar? 0=Chunky, 1=Planar
pub fn endian16(&self) -> bool
[src]
X: swap 16 bps endianness?
pub fn doswap(&self) -> bool
[src]
S: Do swap? ie, BGR, KYMC
pub fn extra(&self) -> usize
[src]
E: Extra samples
pub fn channels(&self) -> usize
[src]
C: Channels (Samples per pixel)
pub fn bytes_per_channel(&self) -> usize
[src]
B: bytes per sample
pub fn bytes_per_pixel(&self) -> usize
[src]
size of pixel
Trait Implementations
impl Clone for PixelFormat
[src]
fn clone(&self) -> PixelFormat
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PixelFormat
[src]
impl Debug for PixelFormat
[src]
impl Eq for PixelFormat
[src]
impl PartialEq<PixelFormat> for PixelFormat
[src]
fn eq(&self, other: &PixelFormat) -> bool
[src]
fn ne(&self, other: &PixelFormat) -> bool
[src]
impl StructuralEq for PixelFormat
[src]
impl StructuralPartialEq for PixelFormat
[src]
Auto Trait Implementations
impl RefUnwindSafe for PixelFormat
impl Send for PixelFormat
impl Sync for PixelFormat
impl Unpin for PixelFormat
impl UnwindSafe for PixelFormat
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,