pub(crate) struct TransformMatrixShaperOptimized<T: Clone, const BUCKET: usize> {
pub(crate) linear: Box<[f32; BUCKET]>,
pub(crate) gamma: Box<[T; 65536]>,
pub(crate) adaptation_matrix: Matrix3f,
}Expand description
Low memory footprint optimized routine for matrix shaper profiles with the same Gamma and linear curves.
Fields§
§linear: Box<[f32; BUCKET]>§gamma: Box<[T; 65536]>§adaptation_matrix: Matrix3fImplementations§
Source§impl<T: Clone, const BUCKET: usize> TransformMatrixShaperOptimized<T, BUCKET>
impl<T: Clone, const BUCKET: usize> TransformMatrixShaperOptimized<T, BUCKET>
fn convert_to_v(self) -> TransformMatrixShaperOptimizedV<T>
Source§impl<T: Clone + PointeeSizeExpressible, const BUCKET: usize> TransformMatrixShaperOptimized<T, BUCKET>
impl<T: Clone + PointeeSizeExpressible, const BUCKET: usize> TransformMatrixShaperOptimized<T, BUCKET>
pub(crate) fn to_q2_13_n<R: Copy + 'static + Default, const PRECISION: i32, const LINEAR_CAP: usize>(
&self,
gamma_lut: usize,
bit_depth: usize,
) -> TransformMatrixShaperFixedPointOpt<R, i16, T, BUCKET>where
f32: AsPrimitive<R>,
pub(crate) fn to_q2_13_i<R: Copy + 'static + Default, const PRECISION: i32>(
&self,
gamma_lut: usize,
bit_depth: usize,
) -> TransformMatrixShaperFpOptVec<R, i16, T>where
f32: AsPrimitive<R>,
Auto Trait Implementations§
impl<T, const BUCKET: usize> Freeze for TransformMatrixShaperOptimized<T, BUCKET>
impl<T, const BUCKET: usize> RefUnwindSafe for TransformMatrixShaperOptimized<T, BUCKET>where
T: RefUnwindSafe,
impl<T, const BUCKET: usize> Send for TransformMatrixShaperOptimized<T, BUCKET>where
T: Send,
impl<T, const BUCKET: usize> Sync for TransformMatrixShaperOptimized<T, BUCKET>where
T: Sync,
impl<T, const BUCKET: usize> Unpin for TransformMatrixShaperOptimized<T, BUCKET>
impl<T, const BUCKET: usize> UnsafeUnpin for TransformMatrixShaperOptimized<T, BUCKET>
impl<T, const BUCKET: usize> UnwindSafe for TransformMatrixShaperOptimized<T, BUCKET>where
T: UnwindSafe,
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