OpenCV  4.4.0
Open Source Computer Vision
Public Member Functions | List of all members
cv::cudacodec::VideoReader Class Referenceabstract

Video reader interface. More...

#include <opencv2/cudacodec.hpp>

Public Member Functions

virtual ~VideoReader ()
virtual FormatInfo format () const =0
 Returns information about video file format. More...
virtual bool nextFrame (GpuMat &frame, Stream &stream=Stream::Null())=0
 Grabs, decodes and returns the next video frame. More...

Detailed Description

Video reader interface.

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

Constructor & Destructor Documentation

◆ ~VideoReader()

virtual cv::cudacodec::VideoReader::~VideoReader ( )

Member Function Documentation

◆ format()

virtual FormatInfo cv::cudacodec::VideoReader::format ( ) const
pure virtual

Returns information about video file format.

◆ nextFrame()

virtual bool cv::cudacodec::VideoReader::nextFrame ( GpuMat frame,
Stream stream = Stream::Null() 
pure virtual

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.

The documentation for this class was generated from the following file: