pub(crate) enum OutputWriter<W: Write> {
Y4m(Y4mWriter<W>),
RawVideo(RawVideoWriter<W>),
}Variants§
Implementations§
Source§impl<W: Write> OutputWriter<W>
impl<W: Write> OutputWriter<W>
pub(crate) fn new(output: W, media: &OutputMedia) -> Result<Self>
pub(crate) fn write_frame(&mut self, frame: &Frame) -> Result<()>
pub(crate) fn flush(self) -> Result<()>
Auto Trait Implementations§
impl<W> Freeze for OutputWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for OutputWriter<W>where
W: RefUnwindSafe,
impl<W> Send for OutputWriter<W>where
W: Send,
impl<W> Sync for OutputWriter<W>where
W: Sync,
impl<W> Unpin for OutputWriter<W>where
W: Unpin,
impl<W> UnwindSafe for OutputWriter<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