#[repr(u8)]pub enum ImageDtype {
U8 = 0,
U16 = 1,
F32 = 2,
Bf16 = 3,
}Expand description
Per-channel storage type; selects the blit_planar normalization path.
Donor: oa::ImageDtype.
Variants§
U8 = 0
uint8 [0, 255] normalized to [0.0, 1.0].
U16 = 1
uint16 [0, 65535] normalized to [0.0, 1.0].
F32 = 2
float32 passed through as-is.
Bf16 = 3
bfloat16 decoded to float32, passed through as-is.
Trait Implementations§
Source§impl Clone for ImageDtype
impl Clone for ImageDtype
impl Copy for ImageDtype
Source§impl Debug for ImageDtype
impl Debug for ImageDtype
Source§impl Default for ImageDtype
impl Default for ImageDtype
impl Eq for ImageDtype
Source§impl PartialEq for ImageDtype
impl PartialEq for ImageDtype
impl StructuralPartialEq for ImageDtype
Auto Trait Implementations§
impl Forget for ImageDtype
impl Freeze for ImageDtype
impl Move for ImageDtype
impl RefUnwindSafe for ImageDtype
impl Send for ImageDtype
impl Sync for ImageDtype
impl Unpin for ImageDtype
impl UnsafeUnpin for ImageDtype
impl UnwindSafe for ImageDtype
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