You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/cudacodec/include/opencv2/cudacodec.hpp
+6-5Lines changed: 6 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -322,7 +322,7 @@ enum class VideoReaderProps {
322
322
PROP_LRF_HAS_KEY_FRAME = 5, //!< FFmpeg source only - Indicates whether the Last Raw Frame (LRF), output from VideoReader::retrieve() when VideoReader is initialized in raw mode, contains encoded data for a key frame.
323
323
PROP_COLOR_FORMAT = 6, //!< Set the ColorFormat of the decoded frame. This can be changed before every call to nextFrame() and retrieve().
324
324
PROP_UDP_SOURCE = 7, //!< Status of VideoReaderInitParams::udpSource initialization.
325
-
PROP_LIVE_SOURCE = 8, //!< Status of VideoReaderInitParams::liveSource initialization.
325
+
PROP_ALLOW_FRAME_DROP = 8, //!< Status of VideoReaderInitParams::allowFrameDrop initialization.
326
326
#ifndef CV_DOXYGEN
327
327
PROP_NOT_SUPPORTED
328
328
#endif
@@ -472,18 +472,19 @@ class CV_EXPORTS_W RawVideoSource
472
472
473
473
/** @brief VideoReader initialization parameters
474
474
@param udpSource Remove validation which can cause VideoReader() to throw exceptions when reading from a UDP source.
475
-
@param liveCapture Prevent delay and eventual disconnection from a live capture source when the rate frames are consumed is less than the rate they are captured.
476
-
Use with caution, frames will be dropped when nextFrame()/grab() are called at a slower rate than the source fps.
475
+
@param allowFrameDrop Allow frames to be dropped when ingesting from a live capture source to prevent delay and eventual disconnection
476
+
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
477
+
video files where setting this flag will cause frames to be unnecessarily discarded.
477
478
@param minNumDecodeSurfaces Minimum number of internal decode surfaces used by the hardware decoder. NVDEC will automatically determine the minimum number of
478
479
surfaces it requires for correct functionality and optimal video memory usage but not necessarily for best performance, which depends on the design of the
479
480
overall application. The optimal number of decode surfaces (in terms of performance and memory utilization) should be decided by experimentation for each application,
480
481
but it cannot go below the number determined by NVDEC.
481
482
@param 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).
0 commit comments