Backend definitions and physical-camera routing. More...
#include "camera_backend.h"

Go to the source code of this file.
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
Backend definitions and physical-camera routing.
Definition in file camera_backend_registry.h.
Enumeration Type Documentation
◆ camera_backend_type
| enum camera_backend_type |
Logical profiles are independent of stable protocol camera IDs.
Definition at line 27 of file camera_backend_registry.h.
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.