#[non_exhaustive]pub enum PixelFormatPreference {
Any,
OklabF32,
LinearF32,
PremulLinearF32,
Srgb8,
SceneLinearF32,
}Expand description
Preferred pixel format for processing.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Any
No preference — works with any format.
OklabF32
Planar Oklab f32 (zenfilters: perceptual operations).
LinearF32
Interleaved RGBA f32 linear light (resize, composite).
PremulLinearF32
Premultiplied linear f32 (blend, composite).
Srgb8
Interleaved RGBA u8 sRGB (pass-through, canvas ops).
SceneLinearF32
Scene-referred linear f32 (RAW, HDR).
Trait Implementations§
Source§impl Clone for PixelFormatPreference
impl Clone for PixelFormatPreference
Source§fn clone(&self) -> PixelFormatPreference
fn clone(&self) -> PixelFormatPreference
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PixelFormatPreference
impl Debug for PixelFormatPreference
Source§impl Default for PixelFormatPreference
impl Default for PixelFormatPreference
Source§fn default() -> PixelFormatPreference
fn default() -> PixelFormatPreference
Returns the “default value” for a type. Read more
Source§impl PartialEq for PixelFormatPreference
impl PartialEq for PixelFormatPreference
impl Copy for PixelFormatPreference
impl Eq for PixelFormatPreference
impl StructuralPartialEq for PixelFormatPreference
Auto Trait Implementations§
impl Freeze for PixelFormatPreference
impl RefUnwindSafe for PixelFormatPreference
impl Send for PixelFormatPreference
impl Sync for PixelFormatPreference
impl Unpin for PixelFormatPreference
impl UnsafeUnpin for PixelFormatPreference
impl UnwindSafe for PixelFormatPreference
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