OFFIS DCMTK  Version 3.6.0
djdecabs.h
1 /*
2  *
3  * Copyright (C) 1997-2010, OFFIS e.V.
4  * All rights reserved. See COPYRIGHT file for details.
5  *
6  * This software and supporting documentation were developed by
7  *
8  * OFFIS e.V.
9  * R&D Division Health
10  * Escherweg 2
11  * D-26121 Oldenburg, Germany
12  *
13  *
14  * Module: dcmjpeg
15  *
16  * Author: Norbert Olges, Marco Eichelberg
17  *
18  * Purpose: abstract base class for decompression classes
19  *
20  * Last Update: $Author: joergr $
21  * Update Date: $Date: 2010-10-14 13:17:17 $
22  * CVS/RCS Revision: $Revision: 1.4 $
23  * Status: $State: Exp $
24  *
25  * CVS/RCS Log at end of file
26  *
27  */
28 
29 #ifndef DJDECABS_H
30 #define DJDECABS_H
31 
32 #include "dcmtk/config/osconfig.h"
33 #include "dcmtk/dcmdata/dctypes.h"
34 #include "dcmtk/dcmjpeg/djutils.h" /* for enums */
35 #include "dcmtk/dcmimgle/diutils.h" /* for EP_Interpretation */
36 
42 class DJDecoder
43 {
44 public:
45 
48  {
49  }
50 
52  virtual ~DJDecoder()
53  {
54  }
55 
60  virtual OFCondition init() = 0;
61 
74  virtual OFCondition decode(
75  Uint8 *compressedFrameBuffer,
76  Uint32 compressedFrameBufferSize,
77  Uint8 *uncompressedFrameBuffer,
78  Uint32 uncompressedFrameBufferSize,
79  OFBool isSigned) = 0;
80 
83  virtual Uint16 bytesPerSample() const = 0;
84 
88  virtual EP_Interpretation getDecompressedColorModel() const = 0;
89 
90 };
91 
92 #endif
93 
94 /*
95  * CVS/RCS Log
96  * $Log: djdecabs.h,v $
97  * Revision 1.4 2010-10-14 13:17:17 joergr
98  * Updated copyright header. Added reference to COPYRIGHT file.
99  *
100  * Revision 1.3 2005-12-08 16:59:14 meichel
101  * Changed include path schema for all DCMTK header files
102  *
103  * Revision 1.2 2005/11/30 14:12:27 onken
104  * Added decode() parameter denoting whether input is signed or unsigned
105  *
106  * Revision 1.1 2001/11/13 15:56:18 meichel
107  * Initial release of module dcmjpeg
108  *
109  *
110  */


Generated on Thu Dec 20 2012 for OFFIS DCMTK Version 3.6.0 by Doxygen 1.8.2