move extractor to func/
This commit is contained in:
12
floatimg.h
12
floatimg.h
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user