pub struct WindowSpan {
pub behind: usize,
pub ahead: usize,
}Expand description
How many source frames a windowed operation needs behind and ahead of its target frame, target frame itself not counted in either number.
reseed needs exactly behind + 1 + ahead frames, oldest first,
with the target frame sitting at index behind. This is what tells
a caller like reseed how wide a window to build, and it varies by
algorithm because nl4d’s own cross-frame accumulator needs more
forward context than the NLM algorithms do. See
Denoiser::window_span.
Fields§
§behind: usizeHow many frames older than the target the window must include.
ahead: usizeHow many frames newer than the target the window must include.
Implementations§
Source§impl WindowSpan
impl WindowSpan
Sourcepub fn frame_count(&self) -> usize
pub fn frame_count(&self) -> usize
The full window size this span describes, target frame
included: behind + 1 + ahead.
Trait Implementations§
Source§impl Clone for WindowSpan
impl Clone for WindowSpan
Source§fn clone(&self) -> WindowSpan
fn clone(&self) -> WindowSpan
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 WindowSpan
Source§impl Debug for WindowSpan
impl Debug for WindowSpan
impl Eq for WindowSpan
Source§impl PartialEq for WindowSpan
impl PartialEq for WindowSpan
impl StructuralPartialEq for WindowSpan
Auto Trait Implementations§
impl Freeze for WindowSpan
impl RefUnwindSafe for WindowSpan
impl Send for WindowSpan
impl Sync for WindowSpan
impl Unpin for WindowSpan
impl UnsafeUnpin for WindowSpan
impl UnwindSafe for WindowSpan
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<C> CloneExpand for Cwhere
C: Clone,
impl<C> CloneExpand for Cwhere
C: Clone,
fn __expand_clone_method(&self, _scope: &mut Scope) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.