forked from tTh/FloatImg
4f27e491b1 | ||
---|---|---|
.. | ||
Makefile | ||
README.md | ||
alphachan.c | ||
contrast.c | ||
fimg-2gray.c | ||
fimg-compare.c | ||
fimg-core.c | ||
fimg-file.c | ||
fimg-math.c | ||
fimg-pnm.c | ||
fimg-timers.c | ||
interpolate.c | ||
metadata.c | ||
operators.c | ||
runme.sh | ||
t.c |
README.md
Floatimg, the base/core library
Data structures
Image's pixels (floating point number, a float
for C)
are ordonned as an array of lines of single
componant values. Every componant is in a separate array,
who are glued together by an in-memory image descriptor.
#define MAGIC_FIMG 0x00F11F00
typedef struct {
uint32_t magic;
int width;
int height;
int type;
float fval;
int count;
float *R, *G, *B, *A;
FimgMetaData mdatas; // added 20230912
int reserved;
} FloatImg;