|
TinyUVC 0.1.0
Header-only USB Video Class (UVC) device: turn an MCU into a USB webcam
|
Compile-time limits and defaults of TinyUVC. Every value can be overridden with a build flag (-DTINYUVC_xxx=...) or a \#define before the first \#include "TinyUVC.h".
More...

Go to the source code of this file.
Macros | |
| #define | TINYUVC_MAX_FORMATS 2 |
| Max number of video formats (e.g. MJPEG + YUY2) a UVCDevice offers. | |
| #define | TINYUVC_MAX_FRAMES 6 |
| Max number of resolutions (frame descriptors) per format. | |
| #define | TINYUVC_MAX_INTERVALS 4 |
| Max number of frame rates per resolution. | |
| #define | TINYUVC_PAYLOAD_SIZE 16384 |
| #define | TINYUVC_CONFIG_BUFFER_SIZE 1024 |
| #define | TINYUVC_DEFAULT_NAME "TinyUVC Camera" |
| #define | TINYUVC_LOG_LEVEL 2 |
| Log level: 0 = off, 1 = error, 2 = warning, 3 = info, 4 = debug. | |
Compile-time limits and defaults of TinyUVC. Every value can be overridden with a build flag (-DTINYUVC_xxx=...) or a \#define before the first \#include "TinyUVC.h".
| #define TINYUVC_CONFIG_BUFFER_SIZE 1024 |
Max length of a configuration descriptor that TinyUVC builds for the Adafruit TinyUSB stack (which needs one buffer for all interfaces).
| #define TINYUVC_DEFAULT_NAME "TinyUVC Camera" |
Interface string, shown e.g. by Linux (v4l2-ctl –list-devices) and in the Windows device manager.
| #define TINYUVC_LOG_LEVEL 2 |
Log level: 0 = off, 1 = error, 2 = warning, 3 = info, 4 = debug.
| #define TINYUVC_MAX_FORMATS 2 |
Max number of video formats (e.g. MJPEG + YUY2) a UVCDevice offers.
| #define TINYUVC_MAX_FRAMES 6 |
Max number of resolutions (frame descriptors) per format.
| #define TINYUVC_MAX_INTERVALS 4 |
Max number of frame rates per resolution.
| #define TINYUVC_PAYLOAD_SIZE 16384 |
Max size of one UVC payload transfer (header + data) in bytes. It is reported to the host as dwMaxPayloadTransferSize and is the size of the one transfer buffer the device allocates. Bigger values reduce the idle time between transfers. It is rounded to a multiple of the endpoint's max packet size and limited to 32 packets (2048 bytes full speed, 16384 bytes high speed), the URB size of Linux. Change it with UVCDevice::setPayloadSize().