]> Creatis software - gdcm.git/blob - src/gdcmJPEGFragment.h
7c515c145a3db30357899cdff357dbaafa2874e4
[gdcm.git] / src / gdcmJPEGFragment.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmJPEGFragment.h,v $
5   Language:  C++
6   Date:      $Date: 2004/10/10 16:44:00 $
7   Version:   $Revision: 1.1 $
8                                                                                 
9   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10   l'Image). All rights reserved. See Doc/License.txt or
11   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
12                                                                                 
13      This software is distributed WITHOUT ANY WARRANTY; without even
14      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15      PURPOSE.  See the above copyright notices for more information.
16                                                                                 
17 =========================================================================*/
18
19
20 #ifndef GDCMJPEGFRAGMENT_H
21 #define GDCMJPEGFRAGMENT_H
22
23 #include "gdcmCommon.h"
24
25 /**
26  * \brief Utility class for summerizing the informations of a JPEG
27  *        fragment of an "Encapsulated JPEG Compressed Image".
28  *        This information is a mix of:
29  *        - the fragment offset
30  *        - the fragment length 
31  *
32  *        Each instance of this class (they can be as many instances for
33  *        a given gdcmDocument as they are JPEG fragments and they are
34  *        collected in a \ref gdcmJPEGFragmentsInfo )
35  */
36 class GDCM_EXPORT gdcmJPEGFragment
37 {
38 friend class gdcmDocument;
39 friend class gdcmFile;
40 friend class gdcmPixelConvert;
41    long    Offset;
42    long    Length;
43    gdcmJPEGFragment()
44    {
45       Offset = 0;
46       Length = 0;
47    }
48 };
49
50 //-----------------------------------------------------------------------------
51 #endif