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
camera_task.h
Go to the documentation of this file.
1
6
#pragma once
7
8
#include <atomic>
9
#include <cstdint>
10
11
#include "
frame_store.h
"
12
13
struct
CameraTaskStats
{
14
std::atomic<uint32_t> captured{0};
// frames received from the driver
15
std::atomic<uint32_t> copy_us_total{0};
// total time spent copying into slots
16
std::atomic<uint32_t> copies{0};
// frames copied (published)
17
std::atomic<uint32_t> bytes_total{0};
// JPEG bytes copied (wraps after ~4 GB; use per-window deltas)
18
};
19
24
bool
start_camera_task
(
FrameStore
& store,
CameraTaskStats
& stats);
start_camera_task
bool start_camera_task(FrameStore &store, CameraTaskStats &stats)
Start the camera task (core 1, priority 4, 4096-byte stack). Call after esp_camera init succeeded.
Definition
camera_task.cpp:63
FrameStore
Definition
frame_store.h:30
frame_store.h
Thread-safe home for camera frames: FrameSlots bookkeeping + fixed PSRAM buffers, allocated once.
CameraTaskStats
Definition
camera_task.h:13
lib
frame_store
include
camera_task.h
Generated by
1.12.0