Loading...
Searching...
No Matches
chdk_camera_backend.c
Go to the documentation of this file.
99 .name = "chdk", .init = chdk_backend_init, .shoot = chdk_backend_shoot, .configure = chdk_backend_configure,
102 .control_capabilities = CAM_CONTROL_CAP(CAM_CMD_ZOOM_ABSOLUTE) | CAM_CONTROL_CAP(CAM_CMD_LENS_RETRACT),
Fixed-size camera-control wire codec and FC-side ticket state.
struct camera_backend chdk_camera_backend_get(void)
Definition chdk_camera_backend.c:96
static void chdk_backend_configure(const struct camera_backend_host *host)
Pass service cancellation to CHDKbridge supervision.
Definition chdk_camera_backend.c:46
void chdk_camera_backend_set_photo_directory(const char *directory)
Definition chdk_camera_backend.c:51
static int chdk_backend_shoot(char *filename, size_t capacity, int number)
Capture one CHDK JPEG at the path derived from its shot number.
Definition chdk_camera_backend.c:81
static int chdk_backend_init(const char *source_image)
Prepare capture storage and initialize the CHDK controller path.
Definition chdk_camera_backend.c:60
CHDK-owned download and photo publication.
uint8_t chdk_pipe_control(uint8_t command, uint8_t value, uint8_t *observed, uint8_t *evidence)
Apply one supported lens command and qualify device evidence.
Definition chdk_pipe.c:477
void chdk_pipe_set_running(const volatile sig_atomic_t *running)
Configure cancellation for controller operations.
Definition chdk_pipe.c:167
int chdk_pipe_init(void)
Prepare bounded controller ownership without accessing USB.
Definition chdk_pipe.c:386
int chdk_pipe_shoot(const char *filename)
Capture directly to a new JPEG destination without overwriting a file.
Definition chdk_pipe.c:440
void chdk_pipe_deinit(void)
Terminate and reap the owned process group using bounded grace periods.
Definition chdk_pipe.c:239
Bounded CHDKbridge subprocess lifecycle for USHER's visible-camera backend.
Small path and writable-directory helpers shared by USHER backends.
static const char * usher_resolve_path(const char *path, char *buffer, size_t buffer_size)
Expand a leading home-directory shorthand without allocating memory.
Definition path_utils.h:74
static int usher_ensure_directory(const char *path)
Create missing directory components and verify the final directory is writable.
Definition path_utils.h:97
Definition camera_backend.h:79
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