2019-03-04 02:22:55 +11:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <float.h>
|
|
|
|
|
2019-03-07 04:07:23 +11:00
|
|
|
#include "../floatimg.h"
|
2019-03-04 02:22:55 +11:00
|
|
|
|
|
|
|
/* -------------------------------------------------------------------- */
|
|
|
|
int fimg_lissage_2x2(FloatImg *img)
|
|
|
|
{
|
2019-05-20 17:47:13 +11:00
|
|
|
int x, y, offset;
|
2019-03-04 02:22:55 +11:00
|
|
|
|
2019-05-20 17:47:13 +11:00
|
|
|
#if DEBUG_LEVEL
|
|
|
|
fprintf(stderr, ">>> %s ( %p )\n", __func__, img);
|
|
|
|
fprintf(stderr," type %s size %dx%d\n", img->type,
|
|
|
|
img->width, img->height);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
for (y=1; y<img->height; y++) {
|
|
|
|
|
|
|
|
for (x=1; x<img->width; x++) {
|
|
|
|
|
|
|
|
offset = x + (y * img->width);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2019-03-04 02:22:55 +11:00
|
|
|
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
/* -------------------------------------------------------------------- */
|
|
|
|
|