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

LOOM-owned capture specialization and stream lifecycle. More...

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

Go to the source code of this file.

Macros

LOOM deployment defaults shared with CLI wiring
#define USHER_LOOMCAM_COMMAND   "./bin/loomcam"
 Native LOOM capture/saved-photo executable beside the deployed tools.
#define USHER_LOOMCAM_MODEL   "models/ai_cam/nn_loom_v001.rpk"
 Expected RPK path; the framework does not fabricate a trained model.
#define USHER_LOOMCAM_REFERENCE_DIR   "photos/loom-reference"
 Default outbound archive; use independent reference storage per sortie.

Functions

void loom_camera_backend_configure (const char *references, const char *model)
 Configure the LOOM plugin before selecting or initializing its owner.
struct camera_backend loom_camera_backend_get (bool mock)
 Return LOOM's descriptor without opening a sensor or starting a thread.
int loom_camera_backend_set_settings (const char *settings)
 Choose one LOOM assignment before acquiring either worker.

Detailed Description

LOOM-owned capture specialization and stream lifecycle.

Definition in file loom_camera_backend.h.

Macro Definition Documentation

◆ USHER_LOOMCAM_COMMAND

#define USHER_LOOMCAM_COMMAND   "./bin/loomcam"

Native LOOM capture/saved-photo executable beside the deployed tools.

Definition at line 30 of file loom_camera_backend.h.

◆ USHER_LOOMCAM_MODEL

#define USHER_LOOMCAM_MODEL   "models/ai_cam/nn_loom_v001.rpk"

Expected RPK path; the framework does not fabricate a trained model.

Definition at line 34 of file loom_camera_backend.h.

◆ USHER_LOOMCAM_REFERENCE_DIR

#define USHER_LOOMCAM_REFERENCE_DIR   "photos/loom-reference"

Default outbound archive; use independent reference storage per sortie.

Definition at line 38 of file loom_camera_backend.h.

Function Documentation

◆ loom_camera_backend_configure()

void loom_camera_backend_configure ( const char * references,
const char * model )

Configure the LOOM plugin before selecting or initializing its owner.

Parameters
referencesBorrowed reference-directory path, valid until initialization.
modelBorrowed RPK path, valid for the capture backend lifetime.
Precondition
No LOOM owner is active while configuration changes.

Saved-photo worker initialization copies its paths; native capture continues borrowing the model until shutdown. Do not shorten that lifetime merely because the matcher has already started.

Definition at line 62 of file loom_camera_backend.c.

◆ loom_camera_backend_get()

struct camera_backend loom_camera_backend_get ( bool mock)

Return LOOM's descriptor without opening a sensor or starting a thread.

Parameters
mockTrue for saved/mock pixels rather than the native capture owner.
Returns
Immutable hook lifetimes with LOOM-owned naming and point semantics.

Native LOOM advertises image capture and finish ownership, never object detection. Frame timing remains on the common capture path; matching has its own saved-photo stream lifecycle and cannot acquire the sensor again.

Definition at line 111 of file loom_camera_backend.c.

◆ loom_camera_backend_set_settings()

int loom_camera_backend_set_settings ( const char * settings)

Choose one LOOM assignment before acquiring either worker.

Parameters
settingsBorrowed nonempty settings path, alive until capture and analysis have stopped.
Returns
Zero if accepted; minus one when invalid or workers already own configuration.

Definition at line 54 of file loom_camera_backend.c.