|
TinyUVC 0.1.0
Header-only USB Video Class (UVC) device: turn an MCU into a USB webcam
|
Memory for frame sized buffers, taken from PSRAM where the board has it: ESP32 with PSRAM enabled (Tools > PSRAM), and RP2350 boards with PSRAM (arduino-pico defines RP2350_PSRAM_CS). Elsewhere it is normal heap memory. More...
#include <stdint.h>#include <stdlib.h>#include <string.h>

Go to the source code of this file.
Classes | |
| class | tinyuvc::UVCMemory |
| Allocates frame sized buffers in PSRAM or RAM (see UVCMemoryType) More... | |
| class | tinyuvc::UVCFrameBuffer |
| A growing byte buffer for one frame, allocated with UVCMemory (so in PSRAM where available). It grows in steps while a frame is written and keeps its memory when it is cleared, so after the first frames no more allocations happen. More... | |
Namespaces | |
| namespace | tinyuvc |
| TinyUVC: USB Video Class (UVC) device for Arduino and the desktop. | |
Enumerations | |
| enum class | tinyuvc::UVCMemoryType { tinyuvc::Auto , tinyuvc::PSRAMOnly , tinyuvc::RAMOnly } |
Memory for frame sized buffers, taken from PSRAM where the board has it: ESP32 with PSRAM enabled (Tools > PSRAM), and RP2350 boards with PSRAM (arduino-pico defines RP2350_PSRAM_CS). Elsewhere it is normal heap memory.
The USB transfer buffer of UVCDevice is not allocated here: the USB DMA needs internal RAM. Frames that are written to UVCDevice::writeFrame() can be anywhere (PSRAM too), because they are copied payload by payload into the transfer buffer.