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
-
context Exclusive model owner; input storage and transform are written in place. filename Readable regular JPEG, immutable throughout decoding. error Caller-owned diagnostic buffer, cleared on success. capacity Available 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.