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
PROP_DECODED_FRAME_IDX = 0, //!< Index for retrieving the decoded frame using retrieve().
340
339
PROP_EXTRA_DATA_INDEX = 1, //!< Index for retrieving the extra data associated with a video source using retrieve().
341
340
PROP_RAW_PACKAGES_BASE_INDEX = 2, //!< Base index for retrieving raw encoded data using retrieve().
342
341
PROP_NUMBER_OF_RAW_PACKAGES_SINCE_LAST_GRAB = 3, //!< Number of raw packages recieved since the last call to grab().
@@ -379,36 +378,9 @@ class CV_EXPORTS_W VideoReader
379
378
*/
380
379
CV_WRAP virtual FormatInfo format() const = 0;
381
380
382
-
/** @brief Grabs the next frame from the video source.
383
-
384
-
@param stream Stream for the asynchronous version.
385
-
@return `true` (non-zero) in the case of success.
386
-
387
-
The method/function grabs the next frame from video file or camera and returns true (non-zero) in
388
-
the case of success.
389
-
390
-
The primary use of the function is for reading both the encoded and decoded video data when rawMode is enabled. With rawMode enabled
391
-
retrieve() can be called following grab() to retrieve all the data associated with the current video source since the last call to grab() or the creation of the VideoReader.
- Extra data if available, idx = get(PROP_EXTRA_DATA_INDEX).
401
-
- Raw encoded data package. To retrieve package i, idx = get(PROP_RAW_PACKAGES_BASE_INDEX) + i with i < get(PROP_NUMBER_OF_RAW_PACKAGES_SINCE_LAST_GRAB)
402
-
@return `false` if no frames have been grabbed
403
-
404
-
The method returns data associated with the current video source since the last call to grab() or the creation of the VideoReader. If no data is present
405
-
the method returns false and the function returns an empty image.
/** @brief Returns previously grabbed encoded video data.
410
-
411
-
@param [out] frame The encoded video data.
412
384
@param idx Determines the returned data inside image. The returned data can be the:
413
385
- Extra data if available, idx = get(PROP_EXTRA_DATA_INDEX).
414
386
- Raw encoded data package. To retrieve package i, idx = get(PROP_RAW_PACKAGES_BASE_INDEX) + i with i < get(PROP_NUMBER_OF_RAW_PACKAGES_SINCE_LAST_GRAB)
@@ -417,21 +389,7 @@ class CV_EXPORTS_W VideoReader
417
389
The method returns data associated with the current video source since the last call to grab() or the creation of the VideoReader. If no data is present
418
390
the method returns false and the function returns an empty image.
0 commit comments