Struct RawVideoWriter
pub struct RawVideoWriter<W>where
W: Write,{ /* private fields */ }Expand description
Streaming rawvideo writer for one fixed planar RGB output clip.
Implementations§
§impl<W> RawVideoWriter<W>where
W: Write,
impl<W> RawVideoWriter<W>where
W: Write,
pub fn new(
writer: W,
format: FormatDescriptor,
width: usize,
height: usize,
) -> Result<RawVideoWriter<W>, PixelFlowError>
pub fn new( writer: W, format: FormatDescriptor, width: usize, height: usize, ) -> Result<RawVideoWriter<W>, PixelFlowError>
Creates a rawvideo writer for FFmpeg-compatible planar RGB output.
pub const fn pixel_format(&self) -> &'static str
pub const fn pixel_format(&self) -> &'static str
Returns the FFmpeg -pixel_format name for this stream.
pub fn write_frame(&mut self, frame: &Frame) -> Result<(), PixelFlowError>
pub fn write_frame(&mut self, frame: &Frame) -> Result<(), PixelFlowError>
Writes one frame in FFmpeg planar GBR 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 RawVideoWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for RawVideoWriter<W>where
W: RefUnwindSafe,
impl<W> Send for RawVideoWriter<W>where
W: Send,
impl<W> Sync for RawVideoWriter<W>where
W: Sync,
impl<W> Unpin for RawVideoWriter<W>where
W: Unpin,
impl<W> UnsafeUnpin for RawVideoWriter<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for RawVideoWriter<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