|
TinyUVC 0.1.0
Header-only USB Video Class (UVC) device: turn an MCU into a USB webcam
|
USB Video Class 1.1 constants and the basic TinyUVC data types. More...


Go to the source code of this file.
Classes | |
| struct | tinyuvc::UVCFrameSpec |
| One resolution (UVC frame descriptor) with its supported frame rates. More... | |
| struct | tinyuvc::UVCFormatSpec |
| One video format (UVC format descriptor) with its resolutions. More... | |
| struct | tinyuvc::UVCStreamSettings |
| The format, resolution and frame rate the host selected. More... | |
| struct | tinyuvc::UVCProbeCommit |
| Video probe and commit control (UVC 1.1, 34 bytes). Kept as a byte array in USB (little endian) layout with typed accessors, so there are no packing or alignment issues. More... | |
Namespaces | |
| namespace | tinyuvc |
| TinyUVC: USB Video Class (UVC) device for Arduino and the desktop. | |
| namespace | tinyuvc::uvc_spec |
| Constants of the USB Video Class 1.1 specification. | |
| namespace | tinyuvc::le |
| Little endian helpers. | |
Enumerations | |
| enum class | tinyuvc::UVCFormat : uint8_t { tinyuvc::MJPEG = 0 , tinyuvc::YUY2 = 1 } |
| Video format offered to the USB host. More... | |
| enum class | tinyuvc::PixelFormat : uint8_t { tinyuvc::MJPEG , tinyuvc::YUY2 , tinyuvc::RGB565_LE , tinyuvc::RGB565_BE , tinyuvc::RGB888 , tinyuvc::BGR888 , tinyuvc::GRAY8 } |
| Pixel format of the frame data handed to UVCDevice::writeFrame(). MJPEG (a JPEG image) is sent as is. (Not named JPEG: STM32H7 headers define a JPEG macro.) YUY2 is sent as is (YUY2). All other formats are converted to YUY2 on the fly, while they are sent, so they need no extra frame buffer. More... | |
Functions | |
| constexpr uint8_t | tinyuvc::bytesPerPixel (PixelFormat fmt) |
| Bytes per pixel of a raw pixel format (0 for JPEG) | |
| const char * | tinyuvc::toString (PixelFormat fmt) |
| Name of a pixel format, for logging. | |
| const char * | tinyuvc::toString (UVCFormat fmt) |
| Name of a UVC format, for logging. | |
| constexpr uint32_t | tinyuvc::fpsToInterval (uint32_t fps) |
| Frame interval in 100ns units for a frame rate. | |
| constexpr uint32_t | tinyuvc::intervalToFps (uint32_t interval) |
| Frame rate for a frame interval in 100ns units. | |
| void | tinyuvc::le::put16 (uint8_t *p, uint16_t v) |
| void | tinyuvc::le::put32 (uint8_t *p, uint32_t v) |
| uint16_t | tinyuvc::le::get16 (const uint8_t *p) |
| uint32_t | tinyuvc::le::get32 (const uint8_t *p) |
USB Video Class 1.1 constants and the basic TinyUVC data types.