00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef DJDIJG16_H
00035 #define DJDIJG16_H
00036
00037 #include "osconfig.h"
00038 #include "djdecabs.h"
00039
00040 extern "C"
00041 {
00042 struct jpeg_decompress_struct;
00043 }
00044
00045 class DJCodecParameter;
00046
00050 class DJDecompressIJG16Bit : public DJDecoder
00051 {
00052 public:
00053
00058 DJDecompressIJG16Bit(const DJCodecParameter& cp, OFBool isYBR);
00059
00061 virtual ~DJDecompressIJG16Bit();
00062
00067 virtual OFCondition init();
00068
00080 virtual OFCondition decode(
00081 Uint8 *compressedFrameBuffer,
00082 Uint32 compressedFrameBufferSize,
00083 Uint8 *uncompressedFrameBuffer,
00084 Uint32 uncompressedFrameBufferSize);
00085
00088 virtual Uint16 bytesPerSample() const
00089 {
00090 return sizeof(Uint16);
00091 }
00092
00096 virtual EP_Interpretation getDecompressedColorModel() const
00097 {
00098 return decompressedColorModel;
00099 }
00100
00104 virtual void outputMessage() const;
00105
00106 private:
00107
00109 DJDecompressIJG16Bit(const DJDecompressIJG16Bit&);
00110
00112 DJDecompressIJG16Bit& operator=(const DJDecompressIJG16Bit&);
00113
00115 void cleanup();
00116
00118 const DJCodecParameter *cparam;
00119
00121 jpeg_decompress_struct *cinfo;
00122
00124 int suspension;
00125
00127 void *jsampBuffer;
00128
00130 OFBool dicomPhotometricInterpretationIsYCbCr;
00131
00133 EP_Interpretation decompressedColorModel;
00134
00135 };
00136
00137 #endif
00138
00139
00140
00141
00142
00143
00144
00145
00146
00147
00148
00149
00150
00151