X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmJpeg12.cxx;h=8a9a4bd853cbaddfffc4dfd902db66c9379a4dee;hb=659604feaaaf9519d03d59d66711f6b4b8290804;hp=3cc6c12591006cfe65aafbd50448ef14385d0bf8;hpb=c31fc7115263ca3349ada6348d6f1d2128f18e51;p=gdcm.git diff --git a/src/gdcmJpeg12.cxx b/src/gdcmJpeg12.cxx index 3cc6c125..8a9a4bd8 100644 --- a/src/gdcmJpeg12.cxx +++ b/src/gdcmJpeg12.cxx @@ -1,3 +1,4 @@ + #include #include "gdcmFile.h" @@ -162,9 +163,8 @@ my_error_exit (j_common_ptr cinfo) { */ -//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; @@ -226,7 +226,7 @@ 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); @@ -257,6 +257,7 @@ if (DEBUG) { cinfo.output_components); printf("nb of color components returned %d \n", cinfo.data_precision); + } @@ -365,7 +366,7 @@ if (DEBUG) printf("Entree Step 8\n"); /* And we're done! */ - return 1; + return(true); } /*