32 #include "dcmtk/config/osconfig.h"
33 #include "dcmtk/ofstd/oflist.h"
34 #include "dcmtk/dcmjpeg/djencabs.h"
82 EP_Interpretation interpr,
83 Uint16 samplesPerPixel,
103 EP_Interpretation interpr,
104 Uint16 samplesPerPixel,
140 virtual void emitMessage(
void *arg,
int msg_level)
const;
int psv
for lossless compression, defines selection value
void cleanup()
cleans up pixelDataList, called from destructor and error handlers
abstract base class for compression classes.
virtual void emitMessage(void *arg, int msg_level) const
callback function used to report warning messages and the like.
virtual Uint16 bytesPerSample() const
returns the number of bytes per sample that will be expected when encoding.
this class encapsulates the compression routines of the IJG JPEG library configured for 8 bits/sample...
Uint8 quality
for lossy compression, defines compression quality factor
DJCompressIJG8Bit & operator=(const DJCompressIJG8Bit &)
private undefined copy assignment operator
size_t bytesInLastBlock
filled number of bytes in last block in pixelDataList
int pt
for lossless compression, defines point transform
const DJCodecParameter * cparam
codec parameters
virtual Uint16 bitsPerSample() const
returns the number of bits per sample that will be expected when encoding.
OFList< unsigned char * > pixelDataList
list of compressed pixel data blocks
int emptyOutputBuffer(jpeg_compress_struct *cinfo)
callback for IJG compress destination manager.
EJ_Mode modeofOperation
enum for mode of operation (baseline, sequential, progressive etc.)
void initDestination(jpeg_compress_struct *cinfo)
callback for IJG compress destination manager.
DJCompressIJG8Bit(const DJCodecParameter &cp, EJ_Mode mode, Uint8 quality)
constructor for lossy JPEG
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.
virtual ~DJCompressIJG8Bit()
destructor
void termDestination(jpeg_compress_struct *cinfo)
callback for IJG compress destination manager.
codec parameter for IJG codecs
General purpose class for condition codes.