Zzzzz....
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
/*
|
||||
* contrast.c - part of libfloatimg
|
||||
* --------------------------------
|
||||
*
|
||||
* you can see some use in 'tools/fimgfx.c', so you can thing
|
||||
* about the 'maxval' parameter. C'est touchy :)
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -34,7 +38,7 @@ int nbre, idx;
|
||||
double dval;
|
||||
|
||||
if (s->type != FIMG_TYPE_RGB) {
|
||||
fprintf(stderr, "%s : type %d invalide\n",
|
||||
fprintf(stderr, "%s: type %d invalide\n",
|
||||
__func__, s->type);
|
||||
return -4;
|
||||
}
|
||||
@@ -42,13 +46,12 @@ if (s->type != FIMG_TYPE_RGB) {
|
||||
if (NULL==d) { d = s; }
|
||||
else {
|
||||
if (d->type != FIMG_TYPE_RGB) {
|
||||
fprintf(stderr, "%s : dst type %d invalide\n",
|
||||
fprintf(stderr, "%s: dst type %d invalide\n",
|
||||
__func__, d->type);
|
||||
return -4;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
nbre = s->width * s->height;
|
||||
|
||||
for (idx=0; idx<nbre; idx++) {
|
||||
@@ -83,7 +86,6 @@ else {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
nbre = s->width * s->height;
|
||||
|
||||
for (idx=0; idx<nbre; idx++) {
|
||||
@@ -97,7 +99,6 @@ for (idx=0; idx<nbre; idx++) {
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* ---------------------------------------------------------------- */
|
||||
/*
|
||||
#macro Cos_01( X )
|
||||
@@ -110,7 +111,7 @@ int nbre, idx;
|
||||
double dval;
|
||||
|
||||
if (s->type != FIMG_TYPE_RGB) {
|
||||
fprintf(stderr, "%s : type %d invalide\n",
|
||||
fprintf(stderr, "%s: type %d invalide\n",
|
||||
__func__, s->type);
|
||||
return -4;
|
||||
}
|
||||
@@ -118,7 +119,7 @@ if (s->type != FIMG_TYPE_RGB) {
|
||||
if (NULL==d) { d = s; }
|
||||
else {
|
||||
if (d->type != FIMG_TYPE_RGB) {
|
||||
fprintf(stderr, "%s : dst type %d invalide\n",
|
||||
fprintf(stderr, "%s: dst type %d invalide\n",
|
||||
__func__, d->type);
|
||||
return -4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user