Trait opencv::cudacodec::prelude::VideoWriter[][src]

pub trait VideoWriter: VideoWriterConst {
    fn as_raw_mut_VideoWriter(&mut self) -> *mut c_void;

    fn write(
        &mut self,
        frame: &dyn ToInputArray,
        last_frame: bool
    ) -> Result<()> { ... } }

Required methods

Provided methods

Writes the next video frame.

Parameters
  • frame: The written frame.
  • lastFrame: Indicates that it is end of stream. The parameter can be ignored.

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

C++ default parameters
  • last_frame: false

Implementors