X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmRLEFramesInfo.cxx;h=de833c093864fdf23d66db85d4fec10c268c0d66;hb=8e6bffaaf0903dff8a0a60f562fd60eeee409bed;hp=8a8ed7cb8201a73b27816e0bf802e0187019a03d;hpb=6e4cc88754328a1fbd54f9ca9f722675f346ea20;p=gdcm.git diff --git a/src/gdcmRLEFramesInfo.cxx b/src/gdcmRLEFramesInfo.cxx index 8a8ed7cb..de833c09 100644 --- a/src/gdcmRLEFramesInfo.cxx +++ b/src/gdcmRLEFramesInfo.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmRLEFramesInfo.cxx,v $ Language: C++ - Date: $Date: 2005/06/17 12:27:52 $ - Version: $Revision: 1.16 $ + Date: $Date: 2006/01/27 10:01:34 $ + Version: $Revision: 1.20 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -20,6 +20,10 @@ #include "gdcmDebug.h" #include "gdcmUtil.h" +#if defined(__BORLANDC__) + #include // for memset +#endif + namespace gdcm { //------------------------------------------------------------------------- @@ -124,13 +128,13 @@ bool RLEFramesInfo::ConvertRLE16BitsFromRLE8Bits(uint8_t *raw, int xSize, if ( !Util::IsCurrentProcessorBigEndian() ) { - a = copyRaw; // begining of 'low bytes' - b = a + pixelNumber; // begining of 'hight bytes' + a = copyRaw; // beginning of 'low bytes' + b = a + pixelNumber; // beginning of 'hight bytes' } else { - b = copyRaw; // begining of 'low bytes' - a = b + pixelNumber; // begining of 'hight bytes' + b = copyRaw; // beginning of 'low bytes' + a = b + pixelNumber; // beginning of 'hight bytes' } // Re order bytes @@ -143,7 +147,6 @@ bool RLEFramesInfo::ConvertRLE16BitsFromRLE8Bits(uint8_t *raw, int xSize, } } - delete[] copyRaw; return true;