[−][src]Trait opencv::cudacodec::VideoReader
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
pub fn as_raw_VideoReader(&self) -> *const c_void
[src]
pub fn as_raw_mut_VideoReader(&mut self) -> *mut c_void
[src]
Provided methods
pub fn next_frame(
&mut self,
frame: &mut GpuMat,
stream: &mut Stream
) -> Result<bool>
[src]
&mut self,
frame: &mut GpuMat,
stream: &mut Stream
) -> Result<bool>
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.