forked from tTh/FloatImg
33 lines
619 B
C
33 lines
619 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <fcntl.h>
|
|
#include <float.h>
|
|
|
|
#include "../floatimg.h"
|
|
|
|
/* -------------------------------------------------------------------- */
|
|
int fimg_lissage_2x2(FloatImg *img)
|
|
{
|
|
int x, y, offset;
|
|
|
|
#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);
|
|
|
|
}
|
|
}
|
|
|
|
return -1;
|
|
}
|
|
/* -------------------------------------------------------------------- */
|
|
|