Structs
- This struct tells you everything about a particular
KnownCameraControl
. - 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
amdmisc
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. - A request to the camera for a valid
CameraFormat
- Describes a Resolution. This struct consists of a Width and a Height value (x,y).
Note: theOrd
implementation of this struct is flipped from highest to lowest.
Enums
- The list of known capture backends to the library.
- Describes the index of the camera.
- The values for a
CameraControl
. - The setter for a control value
- Describes a frame format (i.e. how the bytes themselves are encoded). Often called
FourCC
. - 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. Runsupported_camera_controls()
to see which ones can be set. - This tells you weather a
KnownCameraControl
is automatically managed by the OS/Driver or manually managed by you, the programmer. - Tells the init function what camera format to pick.
Functions
- All camera controls in an array.
- buf_mjpeg_to_rgb
mjpeg
Equivalent tomjpeg_to_rgb
except with a destination buffer. - Converts a YUYV 4:2:0 bi-planar (NV12) datastream to a RGB888 Stream and outputs it into a destination buffer. For further reading
- Same as
yuyv422_to_rgb
but with a destination buffer instead of a returnVec<u8>
- Returns all the color frame formats
- Returns all the frame formats
- mjpeg_to_rgb
mjpeg
Converts a MJPEG stream of&[u8]
into aVec<u8>
of RGB888. (R,G,B,R,G,B,…) - Converts a YUYV 4:2:0 bi-planar (NV12) datastream to a RGB888 Stream. For further reading
- Returns the predicted size of the destination YUYV422 buffer.
- Converts a YUYV 4:2:2 datastream to a RGB888 Stream. For further reading
- Convert
YCbCr
4:4:4 to a RGB888. For further reading - Convert
YCbCr
4:4:4 to a RGBA8888. For further reading