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

pub trait VideoWriter {
    pub fn as_raw_VideoWriter(&self) -> *const c_void;
pub fn as_raw_mut_VideoWriter(&mut self) -> *mut c_void; pub fn write(
        &mut self,
        frame: &dyn ToInputArray,
        last_frame: bool
    ) -> Result<()> { ... }
pub fn get_encoder_params(&self) -> Result<EncoderParams> { ... } }

Video writer interface.

The implementation uses H264 video codec.

Note: Currently only Windows platform is supported.

Note:

  • An example on how to use the videoWriter class can be found at opencv_source_code/samples/gpu/video_writer.cpp

Required methods

Loading content...

Provided methods

pub fn write(
    &mut self,
    frame: &dyn ToInputArray,
    last_frame: bool
) -> Result<()>
[src]

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

pub fn get_encoder_params(&self) -> Result<EncoderParams>[src]

Loading content...

Implementors

Loading content...