Entropic 2.3.8
Local-first agentic inference engine
Loading...
Searching...
No Matches
image_preprocessor.cpp File Reference

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>
Include dependency graph for image_preprocessor.cpp:

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")
 

Detailed Description

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).

Version
1.9.11

Definition in file image_preprocessor.cpp.

Macro Definition Documentation

◆ STB_IMAGE_IMPLEMENTATION

#define STB_IMAGE_IMPLEMENTATION

Definition at line 23 of file image_preprocessor.cpp.

◆ STB_IMAGE_STATIC

#define STB_IMAGE_STATIC

Definition at line 24 of file image_preprocessor.cpp.

◆ STBI_ONLY_BMP

#define STBI_ONLY_BMP

Definition at line 27 of file image_preprocessor.cpp.

◆ STBI_ONLY_GIF

#define STBI_ONLY_GIF

Definition at line 28 of file image_preprocessor.cpp.

◆ STBI_ONLY_JPEG

#define STBI_ONLY_JPEG

Definition at line 26 of file image_preprocessor.cpp.

◆ STBI_ONLY_PNG

#define STBI_ONLY_PNG

Definition at line 25 of file image_preprocessor.cpp.

Variable Documentation

◆ logger

auto logger = entropic::log::get("inference.image_preprocessor")
static

Definition at line 31 of file image_preprocessor.cpp.