class cv::cudacodec::VideoReader

Overview

Video reader interface. Moreā€¦

#include <cudacodec.hpp>

class VideoReader
{
public:
    // methods

    virtual
    FormatInfo
    format() const = 0;

    virtual
    bool
    nextFrame(OutputArray frame) = 0;
};

Detailed Documentation

Video reader interface.

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

Methods

virtual
FormatInfo
format() const = 0

Returns information about video file format.

virtual
bool
nextFrame(OutputArray frame) = 0

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.