OpenCV  4.6.0
Open Source Computer Vision
Public Member Functions | Public Attributes | List of all members
cv::cudacodec::VideoReaderInitParams Struct Reference

VideoReader initialization parameters. More...

#include <opencv2/cudacodec.hpp>

Public Member Functions

 VideoReaderInitParams ()
 

Public Attributes

bool allowFrameDrop
 
int minNumDecodeSurfaces
 
bool rawMode
 
bool udpSource
 

Detailed Description

VideoReader initialization parameters.

Parameters
udpSourceRemove validation which can cause VideoReader() to throw exceptions when reading from a UDP source.
allowFrameDropAllow frames to be dropped when ingesting from a live capture source to prevent delay and eventual disconnection when calls to nextFrame()/grab() cannot keep up with the source's fps. Only use if delay and disconnection are a problem, i.e. not when decoding from video files where setting this flag will cause frames to be unnecessarily discarded.
minNumDecodeSurfacesMinimum number of internal decode surfaces used by the hardware decoder. NVDEC will automatically determine the minimum number of surfaces it requires for correct functionality and optimal video memory usage but not necessarily for best performance, which depends on the design of the overall application. The optimal number of decode surfaces (in terms of performance and memory utilization) should be decided by experimentation for each application, but it cannot go below the number determined by NVDEC.
rawModeAllow the raw encoded data which has been read up until the last call to grab() to be retrieved by calling retrieve(rawData,RAW_DATA_IDX).

Constructor & Destructor Documentation

◆ VideoReaderInitParams()

cv::cudacodec::VideoReaderInitParams::VideoReaderInitParams ( )
inline

Member Data Documentation

◆ allowFrameDrop

bool cv::cudacodec::VideoReaderInitParams::allowFrameDrop

◆ minNumDecodeSurfaces

int cv::cudacodec::VideoReaderInitParams::minNumDecodeSurfaces

◆ rawMode

bool cv::cudacodec::VideoReaderInitParams::rawMode

◆ udpSource

bool cv::cudacodec::VideoReaderInitParams::udpSource

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