pub enum ChannelMode {
Luma,
Chroma,
Yuv,
}Expand description
How to apply denoising to the input frame channels.
Variants§
Luma
Single luminance channel. Distance scaled by 3.0.
Chroma
Two chroma channels (U, V). Distance scaled by 1.5.
Yuv
Three channels (Y, U, V). Unscaled sum of squared differences.
Implementations§
Source§impl ChannelMode
impl ChannelMode
Sourcepub fn storage_count(self) -> u32
pub fn storage_count(self) -> u32
Channels-per-pixel in GPU storage. Padded up to the next supported
vectorization factor so kernels can use coalesced Line<f32> reads
(backends only support power-of-two line sizes; YUV pads to 4).
Trait Implementations§
Source§impl Clone for ChannelMode
impl Clone for ChannelMode
Source§fn clone(&self) -> ChannelMode
fn clone(&self) -> ChannelMode
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 ChannelMode
Source§impl Debug for ChannelMode
impl Debug for ChannelMode
impl Eq for ChannelMode
Source§impl PartialEq for ChannelMode
impl PartialEq for ChannelMode
impl StructuralPartialEq for ChannelMode
Auto Trait Implementations§
impl Freeze for ChannelMode
impl RefUnwindSafe for ChannelMode
impl Send for ChannelMode
impl Sync for ChannelMode
impl Unpin for ChannelMode
impl UnsafeUnpin for ChannelMode
impl UnwindSafe for ChannelMode
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.