]> Creatis software - gdcm.git/blobdiff - src/gdcmRLEFramesInfo.cxx
Add #include for BCC
[gdcm.git] / src / gdcmRLEFramesInfo.cxx
index 8a8ed7cb8201a73b27816e0bf802e0187019a03d..de833c093864fdf23d66db85d4fec10c268c0d66 100644 (file)
@@ -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
 #include "gdcmDebug.h"
 #include "gdcmUtil.h"
 
+#if defined(__BORLANDC__)
+   #include <mem.h> // 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;