minors twicks

master
Tonton Th 3 years ago
parent 87f3fb95bd
commit cc9619fdbe
  1. 3
      lib/fimg-2gray.c
  2. 4
      lib/operators.c

@ -55,11 +55,10 @@ return 0;
int fimg_desaturate(FloatImg *src, FloatImg *dst, int k)
{
int foo, nbb;
float fval;
/* we must check the validity of our parameters */
if (FIMG_TYPE_RGB != src->type || FIMG_TYPE_RGB != dst->type) {
fprintf(stderr, "%s : bad image type\n", __func__, src->type, src);
fprintf(stderr, "%s : bad image type\n", __func__);
return -18;
}

@ -1,7 +1,7 @@
/*
* OPERATORS
*
*
* operations entre des images.
*/
#include <stdio.h>
@ -67,6 +67,8 @@ for (idx=0; idx<nbpixels; idx++) {
b->R[idx] += a->R[idx];
b->G[idx] += a->G[idx];
b->B[idx] += a->B[idx];
/* are we cache-friendly here ?
* we need an accurate benchmarking... */
}
return 0;

Loading…
Cancel
Save