Struct Y4mWriter
pub struct Y4mWriter<W>where
W: Write,{ /* private fields */ }Expand description
Streaming Y4M writer for one fixed output clip.
Implementations§
§impl<W> Y4mWriter<W>where
W: Write,
impl<W> Y4mWriter<W>where
W: Write,
pub fn new(
writer: W,
format: FormatDescriptor,
width: usize,
height: usize,
frame_rate: Rational,
) -> Result<Y4mWriter<W>, PixelFlowError>
pub fn new( writer: W, format: FormatDescriptor, width: usize, height: usize, frame_rate: Rational, ) -> Result<Y4mWriter<W>, PixelFlowError>
Creates writer and emits stream header immediately.
pub fn write_frame(&mut self, frame: &Frame) -> Result<(), PixelFlowError>
pub fn write_frame(&mut self, frame: &Frame) -> Result<(), PixelFlowError>
Writes one frame header and visible plane rows in storage order.
pub fn into_inner(self) -> W
pub fn into_inner(self) -> W
Consumes writer and returns wrapped output sink.
Auto Trait Implementations§
impl<W> Freeze for Y4mWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for Y4mWriter<W>where
W: RefUnwindSafe,
impl<W> Send for Y4mWriter<W>where
W: Send,
impl<W> Sync for Y4mWriter<W>where
W: Sync,
impl<W> Unpin for Y4mWriter<W>where
W: Unpin,
impl<W> UnsafeUnpin for Y4mWriter<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for Y4mWriter<W>where
W: UnwindSafe,
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