pub enum ChannelIntent {
Luma,
Chroma,
LumaChroma,
YuvFused,
}Expand description
Which planes a caller wants cleaned, once --channel-mode (or the
equivalent host option) has been resolved.
This is separate from the library’s ChannelMode because this layer
may run more than one Denoiser in lockstep, one for luma and one for
chroma. It may also run a single fused three-channel denoiser instead.
Which of those applies depends on the caller’s channel selection and
the source’s chroma subsampling.
Variants§
Luma
Denoise luma only. Chroma passes through.
Chroma
Denoise chroma only. Luma passes through.
LumaChroma
Denoise both luma and chroma as two independent denoisers. Chroma runs at the source’s native subsampled resolution.
YuvFused
A single library Denoiser running the fused three-channel
kernel. Needs a YUV444 source, which is checked at ingest setup
time.
Implementations§
Source§impl ChannelIntent
impl ChannelIntent
Sourcepub fn validate_for_source(self, layout: FrameLayout) -> Result<(), Error>
pub fn validate_for_source(self, layout: FrameLayout) -> Result<(), Error>
Rejects the intent if the source’s subsampling cannot support it.
Trait Implementations§
Source§impl Clone for ChannelIntent
impl Clone for ChannelIntent
Source§fn clone(&self) -> ChannelIntent
fn clone(&self) -> ChannelIntent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ChannelIntent
Source§impl Debug for ChannelIntent
impl Debug for ChannelIntent
impl Eq for ChannelIntent
Source§impl PartialEq for ChannelIntent
impl PartialEq for ChannelIntent
impl StructuralPartialEq for ChannelIntent
Auto Trait Implementations§
impl Freeze for ChannelIntent
impl RefUnwindSafe for ChannelIntent
impl Send for ChannelIntent
impl Sync for ChannelIntent
impl Unpin for ChannelIntent
impl UnsafeUnpin for ChannelIntent
impl UnwindSafe for ChannelIntent
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
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
key and return true if they are equal.