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 DJUTILS_H
00035 #define DJUTILS_H
00036
00037 #include "dcmtk/config/osconfig.h"
00038 #include "dcmtk/ofstd/ofcond.h"
00039 #include "dcmtk/dcmimgle/diutils.h"
00040
00041 class DcmItem;
00042
00045 enum EJ_Mode
00046 {
00048 EJM_baseline,
00049
00051 EJM_sequential,
00052
00054 EJM_spectralSelection,
00055
00057 EJM_progressive,
00058
00060 EJM_lossless
00061 };
00062
00066 enum E_SubSampling
00067 {
00069 ESS_444,
00071 ESS_422,
00073 ESS_411
00074 };
00075
00079 enum E_UIDCreation
00080 {
00084 EUC_default,
00085
00087 EUC_always,
00088
00090 EUC_never
00091 };
00092
00096 enum E_PlanarConfiguration
00097 {
00101 EPC_default,
00102
00104 EPC_colorByPixel,
00105
00107 EPC_colorByPlane
00108 };
00109
00114 enum E_CompressionColorSpaceConversion
00115 {
00120 ECC_lossyYCbCr,
00121
00125 ECC_lossyRGB,
00126
00129 ECC_monochrome
00130 };
00131
00136 enum E_DecompressionColorSpaceConversion
00137 {
00141 EDC_photometricInterpretation,
00142
00146 EDC_lossyOnly,
00147
00151 EDC_always,
00152
00155 EDC_never
00156 };
00157
00158
00159
00160
00162 extern const OFCondition EJ_Suspension;
00164 extern const OFCondition EJ_IJG8_FrameBufferTooSmall;
00166 extern const OFCondition EJ_IJG12_FrameBufferTooSmall;
00168 extern const OFCondition EJ_IJG16_FrameBufferTooSmall;
00170 extern const OFCondition EJ_UnsupportedPhotometricInterpretation;
00172 extern const OFCondition EJ_UnsupportedColorConversion;
00173
00174
00175 const unsigned short EJCode_IJG8_Compression = 0x0100;
00176 const unsigned short EJCode_IJG8_Decompression = 0x0101;
00177 const unsigned short EJCode_IJG12_Compression = 0x0102;
00178 const unsigned short EJCode_IJG12_Decompression = 0x0103;
00179 const unsigned short EJCode_IJG16_Compression = 0x0104;
00180 const unsigned short EJCode_IJG16_Decompression = 0x0105;
00181
00185 class DcmJpegHelper
00186 {
00187 public:
00188
00194 static EP_Interpretation getPhotometricInterpretation(DcmItem *item);
00195 };
00196
00197 #endif
00198
00199
00200
00201
00202
00203
00204
00205
00206
00207
00208
00209
00210
00211
00212