pub struct Encoder<W: Write> { /* private fields */ }Implementations§
Source§impl<W: Write> Encoder<W>
impl<W: Write> Encoder<W>
pub fn new( writer: W, width: usize, height: usize, framerate: u32, quality: i32, num_threads: usize, ) -> Result<Encoder<W>, Error>
pub fn encode_iframe( self: &mut Encoder<W>, frame: &VideoFrame, ) -> Result<(), Error>
pub fn encode_pframe( self: &mut Encoder<W>, frame: &VideoFrame, ) -> Result<(), Error>
pub fn encode_dropframe(self: &mut Encoder<W>) -> Result<(), Error>
pub fn finish(self: &mut Encoder<W>) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl<W> !RefUnwindSafe for Encoder<W>
impl<W> !UnwindSafe for Encoder<W>
impl<W> Freeze for Encoder<W>where
W: Freeze,
impl<W> Send for Encoder<W>where
W: Send,
impl<W> Sync for Encoder<W>where
W: Sync,
impl<W> Unpin for Encoder<W>where
W: Unpin,
impl<W> UnsafeUnpin for Encoder<W>where
W: UnsafeUnpin,
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