Merge pull request #24012 from cudawarpedЖvideocapture_raw_read

`VideoCapture`: remove decoder initialization when demuxing
This commit is contained in:
Alexander Smorkalov
2023-08-11 11:28:57 +03:00
committed by GitHub
3 changed files with 102 additions and 35 deletions

View File

@@ -140,7 +140,7 @@ enum VideoCaptureAPIs {
*/
enum VideoCaptureProperties {
CAP_PROP_POS_MSEC =0, //!< Current position of the video file in milliseconds.
CAP_PROP_POS_FRAMES =1, //!< 0-based index of the frame to be decoded/captured next.
CAP_PROP_POS_FRAMES =1, //!< 0-based index of the frame to be decoded/captured next. When the index i is set in RAW mode (CAP_PROP_FORMAT == -1) this will seek to the key frame k, where k <= i.
CAP_PROP_POS_AVI_RATIO =2, //!< Relative position of the video file: 0=start of the film, 1=end of the film.
CAP_PROP_FRAME_WIDTH =3, //!< Width of the frames in the video stream.
CAP_PROP_FRAME_HEIGHT =4, //!< Height of the frames in the video stream.