|
Entropic 2.3.8
Local-first agentic inference engine
|
Image preprocessing implementation. More...
#include <entropic/inference/image_preprocessor.h>#include <entropic/types/logging.h>#include <algorithm>#include <fstream>#include <stdexcept>#include <stb/stb_image.h>
Go to the source code of this file.
Namespaces | |
| namespace | entropic |
| Activate model on GPU (WARM → ACTIVE). | |
Functions | |
| static std::vector< uint8_t > | entropic::read_image_bytes (const std::filesystem::path &path, size_t max_file_size) |
| Validate + read an image file fully into a byte buffer. | |
Variables | |
| static auto | logger = entropic::log::get("inference.image_preprocessor") |
Image preprocessing implementation.
Uses stb_image (vendored with llama.cpp) for decoding. Resize is bilinear downscale implemented in-house (stb_image_resize2 not available in llama.cpp's vendor tree).
Definition in file image_preprocessor.cpp.
| #define STB_IMAGE_IMPLEMENTATION |
Definition at line 23 of file image_preprocessor.cpp.
| #define STB_IMAGE_STATIC |
Definition at line 24 of file image_preprocessor.cpp.
| #define STBI_ONLY_BMP |
Definition at line 27 of file image_preprocessor.cpp.
| #define STBI_ONLY_GIF |
Definition at line 28 of file image_preprocessor.cpp.
| #define STBI_ONLY_JPEG |
Definition at line 26 of file image_preprocessor.cpp.
| #define STBI_ONLY_PNG |
Definition at line 25 of file image_preprocessor.cpp.
|
static |
Definition at line 31 of file image_preprocessor.cpp.