pub struct LoopFilterOptimizer { /* private fields */ }Expand description
Loop filter parameter optimizer.
Implementations§
Source§impl LoopFilterOptimizer
impl LoopFilterOptimizer
Sourcepub fn optimize_filter_level(
&mut self,
src: &[u8],
recon: &[u8],
width: usize,
height: usize,
qp: u8,
) -> u8
pub fn optimize_filter_level( &mut self, src: &[u8], recon: &[u8], width: usize, height: usize, qp: u8, ) -> u8
Optimize loop filter level for a frame.
Tests multiple filter levels and selects the one with best RD cost.
Sourcepub const fn params(&self) -> &LoopFilterParams
pub const fn params(&self) -> &LoopFilterParams
Get optimized loop filter parameters.
Sourcepub fn set_lambda(&mut self, lambda: f32)
pub fn set_lambda(&mut self, lambda: f32)
Set lambda for RD optimization.
Sourcepub fn set_rd_optimization(&mut self, enabled: bool)
pub fn set_rd_optimization(&mut self, enabled: bool)
Enable/disable RD optimization.
Trait Implementations§
Source§impl Clone for LoopFilterOptimizer
impl Clone for LoopFilterOptimizer
Source§fn clone(&self) -> LoopFilterOptimizer
fn clone(&self) -> LoopFilterOptimizer
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 LoopFilterOptimizer
impl Debug for LoopFilterOptimizer
Auto Trait Implementations§
impl Freeze for LoopFilterOptimizer
impl RefUnwindSafe for LoopFilterOptimizer
impl Send for LoopFilterOptimizer
impl Sync for LoopFilterOptimizer
impl Unpin for LoopFilterOptimizer
impl UnsafeUnpin for LoopFilterOptimizer
impl UnwindSafe for LoopFilterOptimizer
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