[][src]Trait opencv::cudacodec::VideoReader

pub trait VideoReader {
    pub fn as_raw_VideoReader(&self) -> *const c_void;
pub fn as_raw_mut_VideoReader(&mut self) -> *mut c_void; pub fn next_frame(
        &mut self,
        frame: &mut GpuMat,
        stream: &mut Stream
    ) -> Result<bool> { ... }
pub fn format(&self) -> Result<FormatInfo> { ... } }

Video reader interface.

Note:

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

Required methods

Loading content...

Provided methods

pub fn next_frame(
    &mut self,
    frame: &mut GpuMat,
    stream: &mut Stream
) -> Result<bool>
[src]

Grabs, decodes and returns the next video frame.

If no frames has been grabbed (there are no more frames in video file), the methods return false . The method throws Exception if error occurs.

C++ default parameters

  • stream: Stream::Null()

pub fn format(&self) -> Result<FormatInfo>[src]

Returns information about video file format.

Loading content...

Implementors

Loading content...