return false;
}
- int res = gdcm_read_JPEG_file (destination);
- if (DEBUG)
- printf ("res : %d\n",res);
+ bool res = (bool)gdcm_read_JPEG_file (destination);
return res;
}
// if (GetPlanarConfiguration() == 1) {
// after unfreeze
- if (PlanarConfiguration == 1) { // need to make RGB Pixels
+ if (PlanarConfiguration == 1) { // need to make RGB Pixels
int l = lgrTotale/3 ;
char * a = (char *)destination;
// TODO :
// any trick not to have to allocate temporary buffer is welcome ...
char *x = newDest;
- for (int i=0;i<l; i++) {
+ for (int j=0;j<l; j++) {
*(x++) = *(a++);
*(x++) = *(b++);
*(x++) = *(c++);