pub struct SuperResUpscaler { /* private fields */ }Expand description
Super-resolution upscaler.
Implementations§
Source§impl SuperResUpscaler
impl SuperResUpscaler
Sourcepub fn with_config(config: SuperResConfig) -> Self
pub fn with_config(config: SuperResConfig) -> Self
Create with configuration.
Sourcepub fn set_config(&mut self, config: SuperResConfig)
pub fn set_config(&mut self, config: SuperResConfig)
Set configuration.
Sourcepub fn config(&self) -> Option<&SuperResConfig>
pub fn config(&self) -> Option<&SuperResConfig>
Get current configuration.
Sourcepub fn apply(
&mut self,
frame: &mut FrameBuffer,
context: &FrameContext,
) -> ReconstructResult<()>
pub fn apply( &mut self, frame: &mut FrameBuffer, context: &FrameContext, ) -> ReconstructResult<()>
Trait Implementations§
Source§impl Debug for SuperResUpscaler
impl Debug for SuperResUpscaler
Auto Trait Implementations§
impl Freeze for SuperResUpscaler
impl RefUnwindSafe for SuperResUpscaler
impl Send for SuperResUpscaler
impl Sync for SuperResUpscaler
impl Unpin for SuperResUpscaler
impl UnsafeUnpin for SuperResUpscaler
impl UnwindSafe for SuperResUpscaler
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more