|
|
|
@ -21,7 +21,6 @@ if (FIMG_TYPE_RGB != img->type) {
|
|
|
|
|
fprintf(stderr, "%s bad type\n", __func__);
|
|
|
|
|
return -6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (x=0; x<img->width; x++)
|
|
|
|
|
{
|
|
|
|
|
value = (float)x / (float)img->width;
|
|
|
|
@ -34,6 +33,9 @@ for (x=0; x<img->width; x++)
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
/* --------------------------------------------------------------------- */
|
|
|
|
|
/*
|
|
|
|
|
* wtf ? ther's no way to have the black at the bottom ?
|
|
|
|
|
*/
|
|
|
|
|
int fimg_vdeg_a(FloatImg *img, double dcoef)
|
|
|
|
|
{
|
|
|
|
|
int x, y;
|
|
|
|
@ -47,7 +49,6 @@ if (FIMG_TYPE_RGB != img->type) {
|
|
|
|
|
fprintf(stderr, "%s bad type\n", __func__);
|
|
|
|
|
return -6;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for (y=0; y<img->height; y++)
|
|
|
|
|
{
|
|
|
|
|
value = (float)y / (float)img->height;
|
|
|
|
|