From: malaterre Date: Tue, 11 Jan 2005 23:26:55 +0000 (+0000) Subject: BUG: Ok I don't understand why but this allow me to read properly 012345.002.050... X-Git-Tag: Version1.0.bp~381 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=4c6e4b6ee032eb489f20c60f129021e5617ae027;p=gdcm.git BUG: Ok I don't understand why but this allow me to read properly 012345.002.050.dcm on a Big endian machine --- diff --git a/src/gdcmPixelReadConvert.cxx b/src/gdcmPixelReadConvert.cxx index 016d552c..798d0ce3 100644 --- a/src/gdcmPixelReadConvert.cxx +++ b/src/gdcmPixelReadConvert.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmPixelReadConvert.cxx,v $ Language: C++ - Date: $Date: 2005/01/11 22:40:32 $ - Version: $Revision: 1.22 $ + Date: $Date: 2005/01/11 23:26:55 $ + Version: $Revision: 1.23 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -324,10 +324,12 @@ void PixelReadConvert::ConvertSwapZone() case 3412: case 2143: case 4321: +#ifndef GDCM_WORDS_BIGENDIAN for( i = 0; i < RawSize / 2; i++ ) { im16[i]= (im16[i] >> 8) | (im16[i] << 8 ); } +#endif //GDCM_WORDS_BIGENDIAN break; default: gdcmVerboseMacro("SwapCode value (16 bits) not allowed.");