pub struct LoopOptimizer { /* private fields */ }Expand description
Combined loop optimization manager.
Implementations§
Source§impl LoopOptimizer
impl LoopOptimizer
Sourcepub fn optimize_frame(
&mut self,
src: &[u8],
recon: &[u8],
width: usize,
height: usize,
qp: u8,
)
pub fn optimize_frame( &mut self, src: &[u8], recon: &[u8], width: usize, height: usize, qp: u8, )
Optimize all parameters for a frame.
Sourcepub const fn loop_filter_params(&self) -> &LoopFilterParams
pub const fn loop_filter_params(&self) -> &LoopFilterParams
Get loop filter parameters.
Sourcepub const fn cdef_params(&self) -> &CdefParams
pub const fn cdef_params(&self) -> &CdefParams
Get CDEF parameters.
Sourcepub const fn restoration_type(&self) -> RestorationType
pub const fn restoration_type(&self) -> RestorationType
Get restoration type.
Sourcepub const fn film_grain_params(&self) -> &FilmGrainParams
pub const fn film_grain_params(&self) -> &FilmGrainParams
Get film grain parameters.
Sourcepub fn set_lambda(&mut self, lambda: f32)
pub fn set_lambda(&mut self, lambda: f32)
Set lambda for all optimizers.
Trait Implementations§
Source§impl Clone for LoopOptimizer
impl Clone for LoopOptimizer
Source§fn clone(&self) -> LoopOptimizer
fn clone(&self) -> LoopOptimizer
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 LoopOptimizer
impl Debug for LoopOptimizer
Auto Trait Implementations§
impl Freeze for LoopOptimizer
impl RefUnwindSafe for LoopOptimizer
impl Send for LoopOptimizer
impl Sync for LoopOptimizer
impl Unpin for LoopOptimizer
impl UnsafeUnpin for LoopOptimizer
impl UnwindSafe for LoopOptimizer
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