From cc9619fdbe9aa1940602cc2fdee81fed0ef7e1af Mon Sep 17 00:00:00 2001 From: Tonton Th Date: Thu, 23 Jan 2020 12:36:33 +0100 Subject: [PATCH] minors twicks --- lib/fimg-2gray.c | 3 +-- lib/operators.c | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/fimg-2gray.c b/lib/fimg-2gray.c index 52a774d8..05c38222 100644 --- a/lib/fimg-2gray.c +++ b/lib/fimg-2gray.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; } diff --git a/lib/operators.c b/lib/operators.c index 1c2b3133..8961c2ed 100644 --- a/lib/operators.c +++ b/lib/operators.c @@ -1,7 +1,7 @@ /* * OPERATORS * - * + * operations entre des images. */ #include @@ -67,6 +67,8 @@ for (idx=0; idxR[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;