pub struct CdefApplicator { /* private fields */ }Expand description
CDEF applicator for applying CDEF to frames.
Implementations§
Source§impl CdefApplicator
impl CdefApplicator
Sourcepub fn set_damping(&mut self, y_damping: u8, uv_damping: u8)
pub fn set_damping(&mut self, y_damping: u8, uv_damping: u8)
Set damping values.
Sourcepub fn set_y_preset(&mut self, index: usize, primary: u8, secondary: u8)
pub fn set_y_preset(&mut self, index: usize, primary: u8, secondary: u8)
Set Y strength preset.
Sourcepub fn set_uv_preset(&mut self, index: usize, primary: u8, secondary: u8)
pub fn set_uv_preset(&mut self, index: usize, primary: u8, secondary: u8)
Set UV strength preset.
Sourcepub fn adjusted_damping(&self, plane: PlaneType) -> u8
pub fn adjusted_damping(&self, plane: PlaneType) -> u8
Get adjusted damping for bit depth.
Sourcepub fn apply(
&mut self,
frame: &mut FrameBuffer,
_context: &FrameContext,
) -> ReconstructResult<()>
pub fn apply( &mut self, frame: &mut FrameBuffer, _context: &FrameContext, ) -> ReconstructResult<()>
Sourcepub fn filter_single_block(
&mut self,
plane: &mut PlaneBuffer,
x: u32,
y: u32,
config: &CdefBlockConfig,
) -> CdefFilterResult
pub fn filter_single_block( &mut self, plane: &mut PlaneBuffer, x: u32, y: u32, config: &CdefBlockConfig, ) -> CdefFilterResult
Filter a single block with given parameters.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CdefApplicator
impl RefUnwindSafe for CdefApplicator
impl Send for CdefApplicator
impl Sync for CdefApplicator
impl Unpin for CdefApplicator
impl UnsafeUnpin for CdefApplicator
impl UnwindSafe for CdefApplicator
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