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 "osconfig.h"
00038
#include "ofcond.h"
00039
#include "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;
00171
00172
00173
const unsigned short EJCode_IJG8_Compression = 0x0100;
00174
const unsigned short EJCode_IJG8_Decompression = 0x0101;
00175
const unsigned short EJCode_IJG12_Compression = 0x0102;
00176
const unsigned short EJCode_IJG12_Decompression = 0x0103;
00177
const unsigned short EJCode_IJG16_Compression = 0x0104;
00178
const unsigned short EJCode_IJG16_Decompression = 0x0105;
00179
00183 class DcmJpegHelper
00184 {
00185
public:
00186
00192
static EP_Interpretation
getPhotometricInterpretation(
DcmItem *item);
00193 };
00194
00195
#endif
00196
00197
00198
00199
00200
00201
00202
00203
00204