]> Creatis software - gdcm.git/blob - src/gdcmRLEFrame.h
* CLEANUP_ROUND (3) for gdcmPixelConvert (nightmare stage)
[gdcm.git] / src / gdcmRLEFrame.h
1 /*=========================================================================
2                                                                                 
3   Program:   gdcm
4   Module:    $RCSfile: gdcmRLEFrame.h,v $
5   Language:  C++
6   Date:      $Date: 2004/10/06 09:58:08 $
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 GDCMRLEFRAME_H
21 #define GDCMRLEFRAME_H
22
23 #include "gdcmCommon.h"
24
25 /**
26  * \brief Utility class for summerizing the informations of a SINGLE RLE
27  *        frame of an "Encapsulated RLE Compressed Image" (see PS-3.3 annex G).
28  *        This information is a mix of:
29  *        - the RLE Header (see PS-3.3 section G5) and
30  *        - the lengths of each RLE segment [ which can be decuded from
31  *          both the above RLE Header and the itemlength of the frame).
32  *
33  *        Each instance of this class (they can be as many instances for
34  *        a given gdcmDocument as they are frames and they are collected in
35  *        a \ref gdcmRLEFramesInfo ) describes :
36  *        - the total number of segments (up to 15),
37  *        - the offsets of each segment of the frame,
38  *        - the (corresponding) lengths of each segment of the frame.
39  */
40 class GDCM_EXPORT gdcmRLEFrame
41 {
42 friend class gdcmDocument;
43 friend class gdcmFile;
44    int     NumberFragments;
45    uint8_t Offset[15];
46    long    Length[15];
47    gdcmRLEFrame() { NumberFragments = 0; }
48    
49 };
50
51 //-----------------------------------------------------------------------------
52 #endif