Expand description
Built-in 'static PixelFormat preset instances for zero-allocation borrowed views.
Use &formats::RGB8_SRGB when constructing a PixelView or
PixelViewMut (or passing &PixelFormat to a planner), and
PixelFormat::RGB8_SRGB when you need an owned const value for PixelBuf
constructors or builder chaining (.with_alpha(...), .with_primaries(...)).
(Because PixelFormat owns an Arc<[u8]> inside its ColorSpace::Icc variant and
therefore has non-trivial Drop, Rust does not static-promote &PixelFormat::RGB8_SRGB.)
Staticsยง
- BGR8_
SRGB - Static
&'static PixelFormatforPixelFormat::BGR8_SRGB. - BGRA8_
SRGB - Static
&'static PixelFormatforPixelFormat::BGRA8_SRGB. - BGRX8_
SRGB - Static
&'static PixelFormatforPixelFormat::BGRX8_SRGB. - GRAY8_
SRGB - Static
&'static PixelFormatforPixelFormat::GRAY8_SRGB. - GRAY16_
SRGB - Static
&'static PixelFormatforPixelFormat::GRAY16_SRGB. - GRAY
A8_ SRGB - Static
&'static PixelFormatforPixelFormat::GRAYA8_SRGB. - GRAY
F32_ LINEAR - Static
&'static PixelFormatforPixelFormat::GRAYF32_LINEAR. - OKLABA_
F32 - Static
&'static PixelFormatforPixelFormat::OKLABA_F32. - OKLAB_
F32 - Static
&'static PixelFormatforPixelFormat::OKLAB_F32. - RGB8_
DISPLAY_ P3 - Static
&'static PixelFormatforPixelFormat::RGB8_DISPLAY_P3. - RGB8_
SRGB - Static
&'static PixelFormatforPixelFormat::RGB8_SRGB. - RGB16_
BT2100_ HLG_ 1000 - Static
&'static PixelFormatforPixelFormat::RGB16_BT2100_HLG_1000. - RGB16_
BT2100_ HLG_ SCENE - Static
&'static PixelFormatforPixelFormat::RGB16_BT2100_HLG_SCENE. - RGB16_
BT2100_ PQ - Static
&'static PixelFormatforPixelFormat::RGB16_BT2100_PQ. - RGB16_
DISPLAY_ P3 - Static
&'static PixelFormatforPixelFormat::RGB16_DISPLAY_P3. - RGB16_
SRGB - Static
&'static PixelFormatforPixelFormat::RGB16_SRGB. - RGBA8_
DISPLAY_ P3 - Static
&'static PixelFormatforPixelFormat::RGBA8_DISPLAY_P3. - RGBA8_
SRGB - Static
&'static PixelFormatforPixelFormat::RGBA8_SRGB. - RGBA16_
DISPLAY_ P3 - Static
&'static PixelFormatforPixelFormat::RGBA16_DISPLAY_P3. - RGBA16_
SRGB - Static
&'static PixelFormatforPixelFormat::RGBA16_SRGB. - RGBA
F16_ LINEAR - Static
&'static PixelFormatforPixelFormat::RGBAF16_LINEAR. - RGBA
F32_ LINEAR - Static
&'static PixelFormatforPixelFormat::RGBAF32_LINEAR. - RGBF16_
LINEAR - Static
&'static PixelFormatforPixelFormat::RGBF16_LINEAR. - RGBF32_
LINEAR - Static
&'static PixelFormatforPixelFormat::RGBF32_LINEAR. - RGBX8_
SRGB - Static
&'static PixelFormatforPixelFormat::RGBX8_SRGB.