Video capture behavior

Updated: October 26, 2022

The video capture API includes constants that specify the video capture video capture behavior properties.

Definitions:

#define CAPTURE_TIMEOUT_INFINITE (-1ULL)

Never time out; wait for frame indefinitely Typically, drivers set the timeout to 30 days instead of using an actual infinite timeout.

#define CAPTURE_TIMEOUT_NO_WAIT (0)

Return immediately, even if there is no frame.

#define CAPTURE_FLAG_LATEST_FRAME UINT32_C(0x0001)

Get the latest frame and discard all the other queued frames.