embassy-usb

Crates

git

Versions

default

Flavors

Skip to main content

Module device

Module device 

Source
Expand description

USB Video Class 1.5 - camera device (device to host).

Streams video over an isochronous or bulk IN endpoint. The camera offers any number of Formats (MJPEG, YUY2, NV12, I420, H.264, or custom frame-based formats), each with one or more Frame sizes and frame intervals. The host picks one through the 48-byte UVC 1.5 probe/commit handshake; Camera::settings reports the result and Camera::write_frame (or Camera::start_frame for chunked streaming) sends frames with UVC payload headers.

Optional UVC 1.5 features include:

Structs§

Camera
Implementation of the USB Video Class 1.5, camera side.
CameraControls
Supported Camera Terminal (ITT_CAMERA) controls.
Config
Everything the camera advertises to the host.
ControlRange
Range and default value for a numeric UVC Processing Unit or Camera Terminal control.
ControlValues
Current values of all VideoControl Processing Unit and Camera Terminal controls.
Format
A video format the camera can stream, with its frame sizes.
Frame
A frame size of a Format, with the frame intervals it supports.
FrameWriter
Streaming writer for a single UVC video or still image frame.
PayloadTimestamp
Optional UVC payload timestamps for Camera::write_frame_with_timestamp and Camera::start_frame_with_timestamp.
ProcessingControls
Supported Processing Unit (VC_PROCESSING_UNIT) controls.
State
Internal state for a USB Video Class 1.5 camera.
StillConfig
Method 2 still image capture configuration (VS_STILL_IMAGE_FRAME).
StillFrame
Resolution offered for UVC Method 2 still image capture.
StillSettings
Committed still image capture parameters when triggered by the host.
StreamSettings
What the host selected for the stream.

Enums§

PixelFormat
The pixel format of a Format.
StreamTransport
Transport endpoint type used for the VideoStreaming interface.

Functions§

fourcc_guid
Builds a standard UVC 16-byte GUID from a 4-character FourCC code.