This is a convenience struct that holds all information about the format of a webcam stream.
It consists of a Resolution, FrameFormat, and a frame rate(u8).
Information about a Camera e.g. its name.
description amd misc may contain information that may differ from backend to backend. Refer to each backend for details.
index is a camera’s index given to it by (usually) the OS usually in the order it is known to the system.
Describes a Resolution.
This struct consists of a Width and a Height value (x,y).
Note: the Ord implementation of this struct is flipped from highest to lowest.
The list of known camera controls to the library.
These can control the picture brightness, etc.
Note that not all backends/devices support all these. Run supported_camera_controls() to see which ones can be set.