pub struct Av1Encoder { /* private fields */ }Implementations§
Source§impl Av1Encoder
impl Av1Encoder
pub fn resize_image( &mut self, image: DynamicImage, filter: FilterType, ) -> RgbaImage
pub fn write_image(&mut self, image: &RgbaImage) -> Result<usize, ImageError>
pub fn write_image_repeats( &mut self, image: RgbaImage, count: usize, ) -> Result<usize, ImageError>
pub fn check_size(&self, image: &RgbaImage) -> Result<(), ImageError>
Source§impl Av1Encoder
impl Av1Encoder
pub fn mut_config(&mut self) -> &mut EncoderConfig
pub fn with_config(self, config: EncoderConfig) -> Self
pub fn with_size(self, width: usize, height: usize) -> Self
pub fn with_fps(self, fps: usize) -> Self
pub fn with_rate_control(self, rate_control: RateControlConfig) -> Self
Auto Trait Implementations§
impl Freeze for Av1Encoder
impl RefUnwindSafe for Av1Encoder
impl Send for Av1Encoder
impl Sync for Av1Encoder
impl Unpin for Av1Encoder
impl UnwindSafe for Av1Encoder
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