X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmParsePixels.cxx;h=078884d9c0eb4c120b733a9ecbb6ef52405de566;hb=7815fe9dc3532b716dc478ca0f255263f99d296f;hp=c7233f3026ff494a411ccaa4843935fb32e5fa31;hpb=7081ef86153d2ca0e5aa54333ea24ef937674761;p=gdcm.git diff --git a/src/gdcmParsePixels.cxx b/src/gdcmParsePixels.cxx index c7233f30..078884d9 100644 --- a/src/gdcmParsePixels.cxx +++ b/src/gdcmParsePixels.cxx @@ -1,5 +1,21 @@ -// gdcmParse.cxx -//----------------------------------------------------------------------------- +/*========================================================================= + + Program: gdcm + Module: $RCSfile: gdcmParsePixels.cxx,v $ + Language: C++ + Date: $Date: 2004/07/17 22:47:01 $ + 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 + 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 "gdcmCommon.h" #include "gdcmFile.h" @@ -46,13 +62,13 @@ bool gdcmFile::ParsePixelData(void) { nb = atoi(str_nb.c_str() ); if (nb == 12) nb =16; } - //int nBytes= nb/8; //FIXME + //int nBytes= nb/8; //FIXME //int taille = Header->GetXSize() * Header->GetYSize() * Header->GetSamplesPerPixel(); printf ("Checking the Dicom-encapsulated Jpeg/RLE Pixels\n"); - guint16 ItemTagGr,ItemTagEl; + uint16_t ItemTagGr,ItemTagEl; int ln; long ftellRes; //char * destination = NULL; @@ -81,9 +97,9 @@ bool gdcmFile::ParsePixelData(void) { // 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