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
inference_jpeg.h
Go to the documentation of this file.
1/*
2 * Copyright 2026 OpenUAS
3 * SPDX-License-Identifier: Apache-2.0
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18/** @file inference_jpeg.h
19 * @brief Bounded JPEG-to-tensor preparation without running the graph or modifying the input file. */
20#ifndef SENSORAIA_INFERENCE_JPEG_H
21#define SENSORAIA_INFERENCE_JPEG_H
22
23#include "inference_model.h"
24
25#ifdef __cplusplus
26extern "C" {
27#endif
28
29/**
30 * @brief Stream a JPEG into an open context's single declared image input.
31 * @param context Exclusive model owner; input storage and transform are written in place.
32 * @param filename Readable regular JPEG, immutable throughout decoding.
33 * @param error Caller-owned diagnostic buffer, cleared on success.
34 * @param capacity Available bytes in error, including its terminator.
35 * @return True for complete, warning-free decoding and supported preprocessing.
36 * @warning On failure discard the partially written tensor and transform; do not run inference.
37 */
38bool inference_jpeg_prepare(struct inference_context *context, const char *filename,
39 char *error, size_t capacity);
40
41#ifdef __cplusplus
42}
43#endif
44#endif
static unsigned capacity[COVERAGE_CAMERAS]
bool inference_jpeg_prepare(struct inference_context *context, const char *filename, char *error, size_t capacity)
Stream a JPEG into an open context's single declared image input.
Integrity-checked model contracts and independently owned tensor workspaces.
struct jpeg_error_mgr error
Definition lwir_image.c:60
Independent, noncopyable model owner; mapped tensor buffers and session are reused between jobs.