pub struct RawVideoWriter { /* private fields */ }Expand description
Writes raw RGB8 frames to a simple uncompressed video file.
Implementations§
Source§impl RawVideoWriter
impl RawVideoWriter
pub fn new(width: u32, height: u32, fps: f32) -> Self
Sourcepub fn push_frame(&mut self, rgb8_data: &[u8]) -> Result<(), VideoError>
pub fn push_frame(&mut self, rgb8_data: &[u8]) -> Result<(), VideoError>
Appends an RGB8 frame (must be widthheight3 bytes).
pub fn frame_count(&self) -> usize
Auto Trait Implementations§
impl Freeze for RawVideoWriter
impl RefUnwindSafe for RawVideoWriter
impl Send for RawVideoWriter
impl Sync for RawVideoWriter
impl Unpin for RawVideoWriter
impl UnsafeUnpin for RawVideoWriter
impl UnwindSafe for RawVideoWriter
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