Program:   gdcm
   Module:    $RCSfile: gdcmJPEGFragment.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/31 04:00:04 $
-  Version:   $Revision: 1.11 $
+  Date:      $Date: 2005/01/31 04:15:33 $
+  Version:   $Revision: 1.12 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
    }
    else if ( nBits <= 12 )
    {
-      // JPEG Lossy : call to IJG 6b - 8 bits
+      // JPEG Lossy : call to IJG 6b - 12 bits
       ReadJPEGFile12 ( fp, buffer, statesuspension);
    }
    else if ( nBits <= 16 )
    {
-      // JPEG Lossy : call to IJG 6b - 8 bits
+      // JPEG Lossy : call to IJG 6b - 16 bits
       ReadJPEGFile16 ( fp, buffer, statesuspension);
       //gdcmAssertMacro( IsJPEGLossless );
    }
 
   Program:   gdcm
   Module:    $RCSfile: gdcmJPEGFragmentsInfo.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/31 04:00:04 $
-  Version:   $Revision: 1.15 $
+  Date:      $Date: 2005/01/31 04:15:33 $
+  Version:   $Revision: 1.16 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
    os << std::endl;
 }
 
-/**
- * \brief  Calculate sum of all fragments length and return total
- * @return Total size of JPEG fragments length
- */
-size_t JPEGFragmentsInfo::GetFragmentsLength()
-{
-   // Loop on the fragment[s] to get total length
-   size_t totalLength = 0;
-   JPEGFragmentsList::const_iterator it;
-   for( it  = Fragments.begin();
-        it != Fragments.end();
-        ++it )
-   {
-      totalLength += (*it)->GetLength();
-   }
-   return totalLength;
-}
-
-// to avoid warnings
 void JPEGFragmentsInfo::DecompressJPEGFramesFromFile(std::ifstream *fp, uint8_t *buffer, int nBits, int , int )
 {
    // Pointer to the Raw image
         it != Fragments.end();
         ++it )
    {
-     //(*it)->pimage = localRaw;
      (*it)->DecompressJPEGFramesFromFile(fp, localRaw, nBits, StateSuspension);
      // update pointer to image after some scanlines read:
      localRaw = (*it)->GetImage();
-      // Advance to next free location in Raw 
-      // for next fragment decompression (if any)
-
-      //localRaw += length * numBytes;
-     //std::cerr << "Used to increment by: " << length * numBytes << std::endl;
    }
 }
 
 
   Program:   gdcm
   Module:    $RCSfile: gdcmJPEGFragmentsInfo.h,v $
   Language:  C++
-  Date:      $Date: 2005/01/31 04:00:04 $
-  Version:   $Revision: 1.17 $
+  Date:      $Date: 2005/01/31 04:15:33 $
+  Version:   $Revision: 1.18 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
    JPEGFragmentsInfo();
    ~JPEGFragmentsInfo();
    void Print( std::ostream &os = std::cout, std::string const & indent = "" );
-   size_t GetFragmentsLength();
 
    void DecompressJPEGFramesFromFile(std::ifstream *fp, uint8_t *buffer, int nBits, int numBytes, int length);
 
 
   Program:   gdcm
   Module:    $RCSfile: gdcmPixelReadConvert.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/31 04:00:05 $
-  Version:   $Revision: 1.39 $
+  Date:      $Date: 2005/01/31 04:15:33 $
+  Version:   $Revision: 1.40 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
                                       fp);
          subRaw += RawSegmentSize;
       }
-      frame = RLEInfo->GetNexttFrame();
+      frame = RLEInfo->GetNextFrame();
    }
 
    if ( BitsAllocated == 16 )
 
   Program:   gdcm
   Module:    $RCSfile: gdcmRLEFramesInfo.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/01/28 15:42:22 $
-  Version:   $Revision: 1.7 $
+  Date:      $Date: 2005/01/31 04:15:33 $
+  Version:   $Revision: 1.8 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
    return NULL;
 }
 
-RLEFrame *RLEFramesInfo::GetNexttFrame()
+RLEFrame *RLEFramesInfo::GetNextFrame()
 {
    gdcmAssertMacro (ItFrames != Frames.end());
 
 
   Program:   gdcm
   Module:    $RCSfile: gdcmRLEFramesInfo.h,v $
   Language:  C++
-  Date:      $Date: 2005/01/30 17:30:57 $
-  Version:   $Revision: 1.14 $
+  Date:      $Date: 2005/01/31 04:15:33 $
+  Version:   $Revision: 1.15 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
    void AddFrame(RLEFrame *frame);
 
    RLEFrame *GetFirstFrame();
-   RLEFrame *GetNexttFrame();
+   RLEFrame *GetNextFrame();
 
 private:
    typedef std::list<RLEFrame *> RLEFrameList;