pub enum FrameOutput {
F32(Vec<f32>),
Wire(Vec<u8>),
}Expand description
One denoised frame, in whichever format its denoiser was built for.
Variants§
F32(Vec<f32>)
Normalised f32, width * height * channels values.
Wire(Vec<u8>)
Wire bytes, interleaved except for a chroma pair, which is laid out as U’s whole region followed by V’s.
Implementations§
Source§impl FrameOutput
impl FrameOutput
Sourcepub fn into_f32(self) -> Option<Vec<f32>>
pub fn into_f32(self) -> Option<Vec<f32>>
The f32 frame, or None if this came from a wire-mode denoiser.
Sourcepub fn into_wire(self) -> Option<Vec<u8>>
pub fn into_wire(self) -> Option<Vec<u8>>
The wire bytes, or None if this came from an f32-mode denoiser.
Trait Implementations§
Source§impl Clone for FrameOutput
impl Clone for FrameOutput
Source§fn clone(&self) -> FrameOutput
fn clone(&self) -> FrameOutput
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 moreSource§impl Debug for FrameOutput
impl Debug for FrameOutput
Source§impl PartialEq for FrameOutput
impl PartialEq for FrameOutput
impl StructuralPartialEq for FrameOutput
Auto Trait Implementations§
impl Freeze for FrameOutput
impl RefUnwindSafe for FrameOutput
impl Send for FrameOutput
impl Sync for FrameOutput
impl Unpin for FrameOutput
impl UnsafeUnpin for FrameOutput
impl UnwindSafe for FrameOutput
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