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_backend_registry.c File Reference

Shared backend catalogue; the service schedules capabilities, not devices. More...

Include dependency graph for camera_backend_registry.c:

Go to the source code of this file.

Macros

#define USHER_SODA   "./bin/soda"
#define USHER_AI_CAM_PHOTO_DIR   "~/Pictures/sensoraia"
#define USHER_LWIR_CAM_PHOTO_DIR   "~/Pictures/sensoraia"
#define USHER_SPOTTERCAM_PHOTO_DIR   "~/Pictures/sensoraia"

Functions

struct camera_backend camera_backend_registry_get (enum camera_backend_type type, bool mock)
 Return a descriptor without selecting, configuring or opening hardware.
enum camera_backend_type camera_backend_registry_route (int camera_id, enum camera_backend_type preferred, bool local_only)
 Resolve a physical ID, preferring its configured logical profile.
struct camera_backend camera_backend_registry_identity (int camera_id, enum camera_backend_type preferred, bool mock)
 Resolve naming/metadata identity from the profile used for acquisition.

Detailed Description

Shared backend catalogue; the service schedules capabilities, not devices.

Descriptor lookup is side-effect free. Specialized backends own their hooks; simple adapters share this table. Profiles never allocate protocol IDs.

Definition in file camera_backend_registry.c.

Macro Definition Documentation

◆ USHER_AI_CAM_PHOTO_DIR

#define USHER_AI_CAM_PHOTO_DIR   "~/Pictures/sensoraia"

Definition at line 40 of file camera_backend_registry.c.

◆ USHER_LWIR_CAM_PHOTO_DIR

#define USHER_LWIR_CAM_PHOTO_DIR   "~/Pictures/sensoraia"

Definition at line 43 of file camera_backend_registry.c.

◆ USHER_SODA

#define USHER_SODA   "./bin/soda"

Definition at line 37 of file camera_backend_registry.c.

◆ USHER_SPOTTERCAM_PHOTO_DIR

#define USHER_SPOTTERCAM_PHOTO_DIR   "~/Pictures/sensoraia"

Definition at line 46 of file camera_backend_registry.c.

Function Documentation

◆ camera_backend_registry_get()

struct camera_backend camera_backend_registry_get ( enum camera_backend_type type,
bool mock )

Return a descriptor without selecting, configuring or opening hardware.

Parameters
typeLogical backend profile, not a protocol camera ID.
mockSelect a plugin's simulation-safe variant where applicable.
Returns
Descriptor with stable hook lifetimes; zero for absent/invalid profiles.

Definition at line 49 of file camera_backend_registry.c.

◆ camera_backend_registry_identity()

struct camera_backend camera_backend_registry_identity ( int camera_id,
enum camera_backend_type preferred,
bool mock )

Resolve naming/metadata identity from the profile used for acquisition.

Parameters
camera_idStable protocol identity to describe.
preferredConfigured logical profile, including specialized AIcam users.
mockSelect the profile's mock-safe hooks without changing its identity.
Returns
Side-effect-free descriptor; unavailable IDs return a zero descriptor.

Definition at line 118 of file camera_backend_registry.c.

◆ camera_backend_registry_route()

enum camera_backend_type camera_backend_registry_route ( int camera_id,
enum camera_backend_type preferred,
bool local_only )

Resolve a physical ID, preferring its configured logical profile.

Parameters
camera_idStable protocol identity; unsupported IDs are rejected.
preferredConfigured profile, used only for its own physical camera.
local_onlyReplace image acquisition with the generic local driver.
Returns
Profile to acquire, or CAMERA_BACKEND_UNSELECTED if unavailable.

Identity is resolved separately so local acquisition never erases the requested sensor's naming, geometry or metadata policy.

Definition at line 103 of file camera_backend_registry.c.