Illustrated C/C++ source sheets, symbol index, API relationship graph, compiler console and debug trace

LIVE AI / FLEXIBLE SENSING / FLIGHT CONTEXT

Sensoraia API

Live AI and sensing, connected to the flight.
See, listen, inspect and return supported results while airborne.

Loading...
Searching...
No Matches
camera_capture.h File Reference

Optional split-phase capture contract for USHER image backends. More...

#include <stdbool.h>
#include <stddef.h>
#include <signal.h>
Include dependency graph for camera_capture.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  camera_pending
 Per-image ownership record, kept alive until the matching finish call. More...
struct  camera_capture_ops
 Driver capabilities whose table must outlive every pending image. More...

Functions

static bool capture_running (const volatile sig_atomic_t *running)
 Atomically poll a borrowed cancellation flag; NULL means no cancellation.
static void capture_set_running (volatile sig_atomic_t *running, bool active)
 Update cancellation without locks; this flag does not publish other shared state.

Detailed Description

Optional split-phase capture contract for USHER image backends.

Separating acquisition from publication lets a driver return its camera buffers before JPEG encoding or storage finishes. Only advertise this interface when the driver actually owns the selected pixels; a queued shutter request is not a retained image. Synchronous backends need not implement these hooks.

Definition in file camera_capture.h.

Function Documentation

◆ capture_running()

bool capture_running ( const volatile sig_atomic_t * running)
inlinestatic

Atomically poll a borrowed cancellation flag; NULL means no cancellation.

Definition at line 46 of file camera_capture.h.

◆ capture_set_running()

void capture_set_running ( volatile sig_atomic_t * running,
bool active )
inlinestatic

Update cancellation without locks; this flag does not publish other shared state.

Definition at line 52 of file camera_capture.h.