*/
-//GLOBAL(int)
-int
-gdcmFile::gdcm_read_JPEG_file12 (void * image_buffer) {
+//GLOBAL(bool)
+bool gdcmFile::gdcm_read_JPEG_file12 (FILE *fp,void * image_buffer) {
char *pimage;
* We need to clean up the JPEG object, close the input file, and return.
*/
jpeg_destroy_decompress(&cinfo);
- return 0;
+ return(false);
}
/* Now we can initialize the JPEG decompression object. */
jpeg_create_decompress(&cinfo);
cinfo.output_components);
printf("nb of color components returned %d \n",
cinfo.data_precision);
+
}
/* And we're done! */
- return 1;
+ return(true);
}
/*