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.h File Reference

Backend definitions and physical-camera routing. More...

#include "camera_backend.h"
Include dependency graph for camera_backend_registry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  camera_backend_type {
  CAMERA_BACKEND_UNSELECTED , CAMERA_BACKEND_CHDK , CAMERA_BACKEND_LOCAL , CAMERA_BACKEND_AI_CAM ,
  CAMERA_BACKEND_SPOTTER_CAM , CAMERA_BACKEND_LWIR_CAM , CAMERA_BACKEND_EAR_CAM , CAMERA_BACKEND_LOOM_CAM ,
  CAMERA_BACKEND_DIPLA_CAM , CAMERA_BACKEND_COUNT
}

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

Logical profiles are independent of stable protocol camera IDs.

Enumerator
CAMERA_BACKEND_UNSELECTED 
CAMERA_BACKEND_CHDK 
CAMERA_BACKEND_LOCAL 
CAMERA_BACKEND_AI_CAM 
CAMERA_BACKEND_SPOTTER_CAM 
CAMERA_BACKEND_LWIR_CAM 
CAMERA_BACKEND_EAR_CAM 
CAMERA_BACKEND_LOOM_CAM 
CAMERA_BACKEND_DIPLA_CAM 
CAMERA_BACKEND_COUNT 

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
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.