X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmRLE.cxx;h=97a0627f959563982242c5106750abe3e415febc;hb=0a7355e1aaeeabadba3e464bdef81bcff5777d37;hp=14f2431c5b465a0976d14c78facfcbcd9bda39e7;hpb=7081ef86153d2ca0e5aa54333ea24ef937674761;p=gdcm.git diff --git a/src/gdcmRLE.cxx b/src/gdcmRLE.cxx index 14f2431c..97a0627f 100644 --- a/src/gdcmRLE.cxx +++ b/src/gdcmRLE.cxx @@ -1,8 +1,24 @@ -// gdcmRLE.cxx -//----------------------------------------------------------------------------- +/*========================================================================= + + Program: gdcm + Module: $RCSfile: gdcmRLE.cxx,v $ + Language: C++ + Date: $Date: 2004/07/02 13:55:28 $ + Version: $Revision: 1.21 $ + + Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de + l'Image). All rights reserved. See Doc/License.txt or + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ + #include #include "gdcmFile.h" -#include // to declare isprint() +#include // For isprint() #define str2num(str, typeNum) *((typeNum *)(str)) @@ -21,9 +37,9 @@ bool gdcmFile::gdcm_read_RLE_file (FILE *fp,void * image_buffer) { long RleSegmentLength[15],fragmentLength,uncompressedSegmentSize;; long ftellRes, ln; - guint32 nbRleSegments; - guint32 RleSegmentOffsetTable[15]; - guint16 ItemTagGr,ItemTagEl; + uint32_t nbRleSegments; + uint32_t RleSegmentOffsetTable[15]; + uint16_t ItemTagGr,ItemTagEl; uncompressedSegmentSize=Header->GetXSize()*Header->GetYSize(); ftellRes=ftell(fp); // Basic Offset Table with Item Value @@ -43,9 +59,9 @@ bool gdcmFile::gdcm_read_RLE_file (FILE *fp,void * image_buffer) { // What is it used for ?? char * BasicOffsetTableItemValue= new char[ln+1]; fread(BasicOffsetTableItemValue,ln,1,fp); - guint32 a; + uint32_t a; for (int i=0;i