Struct av1_grain::DiffGenerator
source · pub struct DiffGenerator { /* private fields */ }
Implementations§
source§impl DiffGenerator
impl DiffGenerator
pub fn new( fps: Rational64, source_bit_depth: usize, denoised_bit_depth: usize ) -> Self
sourcepub fn diff_frame<T: Pixel, U: Pixel>(
&mut self,
source: &Frame<T>,
denoised: &Frame<U>
) -> Result<()>
pub fn diff_frame<T: Pixel, U: Pixel>( &mut self, source: &Frame<T>, denoised: &Frame<U> ) -> Result<()>
Processes the next frame and adds the results to the state of this
DiffGenerator
.
Errors
- If the frames do not have the same resolution
- If the frames do not have the same chroma subsampling
sourcepub fn finish(self) -> Vec<GrainTableSegment>
pub fn finish(self) -> Vec<GrainTableSegment>
Finalize the state of this DiffGenerator
and return the resulting
grain table segments.
Auto Trait Implementations§
impl RefUnwindSafe for DiffGenerator
impl Send for DiffGenerator
impl Sync for DiffGenerator
impl Unpin for DiffGenerator
impl UnwindSafe for DiffGenerator
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