X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmJpeg12.cxx;h=056afa399ef5aecb4ca8c8d5a250bf0ab4dee68d;hb=00e89cde772e18e4f2baab2b01680330af909d59;hp=18d0787c184404ed5ef2fe9c55510928cad76eff;hpb=f6fd616782f9811f1390c64c9a3e7beb50ca4a04;p=gdcm.git diff --git a/src/gdcmJpeg12.cxx b/src/gdcmJpeg12.cxx index 18d0787c..056afa39 100644 --- a/src/gdcmJpeg12.cxx +++ b/src/gdcmJpeg12.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmJpeg12.cxx,v $ Language: C++ - Date: $Date: 2004/10/08 04:52:55 $ - Version: $Revision: 1.17 $ + Date: $Date: 2004/10/10 00:42:55 $ + Version: $Revision: 1.19 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -32,10 +32,8 @@ */ extern "C" { -#include #include "src/jpeg/libijg12/jconfig.h" #include "src/jpeg/libijg12/jpeglib.h" -//#include "jconfig12.h" #include } /******************** JPEG COMPRESSION SAMPLE INTERFACE *******************/ @@ -107,7 +105,8 @@ typedef struct my_error_mgr * my_error_ptr; /* * Here's the routine that will replace the standard error_exit method: */ -METHODDEF(void) my_error_exit (j_common_ptr cinfo) { +METHODDEF(void) my_error_exit (j_common_ptr cinfo) +{ /* cinfo->err really points to a my_error_mgr struct, so coerce pointer */ my_error_ptr myerr = (my_error_ptr) cinfo->err; @@ -135,7 +134,8 @@ METHODDEF(void) my_error_exit (j_common_ptr cinfo) { * @return 1 on success, 0 on error */ -bool gdcmFile::gdcm_read_JPEG_file12 (FILE* fp,void* image_buffer) { +bool gdcmFile::gdcm_read_JPEG_file12 (FILE* fp,void* image_buffer) +{ char *pimage; /* This struct contains the JPEG decompression parameters and pointers to @@ -340,7 +340,7 @@ bool gdcmFile::gdcm_read_JPEG_file12 (FILE* fp,void* image_buffer) { /* And we're done! */ - return(true); + return true; } /*