opencv::prelude

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().

Object Safety§

This trait is not object safe.

Implementors§