Skip to main content

TransformLut3x3SseQ0_15

Struct TransformLut3x3SseQ0_15 

Source
pub(crate) struct TransformLut3x3SseQ0_15<T, U, const SRC_LAYOUT: u8, const DST_LAYOUT: u8, const GRID_SIZE: usize, const BIT_DEPTH: usize, const BINS: usize, const BARYCENTRIC_BINS: usize> {
    pub(crate) lut: Vec<SseAlignedI16x4>,
    pub(crate) _phantom: PhantomData<T>,
    pub(crate) _phantom2: PhantomData<U>,
    pub(crate) interpolation_method: InterpolationMethod,
    pub(crate) weights: Box<[BarycentricWeight<i16>; BINS]>,
    pub(crate) color_space: DataColorSpace,
    pub(crate) is_linear: bool,
}

Fields§

§lut: Vec<SseAlignedI16x4>§_phantom: PhantomData<T>§_phantom2: PhantomData<U>§interpolation_method: InterpolationMethod§weights: Box<[BarycentricWeight<i16>; BINS]>§color_space: DataColorSpace§is_linear: bool

Implementations§

Source§

impl<T: Copy + AsPrimitive<f32> + Default + PointeeSizeExpressible, U: AsPrimitive<usize>, const SRC_LAYOUT: u8, const DST_LAYOUT: u8, const GRID_SIZE: usize, const BIT_DEPTH: usize, const BINS: usize, const BARYCENTRIC_BINS: usize> TransformLut3x3SseQ0_15<T, U, SRC_LAYOUT, DST_LAYOUT, GRID_SIZE, BIT_DEPTH, BINS, BARYCENTRIC_BINS>

Source

unsafe fn transform_chunk( &self, src: &[T], dst: &mut [T], interpolator: Box<dyn SseMdInterpolationQ0_15 + Send + Sync>, )

Trait Implementations§

Source§

impl<T: Copy + AsPrimitive<f32> + Default + PointeeSizeExpressible, U: AsPrimitive<usize>, const SRC_LAYOUT: u8, const DST_LAYOUT: u8, const GRID_SIZE: usize, const BIT_DEPTH: usize, const BINS: usize, const BARYCENTRIC_BINS: usize> TransformExecutor<T> for TransformLut3x3SseQ0_15<T, U, SRC_LAYOUT, DST_LAYOUT, GRID_SIZE, BIT_DEPTH, BINS, BARYCENTRIC_BINS>

Source§

fn transform(&self, src: &[T], dst: &mut [T]) -> Result<(), CmsError>

Count of samples always must match. If there is N samples of Cmyk source then N samples of Rgb is expected as an output.

Auto Trait Implementations§

§

impl<T, U, const SRC_LAYOUT: u8, const DST_LAYOUT: u8, const GRID_SIZE: usize, const BIT_DEPTH: usize, const BINS: usize, const BARYCENTRIC_BINS: usize> Freeze for TransformLut3x3SseQ0_15<T, U, SRC_LAYOUT, DST_LAYOUT, GRID_SIZE, BIT_DEPTH, BINS, BARYCENTRIC_BINS>

§

impl<T, U, const SRC_LAYOUT: u8, const DST_LAYOUT: u8, const GRID_SIZE: usize, const BIT_DEPTH: usize, const BINS: usize, const BARYCENTRIC_BINS: usize> RefUnwindSafe for TransformLut3x3SseQ0_15<T, U, SRC_LAYOUT, DST_LAYOUT, GRID_SIZE, BIT_DEPTH, BINS, BARYCENTRIC_BINS>

§

impl<T, U, const SRC_LAYOUT: u8, const DST_LAYOUT: u8, const GRID_SIZE: usize, const BIT_DEPTH: usize, const BINS: usize, const BARYCENTRIC_BINS: usize> Send for TransformLut3x3SseQ0_15<T, U, SRC_LAYOUT, DST_LAYOUT, GRID_SIZE, BIT_DEPTH, BINS, BARYCENTRIC_BINS>
where T: Send, U: Send,

§

impl<T, U, const SRC_LAYOUT: u8, const DST_LAYOUT: u8, const GRID_SIZE: usize, const BIT_DEPTH: usize, const BINS: usize, const BARYCENTRIC_BINS: usize> Sync for TransformLut3x3SseQ0_15<T, U, SRC_LAYOUT, DST_LAYOUT, GRID_SIZE, BIT_DEPTH, BINS, BARYCENTRIC_BINS>
where T: Sync, U: Sync,

§

impl<T, U, const SRC_LAYOUT: u8, const DST_LAYOUT: u8, const GRID_SIZE: usize, const BIT_DEPTH: usize, const BINS: usize, const BARYCENTRIC_BINS: usize> Unpin for TransformLut3x3SseQ0_15<T, U, SRC_LAYOUT, DST_LAYOUT, GRID_SIZE, BIT_DEPTH, BINS, BARYCENTRIC_BINS>
where T: Unpin, U: Unpin,

§

impl<T, U, const SRC_LAYOUT: u8, const DST_LAYOUT: u8, const GRID_SIZE: usize, const BIT_DEPTH: usize, const BINS: usize, const BARYCENTRIC_BINS: usize> UnsafeUnpin for TransformLut3x3SseQ0_15<T, U, SRC_LAYOUT, DST_LAYOUT, GRID_SIZE, BIT_DEPTH, BINS, BARYCENTRIC_BINS>

§

impl<T, U, const SRC_LAYOUT: u8, const DST_LAYOUT: u8, const GRID_SIZE: usize, const BIT_DEPTH: usize, const BINS: usize, const BARYCENTRIC_BINS: usize> UnwindSafe for TransformLut3x3SseQ0_15<T, U, SRC_LAYOUT, DST_LAYOUT, GRID_SIZE, BIT_DEPTH, BINS, BARYCENTRIC_BINS>
where T: UnwindSafe, U: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.