32 #include "dcmtk/config/osconfig.h" 33 #include "dcmtk/ofstd/oflist.h" 34 #include "dcmtk/dcmjpeg/djencabs.h" 79 EP_Interpretation interpr,
80 Uint16 samplesPerPixel,
100 EP_Interpretation interpr,
101 Uint16 samplesPerPixel,
137 virtual void emitMessage(
void *arg,
int msg_level)
const;
abstract base class for compression classes.
virtual Uint16 bitsPerSample() const
returns the number of bits per sample that will be expected when encoding.
size_t bytesInLastBlock
filled number of bytes in last block in pixelDataList
int psv
for lossless compression, defines selection value
this class encapsulates the compression routines of the IJG JPEG library configured for 16 bits/sampl...
OFList< unsigned char * > pixelDataList
list of compressed pixel data blocks
virtual void emitMessage(void *arg, int msg_level) const
callback function used to report warning messages and the like.
const DJCodecParameter * cparam
codec parameters
void initDestination(jpeg_compress_struct *cinfo)
callback for IJG compress destination manager.
void termDestination(jpeg_compress_struct *cinfo)
callback for IJG compress destination manager.
DJCompressIJG16Bit(const DJCodecParameter &cp, EJ_Mode mode, int prediction, int ptrans)
constructor for lossless JPEG
void cleanup()
cleans up pixelDataList, called from destructor and error handlers
int emptyOutputBuffer(jpeg_compress_struct *cinfo)
callback for IJG compress destination manager.
virtual ~DJCompressIJG16Bit()
destructor
virtual OFCondition encode(Uint16 columns, Uint16 rows, EP_Interpretation interpr, Uint16 samplesPerPixel, Uint16 *image_buffer, Uint8 *&to, Uint32 &length)
single frame compression routine for 16-bit raw pixel data.
codec parameter for IJG codecs
int pt
for lossless compression, defines point transform
EJ_Mode modeofOperation
enum for mode of operation (baseline, sequential, progressive etc.)
virtual Uint16 bytesPerSample() const
returns the number of bytes per sample that will be expected when encoding.
DJCompressIJG16Bit & operator=(const DJCompressIJG16Bit &)
private undefined copy assignment operator
General purpose class for condition codes.