#include <stdint.h>
#include <stdbool.h>
Go to the source code of this file.
|
| bool | GlimpseLoadImage (const char *path, GlimpseRawImage *out_img) |
| |
| void | GlimpseFreeImage (GlimpseRawImage *img) |
| |
| void | GlimpseFitDimensions (int src_w, int src_h, int max_w, int max_h, int *out_w, int *out_h) |
| |
| bool | GlimpseResizeImage (const GlimpseRawImage *src, int dst_w, int dst_h, GlimpseRawImage *out_resized) |
| |
| bool | GlimpseSaveBmp (const char *path, const GlimpseRawImage *img) |
| |
◆ GlimpseFitDimensions()
| void GlimpseFitDimensions |
( |
int |
src_w, |
|
|
int |
src_h, |
|
|
int |
max_w, |
|
|
int |
max_h, |
|
|
int * |
out_w, |
|
|
int * |
out_h |
|
) |
| |
Compute fitted width and height preserving aspect ratio.
◆ GlimpseFreeImage()
Free memory allocated for raw image pixels.
◆ GlimpseLoadImage()
Load any supported image format (.jpg, .jpeg, .png, .bmp) into 32-bit RGBA.
◆ GlimpseResizeImage()
High-performance integer area-sampling downscale / resize.
◆ GlimpseSaveBmp()
Save a 32-bit RGBA image to disk as a standard Chitralekha-compatible BMP file.