VideoReader initialization parameters.
More...
#include <opencv2/cudacodec.hpp>
VideoReader initialization parameters.
- Parameters
-
udpSource | Remove validation which can cause VideoReader() to throw exceptions when reading from a UDP source. |
allowFrameDrop | Allow 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. |
minNumDecodeSurfaces | Minimum 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. |
rawMode | Allow 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). |
◆ VideoReaderInitParams()
cv::cudacodec::VideoReaderInitParams::VideoReaderInitParams |
( |
| ) |
|
|
inline |
◆ 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: