Trait CUDA_VideoWriterTrait

Source
pub trait CUDA_VideoWriterTrait: CUDA_VideoWriterTraitConst {
    // Required method
    fn as_raw_mut_CUDA_VideoWriter(&mut self) -> *mut c_void;

    // Provided methods
    fn write(&mut self, frame: &impl ToInputArray) -> Result<()> { ... }
    fn release(&mut self) -> Result<()> { ... }
}
Expand description

Required Methods§

Provided Methods§

Source

fn write(&mut self, frame: &impl ToInputArray) -> Result<()>

Writes the next video frame.

§Parameters
  • frame: The framet to be written.

The method encodes the specified image to a video stream. The image must have the same size and the same surface format as has been specified when opening the video writer.

Source

fn release(&mut self) -> Result<()>

Waits until the encoding process has finished before calling EncoderCallback::onEncodingFinished().

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§