]> Creatis software - gdcm.git/commitdiff
* Fix few compilation warnings
authorregrain <regrain>
Tue, 14 Dec 2004 13:05:33 +0000 (13:05 +0000)
committerregrain <regrain>
Tue, 14 Dec 2004 13:05:33 +0000 (13:05 +0000)
   -- BeNours

Testing/TestWriteSimple.cxx
src/gdcmPixelReadConvert.cxx

index 06d966ba2b0a95950e2bb344fc0abfc00ec319a4..7b3160f5ab8d6a7a7857841d4532c47000a6f597 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: TestWriteSimple.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/10 21:32:11 $
-  Version:   $Revision: 1.8 $
+  Date:      $Date: 2004/12/14 13:05:33 $
+  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
@@ -212,7 +212,7 @@ int WriteSimple(Image &img)
 
 // Step 6 : Compare to the written image
    std::cout << "6...";
-   int    dataSizeWritten = reread->GetImageDataSize();
+   size_t dataSizeWritten = reread->GetImageDataSize();
    uint8_t* imageDataWritten = reread->GetImageData();
 
    // Test the image size
index 1439cdefbc5250267b30a5e6c3a9b4abb9976bb2..6c26c7a54e5a98db0f49d34070d0e0a8549f77e1 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: gdcmPixelReadConvert.cxx,v $
   Language:  C++
-  Date:      $Date: 2004/12/14 08:31:30 $
-  Version:   $Revision: 1.10 $
+  Date:      $Date: 2004/12/14 13:05:34 $
+  Version:   $Revision: 1.11 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -175,24 +175,24 @@ void PixelReadConvert::ReadAndDecompress12BitsTo16Bits( std::ifstream* fp )
  */
 bool PixelReadConvert::DecompressRLE16BitsFromRLE8Bits( int NumberOfFrames )
 {
-   size_t PixelNumber = XSize * YSize;
-   size_t RawSize = XSize * YSize * NumberOfFrames;
+   size_t pixelNumber = XSize * YSize;
+   size_t rawSize = XSize * YSize * NumberOfFrames;
 
    // We assumed Raw contains the decoded RLE pixels but as
    // 8 bits per pixel. In order to convert those pixels to 16 bits
    // per pixel we cannot work in place within Raw and hence
    // we copy it in a safe place, say copyRaw.
 
-   uint8_t* copyRaw = new uint8_t[ RawSize * 2 ];
-   memmove( copyRaw, Raw, RawSize * 2 );
+   uint8_t* copyRaw = new uint8_t[ rawSize * 2 ];
+   memmove( copyRaw, Raw, rawSize * 2 );
 
    uint8_t* x = Raw;
    uint8_t* a = copyRaw;
-   uint8_t* b = a + PixelNumber;
+   uint8_t* b = a + pixelNumber;
 
    for ( int i = 0; i < NumberOfFrames; i++ )
    {
-      for ( unsigned int j = 0; j < PixelNumber; j++ )
+      for ( unsigned int j = 0; j < pixelNumber; j++ )
       {
          *(x++) = *(b++);
          *(x++) = *(a++);