pub enum ImageBuffer {
F32(AlignedGrid<f32>),
I32(AlignedGrid<i32>),
I16(AlignedGrid<i16>),
}
Variants§
Implementations§
source§impl ImageBuffer
impl ImageBuffer
pub fn from_modular_channel<S: Sample>(g: AlignedGrid<S>) -> Self
pub fn zeroed_f32( width: usize, height: usize, tracker: Option<&AllocTracker>, ) -> Result<Self>
pub fn try_clone(&self) -> Result<Self>
pub fn width(&self) -> usize
pub fn height(&self) -> usize
pub fn tracker(&self) -> Option<AllocTracker>
pub fn as_float(&self) -> Option<&AlignedGrid<f32>>
pub fn as_float_mut(&mut self) -> Option<&mut AlignedGrid<f32>>
pub fn convert_to_float_modular( &mut self, bit_depth: BitDepth, ) -> Result<&mut AlignedGrid<f32>>
pub fn cast_to_float(&mut self) -> Result<&mut AlignedGrid<f32>>
pub fn convert_to_float_modular_xyb<'g>( yxb: [&'g mut Self; 3], lf_dequant: &LfChannelDequantization, ) -> Result<[&'g mut AlignedGrid<f32>; 3]>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ImageBuffer
impl RefUnwindSafe for ImageBuffer
impl Send for ImageBuffer
impl Sync for ImageBuffer
impl Unpin for ImageBuffer
impl UnwindSafe for ImageBuffer
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