TinyUVC 0.1.0
Header-only USB Video Class (UVC) device: turn an MCU into a USB webcam
Loading...
Searching...
No Matches
Static Public Member Functions | Static Protected Member Functions | List of all members
tinyuvc::UVCMemory Class Reference

Allocates frame sized buffers in PSRAM or RAM (see UVCMemoryType) More...

#include <UVCMemory.h>

Static Public Member Functions

static bool hasPSRAM ()
 true if PSRAM is available
 
static uint8_t * alloc (size_t size, UVCMemoryType type=UVCMemoryType::Auto)
 
static void free (void *p)
 

Static Protected Member Functions

static uint8_t * allocPSRAM (size_t size)
 
static uint8_t * allocRAM (size_t size)
 

Detailed Description

Allocates frame sized buffers in PSRAM or RAM (see UVCMemoryType)

Member Function Documentation

◆ alloc()

static uint8_t * tinyuvc::UVCMemory::alloc ( size_t  size,
UVCMemoryType  type = UVCMemoryType::Auto 
)
inlinestatic

Allocates size bytes; nullptr if that is not possible. Release with UVCMemory::free().

◆ allocPSRAM()

static uint8_t * tinyuvc::UVCMemory::allocPSRAM ( size_t  size)
inlinestaticprotected

◆ allocRAM()

static uint8_t * tinyuvc::UVCMemory::allocRAM ( size_t  size)
inlinestaticprotected

◆ free()

static void tinyuvc::UVCMemory::free ( void *  p)
inlinestatic

◆ hasPSRAM()

static bool tinyuvc::UVCMemory::hasPSRAM ( )
inlinestatic

true if PSRAM is available


The documentation for this class was generated from the following file: