pub struct IntraEdgeFilter { /* private fields */ }Expand description
Intra edge filter.
Implementations§
Source§impl IntraEdgeFilter
impl IntraEdgeFilter
Sourcepub const fn new(strength: FilterStrength, bit_depth: BitDepth) -> Self
pub const fn new(strength: FilterStrength, bit_depth: BitDepth) -> Self
Create a new intra edge filter.
Sourcepub fn auto(angle: i16, dims: BlockDimensions, bit_depth: BitDepth) -> Self
pub fn auto(angle: i16, dims: BlockDimensions, bit_depth: BitDepth) -> Self
Create with automatic strength selection.
Sourcepub const fn strength(&self) -> FilterStrength
pub const fn strength(&self) -> FilterStrength
Get the filter strength.
Sourcepub fn filter_top(&self, samples: &mut [u16], count: usize)
pub fn filter_top(&self, samples: &mut [u16], count: usize)
Apply filter to top samples.
Sourcepub fn filter_left(&self, samples: &mut [u16], count: usize)
pub fn filter_left(&self, samples: &mut [u16], count: usize)
Apply filter to left samples.
Trait Implementations§
Source§impl Clone for IntraEdgeFilter
impl Clone for IntraEdgeFilter
Source§fn clone(&self) -> IntraEdgeFilter
fn clone(&self) -> IntraEdgeFilter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IntraEdgeFilter
impl Debug for IntraEdgeFilter
Source§impl Default for IntraEdgeFilter
impl Default for IntraEdgeFilter
Source§fn default() -> IntraEdgeFilter
fn default() -> IntraEdgeFilter
Returns the “default value” for a type. Read more
impl Copy for IntraEdgeFilter
Auto Trait Implementations§
impl Freeze for IntraEdgeFilter
impl RefUnwindSafe for IntraEdgeFilter
impl Send for IntraEdgeFilter
impl Sync for IntraEdgeFilter
impl Unpin for IntraEdgeFilter
impl UnsafeUnpin for IntraEdgeFilter
impl UnwindSafe for IntraEdgeFilter
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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