gdcmJPEGFragmentsInfo.h

Go to the documentation of this file.
00001 /*=========================================================================
00002                                                                                 
00003   Program:   gdcm
00004   Module:    $RCSfile: gdcmJPEGFragmentsInfo.h,v $
00005   Language:  C++
00006   Date:      $Date: 2007/08/22 16:14:04 $
00007   Version:   $Revision: 1.23 $
00008                                                                                 
00009   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
00010   l'Image). All rights reserved. See Doc/License.txt or
00011   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
00012                                                                                 
00013      This software is distributed WITHOUT ANY WARRANTY; without even
00014      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00015      PURPOSE.  See the above copyright notices for more information.
00016                                                                                 
00017 =========================================================================*/
00018 
00019 
00020 #ifndef _GDCMJPEGFRAGMENTSINFO_H_
00021 #define _GDCMJPEGFRAGMENTSINFO_H_
00022 
00023 #include "gdcmJPEGFragment.h"
00024 
00025 #include <list>
00026 #include <iostream>
00027 
00028 namespace GDCM_NAME_SPACE
00029 {
00040 class GDCM_EXPORT JPEGFragmentsInfo
00041 {
00042 friend class File;
00043 friend class PixelReadConvert;
00044 
00045 private:
00046    JPEGFragmentsInfo();
00047    ~JPEGFragmentsInfo();
00048    void Print( std::ostream &os = std::cout, std::string const &indent = "" );
00049 
00050    void DecompressFromFile(std::ifstream *fp, uint8_t *buffer, int nBits,
00051                            int numBytes, int length);
00052 
00053    void AddFragment(JPEGFragment *fragment);
00054    JPEGFragment *GetFirstFragment();
00055    JPEGFragment *GetNextFragment();
00056    unsigned int GetFragmentCount();
00057 
00058 //private:
00059    typedef std::list<JPEGFragment *> JPEGFragmentsList;
00060 
00061     //Some mathieu hack:
00062    int StateSuspension;
00063    void *SampBuffer;
00064    char *pimage;
00065    JPEGFragmentsList Fragments;
00066    JPEGFragmentsList::iterator ItFragments;
00067 };
00068 } // end namespace gdcm
00069 
00070 //-----------------------------------------------------------------------------
00071 #endif
00072 

Generated on Fri Aug 24 12:59:31 2007 for gdcm by  doxygen 1.4.6