66#include "dcmtk/ofstd/ofcond.h" /* for class OFCondition */
77#include "dldefine.h"
88
9- #define DCMTKHTJ2K_VERSION_STRING "DCMTK HTJ2K"
9+ #define DCMTKHTJ2K_VERSION_STRING "DCMTK- HTJ2K 1.0.2 "
1010
1111// global definitions for logging mechanism provided by the oflog module
1212
@@ -21,147 +21,150 @@ extern DCMTKHTJ2K_EXPORT OFLogger DCM_ht2kLogger;
2121
2222// include this file in doxygen documentation
2323
24- /** @file djlsutil .h
24+ /** @file djutils .h
2525 * @brief enumerations, error constants and helper functions for the dcmhtj2k
2626 * module
2727 */
2828
2929/** describes the condition under which a compressed or decompressed image
3030 * receives a new SOP instance UID.
3131 */
32- enum J2K_UIDCreation {
32+ enum HTJ2K_UIDCreation {
3333 /** Upon compression, assign new SOP instance UID if compression is lossy.
3434 * Upon decompression never assign new SOP instance UID.
3535 */
36- EJ2KUC_default ,
36+ EHTJ2KUC_default ,
3737
3838 /// always assign new SOP instance UID on compression and decompression
39- EJ2KUC_always ,
39+ EHTJ2KUC_always ,
4040
4141 /// never assign new SOP instance UID
42- EJ2KUC_never
42+ EHTJ2KUC_never
4343};
4444
4545/** describes how the decoder should handle planar configuration of
4646 * decompressed color images.
4747 */
48- enum J2K_PlanarConfiguration {
48+ enum HTJ2K_PlanarConfiguration {
4949 /// restore planar configuration as indicated in data set
50- EJ2KPC_restore ,
50+ EHTJ2KPC_restore ,
5151
5252 /** automatically determine whether color-by-plane is required from
5353 * the SOP Class UID and decompressed photometric interpretation
5454 */
55- EJ2KPC_auto ,
55+ EHTJ2KPC_auto ,
5656
5757 /// always create color-by-pixel planar configuration
58- EJ2KPC_colorByPixel ,
58+ EHTJ2KPC_colorByPixel ,
5959
6060 /// always create color-by-plane planar configuration
61- EJ2KPC_colorByPlane
61+ EHTJ2KPC_colorByPlane
6262};
6363
6464/** describes how the encoder handles the image bit depth
6565 * upon lossy compression.
6666 */
67- enum J2K_CompressionBitDepth {
67+ enum HTJ2K_CompressionBitDepth {
6868 /// keep original bit depth
69- EJ2KBD_original ,
69+ EHTJ2KBD_original ,
7070
7171 /** limit bit depth to a certain value, i.e. scale down
7272 * if the original image bit depth is larger
7373 */
74- EJ2KBD_limit ,
74+ EHTJ2KBD_limit ,
7575
7676 /** force bit depth to a certain value, i.e. scale up
7777 * or scale down the original image to match the given
7878 * bit depth.
7979 */
80- EJ2KBD_force
80+ EHTJ2KBD_force
8181};
8282
8383/** describes the progression order used in the codestream
8484 */
85- enum J2K_ProgressionOrder {
85+ enum HTJ2K_ProgressionOrder {
8686 /// use default progression order as defined in HT-J2K standard
87- EJ2KPO_default ,
87+ EHTJ2KPO_default ,
8888
8989 /// layer-resolution-component-position progression order
90- EJ2KPO_LRCP ,
90+ EHTJ2KPO_LRCP ,
9191
9292 /// resolution-layer-component-position progression order
93- EJ2KPO_RLCP ,
93+ EHTJ2KPO_RLCP ,
9494
9595 /// resolution-position-component-layer progression order
96- EJ2KPO_RPCL ,
96+ EHTJ2KPO_RPCL ,
9797
9898 /// position-component-resolution-layer progression order
99- EJ2KPO_PCRL ,
99+ EHTJ2KPO_PCRL ,
100100
101101 /// component-position-resolution-layer progression order
102- EJ2KPO_CPRL
102+ EHTJ2KPO_CPRL
103103};
104104
105105// CONDITION CONSTANTS
106106
107107/// error condition constant: Too small buffer used for image data (internal
108108/// error)
109109extern DCMTKHTJ2K_EXPORT const OFConditionConst
110- EC_J2KUncompressedBufferTooSmall ;
110+ EC_HTJ2KUncompressedBufferTooSmall ;
111111
112112/// error condition constant: Too small buffer used for compressed image data
113113/// (internal error)
114- extern DCMTKHTJ2K_EXPORT const OFConditionConst EC_J2KCompressedBufferTooSmall ;
114+ extern DCMTKHTJ2K_EXPORT const OFConditionConst
115+ EC_HTJ2KCompressedBufferTooSmall ;
115116
116117/// error condition constant: The image uses some features which the codec does
117118/// not support
118- extern DCMTKHTJ2K_EXPORT const OFConditionConst EC_J2KCodecUnsupportedImageType ;
119+ extern DCMTKHTJ2K_EXPORT const OFConditionConst
120+ EC_HTJ2KCodecUnsupportedImageType ;
119121
120122/// error condition constant: The codec was fed with invalid parameters (e.g.
121123/// height = -1)
122- extern DCMTKHTJ2K_EXPORT const OFConditionConst EC_J2KCodecInvalidParameters ;
124+ extern DCMTKHTJ2K_EXPORT const OFConditionConst EC_HTJ2KCodecInvalidParameters ;
123125
124126/// error condition constant: The codec was fed with unsupported parameters
125127/// (e.g. 32 bit per sample)
126- extern DCMTKHTJ2K_EXPORT const OFConditionConst EC_J2KCodecUnsupportedValue ;
128+ extern DCMTKHTJ2K_EXPORT const OFConditionConst EC_HTJ2KCodecUnsupportedValue ;
127129
128130/// error condition constant: The compressed image is invalid
129- extern DCMTKHTJ2K_EXPORT const OFConditionConst EC_J2KInvalidCompressedData ;
131+ extern DCMTKHTJ2K_EXPORT const OFConditionConst EC_HTJ2KInvalidCompressedData ;
130132
131133/// error condition constant: The images' color transformation is not supported
132134/// in this bit depth
133135extern DCMTKHTJ2K_EXPORT const OFConditionConst
134- EC_J2KUnsupportedBitDepthForTransform ;
136+ EC_HTJ2KUnsupportedBitDepthForTransform ;
135137
136138/// error condition constant: The images' color transformation is not supported
137- extern DCMTKHTJ2K_EXPORT const OFConditionConst EC_J2KUnsupportedColorTransform ;
139+ extern DCMTKHTJ2K_EXPORT const OFConditionConst
140+ EC_HTJ2KUnsupportedColorTransform ;
138141
139142/// error condition constant: Unsupported bit depth in HT-J2K transfer syntax
140- extern DCMTKHTJ2K_EXPORT const OFConditionConst EC_J2KUnsupportedBitDepth ;
143+ extern DCMTKHTJ2K_EXPORT const OFConditionConst EC_HTJ2KUnsupportedBitDepth ;
141144
142145/// error condition constant: Cannot compute number of fragments for HT-J2K
143146/// frame
144147extern DCMTKHTJ2K_EXPORT const OFConditionConst
145- EC_J2KCannotComputeNumberOfFragments ;
148+ EC_HTJ2KCannotComputeNumberOfFragments ;
146149
147150/// error condition constant: Image data mismatch between DICOM header and
148151/// HT-J2K bitstream
149- extern DCMTKHTJ2K_EXPORT const OFConditionConst EC_J2KImageDataMismatch ;
152+ extern DCMTKHTJ2K_EXPORT const OFConditionConst EC_HTJ2KImageDataMismatch ;
150153
151154/// error condition constant: Unsupported photometric interpretation for
152155/// near-lossless HT-J2K compression
153156extern DCMTKHTJ2K_EXPORT const OFConditionConst
154- EC_J2KUnsupportedPhotometricInterpretation ;
157+ EC_HTJ2KUnsupportedPhotometricInterpretation ;
155158
156159/// error condition constant: Unsupported pixel representation for near-lossless
157160/// HT-J2K compression
158161extern DCMTKHTJ2K_EXPORT const OFConditionConst
159- EC_J2KUnsupportedPixelRepresentation ;
162+ EC_HTJ2KUnsupportedPixelRepresentation ;
160163
161164/// error condition constant: Unsupported type of image for HT-J2K compression
162- extern DCMTKHTJ2K_EXPORT const OFConditionConst EC_J2KUnsupportedImageType ;
165+ extern DCMTKHTJ2K_EXPORT const OFConditionConst EC_HTJ2KUnsupportedImageType ;
163166
164167/// error condition constant: Trailing data after image
165- extern DCMTKHTJ2K_EXPORT const OFConditionConst EC_J2KTooMuchCompressedData ;
168+ extern DCMTKHTJ2K_EXPORT const OFConditionConst EC_HTJ2KTooMuchCompressedData ;
166169
167170#endif
0 commit comments