move extractor to func/

This commit is contained in:
tth
2021-04-25 12:51:01 +02:00
parent 004f24689b
commit b3de3b96f7
4 changed files with 65 additions and 23 deletions

View File

@@ -4,13 +4,13 @@
* http://la.buvette.org/photos/cumul
*/
#define FIMG_VERSION 134
#define FIMG_VERSION 135
/*
* in memory descriptor
*/
typedef struct {
int magic;
unsigned long magic;
int width;
int height;
int type;
@@ -28,6 +28,12 @@ typedef struct {
int w, h, t;
} FimgFileHead;
typedef struct {
unsigned long magic;
int w, h;
int x, y;
int flags;
} Rectangle;
#define FIMG_TYPE_GRAY 1
#define FIMG_TYPE_RGB 3
@@ -160,6 +166,7 @@ int fimg_desaturate(FloatImg *src, FloatImg *dst, int notused);
/* module funcs/geometry.c */
int fimg_halfsize_0(FloatImg *src, FloatImg *dst, int notused);
int fimg_halfsize_1(FloatImg *src, FloatImg *dst, int notused);
int fimg_extractor(FloatImg *in, FloatImg *out, Rectangle *rect);
int fimg_displacement_0(FloatImg *psrc, FloatImg *pdst, int flags);
@@ -209,6 +216,7 @@ int fimg_multirandom(FloatImg *fimg, long nbpass);
void fimg_print_minmax(float minmax[6], char *titre);
int parse_WxH(char *str, int *pw, int *ph);
int parse_double(char *str, double *dptr);
int parse_rectangle(char *str, Rectangle *r, int notused);
int format_from_extension(char *fname);
char * extension_from_format(int fmt);