Struct VideoManager::RecordingCameraSnapshot#

Nested Relationships#

This struct is a nested type of Class VideoManager.

Struct Documentation#

struct RecordingCameraSnapshot

One camera’s final counters for the recording that just ended.

Deliberately a snapshot, not a live read: every live counter above is zeroed again by VideoGrabber::start_grabbing() the moment preview resumes, and Application::initialize() connects its own preview-restart handler to RecordManager::recording_stopped before MainWindow exists, so it always runs first. Anything reading camera_stats() from a recording_stopped handler therefore sees zeros for every camera. Use last_recording_snapshot() instead for post-recording reporting.

Public Members

int configIndex = 0

Position in settings.cameras this unit was opened from — NOT its position in the internal (compacted) unit list. See CameraUnit::configIndex.

int64_t framesGrabbed = 0
int64_t framesEncoded = 0
int64_t framesDropped = 0
int64_t incompleteFrames = 0
double configuredFps = 0.0
double achievableFps = -1.0

-1 = not measured

bool actionCommandReady = false