pub struct VideoEncoder { /* private fields */ }Implementations§
Source§impl VideoEncoder
impl VideoEncoder
pub fn new( output_path: &str, width: u32, height: u32, fps: f64, codec: &str, pix_fmt: &str, extra_args: &[String], audio_temp_path: Option<&Path>, audio_sample_rate: u32, audio_channels: u16, ) -> Result<Self>
pub fn push_frame(&mut self, data: &[u8]) -> Result<()>
pub fn finish(&mut self) -> Result<()>
Trait Implementations§
Source§impl Drop for VideoEncoder
impl Drop for VideoEncoder
Auto Trait Implementations§
impl Freeze for VideoEncoder
impl RefUnwindSafe for VideoEncoder
impl Send for VideoEncoder
impl Sync for VideoEncoder
impl Unpin for VideoEncoder
impl UnsafeUnpin for VideoEncoder
impl UnwindSafe for VideoEncoder
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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