From: malaterre Date: Sat, 17 Jul 2004 22:47:01 +0000 (+0000) Subject: ENH: Dummy cleanup patch X-Git-Tag: Version0.5.bp~52 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=179f2dccd14c31668ef175e8e3373bf8b3121bd1;p=gdcm.git ENH: Dummy cleanup patch --- diff --git a/src/gdcmJpeg.cxx b/src/gdcmJpeg.cxx index fbfe8de1..4c8f8503 100644 --- a/src/gdcmJpeg.cxx +++ b/src/gdcmJpeg.cxx @@ -5,6 +5,10 @@ #define BITS_IN_JSAMPLE 8 +#ifdef GDCM_DEBUG +#define GDCM_jpr_DEBUG 0 +#endif //GDCM_DEBUG + /* DICOM provides a mechanism for supporting the use of JPEG Image Compression through the Encapsulated Format (see PS 3.3 of the DICOM Standard). diff --git a/src/gdcmJpeg12.cxx b/src/gdcmJpeg12.cxx index ab04c32f..97d7a77a 100644 --- a/src/gdcmJpeg12.cxx +++ b/src/gdcmJpeg12.cxx @@ -5,6 +5,10 @@ #define BITS_IN_JSAMPLE 12 +#ifdef GDCM_DEBUG +#define GDCM_jpr_DEBUG 0 +#endif //GDCM_DEBUG + // BITS_IN_JSAMPLE is a compile time defined options. // We need both 8 an 12; // To avoid renaming *all* the Jpeg functions, diff --git a/src/gdcmObject.cxx b/src/gdcmObject.cxx index 78749dab..331c4107 100644 --- a/src/gdcmObject.cxx +++ b/src/gdcmObject.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmObject.cxx,v $ Language: C++ - Date: $Date: 2004/07/02 13:55:28 $ - Version: $Revision: 1.21 $ + Date: $Date: 2004/07/17 22:47:01 $ + Version: $Revision: 1.22 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -77,8 +77,7 @@ void gdcmObject::FillObject(std::list elemList) { // FillObject rempli le SQItem qui sera accroche au bon endroit std::list::iterator it; - uint16_t tmpGr; - uint16_t tmpEl; + uint16_t tmpGr,tmpEl; gdcmDictEntry *dictEntry; gdcmValEntry *entry; diff --git a/src/gdcmParsePixels.cxx b/src/gdcmParsePixels.cxx index 5d1a6b23..078884d9 100644 --- a/src/gdcmParsePixels.cxx +++ b/src/gdcmParsePixels.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmParsePixels.cxx,v $ Language: C++ - Date: $Date: 2004/07/02 13:55:28 $ - Version: $Revision: 1.8 $ + Date: $Date: 2004/07/17 22:47:01 $ + Version: $Revision: 1.9 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -68,8 +68,7 @@ bool gdcmFile::ParsePixelData(void) { printf ("Checking the Dicom-encapsulated Jpeg/RLE Pixels\n"); - uint16_t ItemTagGr; - uint16_t ItemTagEl; + uint16_t ItemTagGr,ItemTagEl; int ln; long ftellRes; //char * destination = NULL; diff --git a/src/gdcmSQItem.cxx b/src/gdcmSQItem.cxx index 3c9a25e7..d34f7a9d 100644 --- a/src/gdcmSQItem.cxx +++ b/src/gdcmSQItem.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmSQItem.cxx,v $ Language: C++ - Date: $Date: 2004/07/02 13:55:28 $ - Version: $Revision: 1.20 $ + Date: $Date: 2004/07/17 22:47:01 $ + Version: $Revision: 1.21 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -139,8 +139,8 @@ bool gdcmSQItem::AddEntry(gdcmDocEntry *entry) * @return true if element was found or created successfully */ -bool gdcmSQItem::SetEntryByNumber(std::string val, uint16_t group, - uint16_t element) +bool gdcmSQItem::SetEntryByNumber(std::string val,uint16_t group, + uint16_t element) { for(ListDocEntry::iterator i=docEntries.begin();i!=docEntries.end();++i) { @@ -209,9 +209,12 @@ bool gdcmSQItem::SetEntryByNumber(std::string val, uint16_t group, */ gdcmDocEntry *gdcmSQItem::GetDocEntryByNumber(uint16_t group, uint16_t element) { - for(ListDocEntry::iterator i=docEntries.begin();i!=docEntries.end();++i) { + for(ListDocEntry::iterator i=docEntries.begin();i!=docEntries.end();++i) + { if ( (*i)->GetGroup()==group && (*i)->GetElement()==element) + { return (*i); + } } return NULL; } @@ -223,8 +226,10 @@ gdcmDocEntry *gdcmSQItem::GetDocEntryByNumber(uint16_t group, uint16_t element) std::string gdcmSQItem::GetEntryByNumber(uint16_t group, uint16_t element) { - for(ListDocEntry::iterator i=docEntries.begin();i!=docEntries.end();++i) { - if ( (*i)->GetGroup()==group && (*i)->GetElement()==element) { + for(ListDocEntry::iterator i=docEntries.begin();i!=docEntries.end();++i) + { + if ( (*i)->GetGroup()==group && (*i)->GetElement()==element) + { return ((gdcmValEntry *)(*i))->GetValue(); } } diff --git a/src/gdcmUtil.cxx b/src/gdcmUtil.cxx index cc9eff41..4c053864 100644 --- a/src/gdcmUtil.cxx +++ b/src/gdcmUtil.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmUtil.cxx,v $ Language: C++ - Date: $Date: 2004/06/25 19:37:05 $ - Version: $Revision: 1.46 $ + Date: $Date: 2004/07/17 22:47:01 $ + Version: $Revision: 1.47 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -102,12 +102,16 @@ void NormalizePath(std::string &name) */ std::string GetPath(std::string &fullName) { - int pos1=fullName.rfind("/"); - int pos2=fullName.rfind("\\"); - if(pos1>pos2) + int pos1 = fullName.rfind("/"); + int pos2 = fullName.rfind("\\"); + if( pos1 > pos2) + { fullName.resize(pos1); + } else + { fullName.resize(pos2); + } return fullName; }