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