Optional split-phase capture contract for USHER image backends. More...
#include <stdbool.h>#include <stddef.h>#include <signal.h>

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()
|
inlinestatic |
Atomically poll a borrowed cancellation flag; NULL means no cancellation.
Definition at line 46 of file camera_capture.h.
◆ capture_set_running()
|
inlinestatic |
Update cancellation without locks; this flag does not publish other shared state.
Definition at line 52 of file camera_capture.h.