Browse Source

killed a bug in fimg_clear !

master
tth 1 year ago
parent
commit
0a92028c56
  1. 2
      floatimg.h
  2. 5
      lib/fimg-core.c

2
floatimg.h

@ -4,7 +4,7 @@ @@ -4,7 +4,7 @@
* http://la.buvette.org/photos/cumul
*/
#define FIMG_VERSION 129
#define FIMG_VERSION 130
/*
* in memory descriptor

5
lib/fimg-core.c

@ -79,8 +79,7 @@ if( ! fimg_type_is_valid(head->type) ) { @@ -79,8 +79,7 @@ if( ! fimg_type_is_valid(head->type) ) {
}
printf(" type %d %s\n", head->type, fimg_str_type(head->type));
printf(" dims %d x %d\n",
head->width, head->height);
printf(" dims %d x %d\n", head->width, head->height);
printf(" fval/count %f %d\n", head->fval, head->count);
printf(" pixels@ %p %p %p %p\n",
@ -249,6 +248,8 @@ if ( ! fimg_type_is_valid(fimg->type) ) { @@ -249,6 +248,8 @@ if ( ! fimg_type_is_valid(fimg->type) ) {
size = fimg->width * fimg->height * sizeof(float);
memset(fimg->R, 0, size);
memset(fimg->G, 0, size);
memset(fimg->B, 0, size);
return 0;
}

Loading…
Cancel
Save