OFFIS DCMTK  Version 3.6.0
djdijg8.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: decompression routines of the IJG JPEG library configured for 8 bits/sample.
19  *
20  * Last Update: $Author: joergr $
21  * Update Date: $Date: 2010-10-14 13:17:17 $
22  * CVS/RCS Revision: $Revision: 1.6 $
23  * Status: $State: Exp $
24  *
25  * CVS/RCS Log at end of file
26  *
27  */
28 
29 #ifndef DJDIJG8_H
30 #define DJDIJG8_H
31 
32 #include "dcmtk/config/osconfig.h"
33 #include "dcmtk/dcmjpeg/djdecabs.h" /* for class DJDecoder */
34 
35 extern "C"
36 {
38 }
39 
40 class DJCodecParameter;
41 
46 {
47 public:
48 
53  DJDecompressIJG8Bit(const DJCodecParameter& cp, OFBool isYBR);
54 
56  virtual ~DJDecompressIJG8Bit();
57 
62  virtual OFCondition init();
63 
76  virtual OFCondition decode(
77  Uint8 *compressedFrameBuffer,
78  Uint32 compressedFrameBufferSize,
79  Uint8 *uncompressedFrameBuffer,
80  Uint32 uncompressedFrameBufferSize,
81  OFBool isSigned);
82 
85  virtual Uint16 bytesPerSample() const
86  {
87  return sizeof(Uint8);
88  }
89 
93  virtual EP_Interpretation getDecompressedColorModel() const
94  {
96  }
97 
102  virtual void emitMessage(int msg_level) const;
103 
104 private:
105 
108 
111 
113  void cleanup();
114 
117 
120 
123 
125  void *jsampBuffer;
126 
129 
131  EP_Interpretation decompressedColorModel;
132 
133 };
134 
135 #endif
136 
137 /*
138  * CVS/RCS Log
139  * $Log: djdijg8.h,v $
140  * Revision 1.6 2010-10-14 13:17:17 joergr
141  * Updated copyright header. Added reference to COPYRIGHT file.
142  *
143  * Revision 1.5 2009-11-18 16:17:54 uli
144  * Use more than just the INFO log level.
145  *
146  * Revision 1.4 2005-12-08 16:59:24 meichel
147  * Changed include path schema for all DCMTK header files
148  *
149  * Revision 1.3 2005/11/30 14:08:57 onken
150  * Added check to decline automatic IJG color space conversion of signed pixel
151  * data, because IJG lib only handles unsigned input for conversions.
152  *
153  * Revision 1.2 2001/11/19 15:13:28 meichel
154  * Introduced verbose mode in module dcmjpeg. If enabled, warning
155  * messages from the IJG library are printed on ofConsole, otherwise
156  * the library remains quiet.
157  *
158  * Revision 1.1 2001/11/13 15:56:23 meichel
159  * Initial release of module dcmjpeg
160  *
161  *
162  */


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