Loading...
Searching...
No Matches
camera_backend.h
Go to the documentation of this file.
Optional split-phase capture contract for USHER image backends.
Sensor observation times, aligned poses, and optional frame-arrival evidence.
Definition camera_backend.h:79
void(* queue_analysis)(const char *filename, const union dc_shot_union *shot, int camera_id)
Queue optional analysis after image ownership has been established.
Definition camera_backend.h:85
bool(* pose_lookup)(struct capture_observation *observation, uint64_t maximum_age_us)
Bounded pose lookup supplied by USHER's shared timing owner.
Definition camera_backend.h:83
const volatile sig_atomic_t * running
Borrowed shutdown flag; backend workers must stop when it clears.
Definition camera_backend.h:81
Function table describing one backend's owned camera operations.
Definition camera_backend.h:94
void(* image_saved)(const char *filename, const union dc_shot_union *shot)
Definition camera_backend.h:129
void(* detection_summary)(char *buffer, size_t size)
Definition camera_backend.h:125
int(* init_cancelable)(const char *source_image, const volatile sig_atomic_t *running)
Definition camera_backend.h:116
struct capture_timing(* capture_timing)(void)
Definition camera_backend.h:122
const struct camera_capture_ops * capture_ops
Optional split-phase capture lifecycle.
Definition camera_backend.h:106
const char * soda_application
Optional SODA application name for this backend's saved files.
Definition camera_backend.h:104
void(* save_detection_copy)(const char *filename)
Definition camera_backend.h:126
bool(* bind_frame)(uint64_t sequence, uint64_t sensor_timestamp_ns)
Definition camera_backend.h:124
int(* init)(const char *source_image)
Initialize backend resources; optional mock image path is borrowed.
Definition camera_backend.h:98
struct camera_backend::@243120217343377347337244154071360217343172026241 mock
void(* deinit)(void)
Release backend resources and reap owned children.
Definition camera_backend.h:102
int(* shoot)(char *filename, size_t filename_size, int image_number)
Trigger one photo and return the backend's owned staging path.
Definition camera_backend.h:100
int(* control_init)(void)
Initialize control-only ownership without forcing photo capture setup.
Definition camera_backend.h:135
void(* configure)(const struct camera_backend_host *host)
Definition camera_backend.h:119
const struct camera_point_stream_ops * point_stream
Optional repeated point stream, independent of start/stop sessions.
Definition camera_backend.h:131
uint32_t control_capabilities
Bitset of controls supported by this backend; zero means none.
Definition camera_backend.h:133
uint8_t(* control)(uint8_t command, uint8_t value, uint8_t *observed, uint8_t *evidence)
Execute one validated control and return command-specific evidence.
Definition camera_backend.h:137
Driver capabilities whose table must outlive every pending image.
Definition camera_capture.h:73
Definition camera_backend.h:50
Repeated correlated point updates from saved photos or non-image work.
Definition camera_backend.h:68
bool(* poll_result)(struct camera_point_result *result)
Definition camera_backend.h:71
Definition camera_backend.h:56
bool(* poll_result)(struct camera_point_result *result)
Definition camera_backend.h:61
Definition capture_timing.h:41
Definition usher_protocol.h:51