FrameRingBuffer class

Ring-buffer frame queue for camera streaming pipelines.

Stores the N most recent frames and automatically discards oldest frames when the buffer is full. Provides zero-allocation access to recent frames.

Constructors

FrameRingBuffer({int capacity = 5})

Properties

capacity → int
final
hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
Whether the buffer is empty.
no setter
isFull → bool
Whether the buffer is full.
no setter
latest → FrameEntry?
Returns the most recent frame, or null if empty.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
Number of frames currently in the buffer.
no setter

Methods

clear() → void
Clears all frames from the buffer.
getRecent(int index) → FrameEntry?
Returns the frame at index positions ago (0 = most recent).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
push(FrameEntry entry) → void
Pushes a new frame into the buffer, discarding the oldest if full.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited