OFFIS DCMTK
Version 3.6.0
Main Page
Related Pages
Classes
Files
File List
File Members
dcmjpeg
include
dcmtk
dcmjpeg
djdijg16.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 16 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 DJDIJG16_H
30
#define DJDIJG16_H
31
32
#include "dcmtk/config/osconfig.h"
33
#include "dcmtk/dcmjpeg/djdecabs.h"
/* for class DJDecoder */
34
35
extern
"C"
36
{
37
struct
jpeg_decompress_struct
;
38
}
39
40
class
DJCodecParameter
;
41
45
class
DJDecompressIJG16Bit
:
public
DJDecoder
46
{
47
public
:
48
53
DJDecompressIJG16Bit
(
const
DJCodecParameter
& cp, OFBool isYBR);
54
56
virtual
~DJDecompressIJG16Bit
();
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
(Uint16);
88
}
89
93
virtual
EP_Interpretation
getDecompressedColorModel
()
const
94
{
95
return
decompressedColorModel
;
96
}
97
102
virtual
void
emitMessage
(
int
msg_level)
const
;
103
104
private
:
105
107
DJDecompressIJG16Bit
(
const
DJDecompressIJG16Bit
&);
108
110
DJDecompressIJG16Bit
&
operator=
(
const
DJDecompressIJG16Bit
&);
111
113
void
cleanup
();
114
116
const
DJCodecParameter
*
cparam
;
117
119
jpeg_decompress_struct
*
cinfo
;
120
122
int
suspension
;
123
125
void
*
jsampBuffer
;
126
128
OFBool
dicomPhotometricInterpretationIsYCbCr
;
129
131
EP_Interpretation
decompressedColorModel
;
132
133
};
134
135
#endif
136
137
/*
138
* CVS/RCS Log
139
* $Log: djdijg16.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:53 uli
144
* Use more than just the INFO log level.
145
*
146
* Revision 1.4 2005-12-08 16:59:23 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:27 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:22 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