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 #ifndef DJENCABS_H
00030 #define DJENCABS_H
00031
00032 #include "dcmtk/config/osconfig.h"
00033 #include "dcmtk/dcmdata/dctypes.h"
00034 #include "dcmtk/dcmimgle/diutils.h"
00035 #include "dcmtk/dcmjpeg/djutils.h"
00036
00039 class DJEncoder
00040 {
00041 public:
00042
00044 DJEncoder()
00045 {
00046 }
00047
00049 virtual ~DJEncoder()
00050 {
00051 }
00052
00065 virtual OFCondition encode(
00066 Uint16 columns,
00067 Uint16 rows,
00068 EP_Interpretation interpr,
00069 Uint16 samplesPerPixel,
00070 Uint16 *image_buffer,
00071 Uint8 *&to,
00072 Uint32 &length) = 0;
00073
00086 virtual OFCondition encode(
00087 Uint16 columns,
00088 Uint16 rows,
00089 EP_Interpretation interpr,
00090 Uint16 samplesPerPixel,
00091 Uint8 *image_buffer,
00092 Uint8 *&to,
00093 Uint32 &length) = 0;
00094
00097 virtual Uint16 bytesPerSample() const = 0;
00098
00101 virtual Uint16 bitsPerSample() const = 0;
00102
00103 };
00104
00105
00106 #endif
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121