Shared backend catalogue; the service schedules capabilities, not devices. More...
#include "camera_backend_registry.h"#include "ai_cam_pipe.h"#include "chdk_camera_backend.h"#include "local_pipe.h"#include "loom_camera_backend.h"#include "lwir_cam_pipe.h"#include "../modules/lwir_cam/lwir_features.h"#include "spotter_cam_pipe.h"#include "spotter_camera_backend.h"#include "ear_camera_backend.h"#include "dipla_camera_backend.h"
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
-
type Logical backend profile, not a protocol camera ID. mock Select 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_id Stable protocol identity to describe. preferred Configured logical profile, including specialized AIcam users. mock Select 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_id Stable protocol identity; unsupported IDs are rejected. preferred Configured profile, used only for its own physical camera. local_only Replace 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.