#[non_exhaustive]pub enum MotionCompensationMode {
None,
Mvtools {
blksize: u32,
overlap: u32,
search_radius: u32,
pyramid_levels: u32,
},
}Expand description
How motion compensation is configured for a denoise pass.
None disables motion compensation entirely (zero-cost; no extra
buffers are allocated). Mvtools enables an MVTools-inspired
per-block estimator and warps neighbours toward the centre at
denoise time.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Mvtools
Fields
§
overlap: u32Overlap between neighbouring blocks in pixels. Must be
strictly less than blksize so the step (blksize - overlap)
stays positive. Values > 0 reserve room for raised-cosine
blending in the compensate step (v1 uses a winner-block rule).
Implementations§
Trait Implementations§
Source§impl Clone for MotionCompensationMode
impl Clone for MotionCompensationMode
Source§fn clone(&self) -> MotionCompensationMode
fn clone(&self) -> MotionCompensationMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MotionCompensationMode
Source§impl Debug for MotionCompensationMode
impl Debug for MotionCompensationMode
Source§impl Default for MotionCompensationMode
impl Default for MotionCompensationMode
Source§fn default() -> MotionCompensationMode
fn default() -> MotionCompensationMode
Returns the “default value” for a type. Read more
Source§impl PartialEq for MotionCompensationMode
impl PartialEq for MotionCompensationMode
impl StructuralPartialEq for MotionCompensationMode
Auto Trait Implementations§
impl Freeze for MotionCompensationMode
impl RefUnwindSafe for MotionCompensationMode
impl Send for MotionCompensationMode
impl Sync for MotionCompensationMode
impl Unpin for MotionCompensationMode
impl UnsafeUnpin for MotionCompensationMode
impl UnwindSafe for MotionCompensationMode
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