pub struct FilterOps<S: SimdOps> { /* private fields */ }Expand description
Filter operations using SIMD.
Implementations§
Source§impl<S: SimdOps> FilterOps<S>
impl<S: SimdOps> FilterOps<S>
Sourcepub fn filter_h_2tap(&self, src: &[u8], dst: &mut [u8], width: usize)
pub fn filter_h_2tap(&self, src: &[u8], dst: &mut [u8], width: usize)
Apply a horizontal 2-tap filter (bilinear).
Used for simple 2x scaling or half-pixel interpolation.
Sourcepub fn filter_h_4tap(
&self,
src: &[u8],
dst: &mut [u8],
coeffs: &[i16; 4],
width: usize,
)
pub fn filter_h_4tap( &self, src: &[u8], dst: &mut [u8], coeffs: &[i16; 4], width: usize, )
Apply a horizontal 4-tap filter.
Common filter coefficients for sub-pixel interpolation.
Sourcepub fn filter_h_6tap(
&self,
src: &[u8],
dst: &mut [u8],
coeffs: &[i16; 6],
width: usize,
)
pub fn filter_h_6tap( &self, src: &[u8], dst: &mut [u8], coeffs: &[i16; 6], width: usize, )
Apply a horizontal 6-tap filter.
Sourcepub fn filter_h_8tap(
&self,
src: &[u8],
dst: &mut [u8],
coeffs: &[i16; 8],
width: usize,
)
pub fn filter_h_8tap( &self, src: &[u8], dst: &mut [u8], coeffs: &[i16; 8], width: usize, )
Apply a horizontal 8-tap filter.
Used in AV1 for high-quality scaling.
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for FilterOps<S>where
S: Freeze,
impl<S> RefUnwindSafe for FilterOps<S>where
S: RefUnwindSafe,
impl<S> Send for FilterOps<S>
impl<S> Sync for FilterOps<S>
impl<S> Unpin for FilterOps<S>where
S: Unpin,
impl<S> UnsafeUnpin for FilterOps<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for FilterOps<S>where
S: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more