Void Sentry
An AI-driven, real-time Sentry Turret platform leveraging asynchronous I/O and computer vision to deliver high-precision autonomous motion tracking on resource-constrained embedded hardware.
Loading...
Searching...
No Matches
viewer_set.h File Reference

Which stream viewers should receive which frame (pure C++20, natively tested). More...

#include <array>
#include <cstddef>
#include <cstdint>
#include <optional>

Go to the source code of this file.

Classes

struct  frames::ReadyList
 Fixed-capacity result so the stream path never allocates per frame. More...
 
class  frames::ViewerSet
 

Variables

constexpr size_t frames::kMaxViewers = 2
 

Detailed Description

Which stream viewers should receive which frame (pure C++20, natively tested).

A viewer that is still receiving (busy) is skipped, so it never builds a backlog and always gets the newest frame next - this is what keeps stream latency low. NOT thread-safe; StreamBroadcaster locks around it.