pub struct Y4mWriter<W: Write> { /* private fields */ }Expand description
Streaming Y4M writer for one fixed output clip.
Implementations§
Source§impl<W: Write> Y4mWriter<W>
impl<W: Write> Y4mWriter<W>
Sourcepub fn new(
writer: W,
format: FormatDescriptor,
width: usize,
height: usize,
frame_rate: Rational,
) -> Result<Self>
pub fn new( writer: W, format: FormatDescriptor, width: usize, height: usize, frame_rate: Rational, ) -> Result<Self>
Creates writer and emits stream header immediately.
Sourcepub fn write_frame(&mut self, frame: &Frame) -> Result<()>
pub fn write_frame(&mut self, frame: &Frame) -> Result<()>
Writes one frame header and visible plane rows in storage order.
Sourcepub 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