Skip to main content

Module pool

Module pool 

Source
Expand description

A frame pool over one caller-owned buffer.

A camera DMA engine fills one slot while the encoder reads another. On a chip the buffer is a static array (often in PSRAM); on the host it is a Vec. The pool never allocates and never hands out overlapping memory: slots are addressed by SlotId, and the pool is borrowed for exactly as long as a slot’s bytes are being touched.

Structs§

FramePool
N equal slots carved from one buffer.
SlotId
Index of a slot in a FramePool.