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 #ifndef DIPITIFF_H
00031 #define DIPITIFF_H
00032
00033 #include "dcmtk/config/osconfig.h"
00034
00035 #ifdef WITH_LIBTIFF
00036
00037 #include "dcmtk/ofstd/ofstring.h"
00038
00039 #include "dcmtk/dcmimgle/diplugin.h"
00040
00041
00042
00043
00044
00045
00046 class DiImage;
00047
00048
00049
00050
00051
00052
00057 enum DiTIFFCompression
00058 {
00060 E_tiffPackBitsCompression,
00061
00063 E_tiffLZWCompression,
00064
00066 E_tiffNoCompression
00067 };
00068
00071 enum DiTIFFLZWPredictor
00072 {
00074 E_tiffLZWPredictorDefault,
00075
00077 E_tiffLZWPredictorNoPrediction,
00078
00080 E_tiffLZWPredictorHDifferencing
00081 };
00082
00083
00084
00085
00086
00087
00090 class DiTIFFPlugin
00091 : public DiPluginFormat
00092 {
00093
00094 public:
00095
00098 DiTIFFPlugin();
00099
00102 virtual ~DiTIFFPlugin();
00103
00110 virtual int write(DiImage *image,
00111 FILE *stream,
00112 const unsigned long frame = 0) const;
00113
00117 void setCompressionType(DiTIFFCompression ctype);
00118
00122 void setLZWPredictor(DiTIFFLZWPredictor pred);
00123
00129 void setRowsPerStrip(unsigned long rows = 0);
00130
00135 static OFString getLibraryVersionString();
00136
00137
00138 private:
00139
00141 DiTIFFCompression compressionType;
00142
00144 DiTIFFLZWPredictor predictor;
00145
00147 unsigned long rowsPerStrip;
00148 };
00149
00150 #endif
00151 #endif
00152
00153
00154
00155
00156
00157
00158
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168
00169
00170
00171
00172
00173
00174
00175
00176
00177
00178
00179
00180
00181