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). |
targetSz | Post-processed size (width/height should be multiples of 2) of the output frame, defaults to the size of the encoded video source. |
srcRoi | Region of interest (x/width should be multiples of 4 and y/height multiples of 2) decoded from video source, defaults to the full frame. |
targetRoi | Region of interest (x/width should be multiples of 4 and y/height multiples of 2) within the output frame to copy and resize the decoded frame to, defaults to the full frame. |
◆ VideoReaderInitParams()
cv::cudacodec::VideoReaderInitParams::VideoReaderInitParams |
( |
| ) |
|
|
inline |
◆ allowFrameDrop
bool cv::cudacodec::VideoReaderInitParams::allowFrameDrop |
◆ minNumDecodeSurfaces
int cv::cudacodec::VideoReaderInitParams::minNumDecodeSurfaces |
◆ rawMode
bool cv::cudacodec::VideoReaderInitParams::rawMode |
◆ srcRoi
cv::Rect cv::cudacodec::VideoReaderInitParams::srcRoi |
◆ targetRoi
cv::Rect cv::cudacodec::VideoReaderInitParams::targetRoi |
◆ targetSz
cv::Size cv::cudacodec::VideoReaderInitParams::targetSz |
◆ udpSource
bool cv::cudacodec::VideoReaderInitParams::udpSource |
The documentation for this struct was generated from the following file: