From: jpr Date: Fri, 21 Oct 2005 17:11:33 +0000 (+0000) Subject: Uncomment Private GE transger syntax part. X-Git-Tag: OpenJPEG.Version1.2~239 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=873d99d34bdf536dfbea36f70d61aa6d799ac1d7;p=gdcm.git Uncomment Private GE transger syntax part. (The trouble came from Write in the Mandatory elems processing -free twice the same one :-( - --- diff --git a/src/gdcmPixelReadConvert.cxx b/src/gdcmPixelReadConvert.cxx index 3093f6ab..e941a07f 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/10/21 12:11:06 $ - Version: $Revision: 1.83 $ + Date: $Date: 2005/10/21 17:11:33 $ + Version: $Revision: 1.84 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -795,13 +795,7 @@ void PixelReadConvert::ConvertSwapZone() // 'ImplicitVR BigEndian PrivateGE Transfer Syntax', then GDCM needs to switch // the byte swapping code when entering the pixel data. - -// --> -// --> Can't understand *why* TestWriteSimple fails sice this commit/ -// --> commented out, to be sure the troubles started from here. -// --> JP - -/* if ( IsPrivateGETransferSyntax ) + if ( IsPrivateGETransferSyntax ) { // PrivateGETransferSyntax only exists for 'true' Dicom images // we assume there is no 'exotic' 32 bits endianess! @@ -815,7 +809,7 @@ void PixelReadConvert::ConvertSwapZone() break; } } -*/ + if ( BitsAllocated == 16 ) { uint16_t *im16 = (uint16_t*)Raw;