small patches

This commit is contained in:
tTh
2023-10-06 21:34:11 +02:00
parent 5d139312e2
commit cfe9f8cdae
5 changed files with 56 additions and 50 deletions
+3 -1
View File
@@ -116,13 +116,15 @@ int fimg_cos_01(FloatImg *s, FloatImg *d, double maxval)
int nbre, idx;
double dval;
fprintf(stderr, ">>> %s ( %p %p %g )\n", __func__, s, d, maxval);
if (s->type != FIMG_TYPE_RGB) {
fprintf(stderr, "%s: type %d invalide\n",
__func__, s->type);
return -4;
}
if (NULL==d) { d = s; }
if (NULL==d) { d = s; } /* In place */
else {
if (d->type != FIMG_TYPE_RGB) {
fprintf(stderr, "%s: dst type %d invalide\n",