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

Bounded JPEG-to-tensor preparation without running the graph or modifying the input file. More...

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

Go to the source code of this file.

Functions

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.

Detailed Description

Bounded JPEG-to-tensor preparation without running the graph or modifying the input file.

Definition in file inference_jpeg.h.

Function Documentation

◆ inference_jpeg_prepare()

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.

Parameters
contextExclusive model owner; input storage and transform are written in place.
filenameReadable regular JPEG, immutable throughout decoding.
errorCaller-owned diagnostic buffer, cleared on success.
capacityAvailable bytes in error, including its terminator.
Returns
True for complete, warning-free decoding and supported preprocessing.
Warning
On failure discard the partially written tensor and transform; do not run inference.

Definition at line 167 of file inference_jpeg.c.