|
DCMTK Version 3.6.9
OFFIS DICOM Toolkit
|
this class encapsulates the compression routines of the IJG JPEG library configured for 12 bits/sample. More...
Inheritance diagram for DJCompressIJG12Bit:Public Member Functions | |
| DJCompressIJG12Bit (const DJCodecParameter &cp, EJ_Mode mode, Uint8 quality) | |
| constructor for lossy JPEG | |
| DJCompressIJG12Bit (const DJCodecParameter &cp, EJ_Mode mode, int prediction, int ptrans) | |
| constructor for lossless JPEG | |
| virtual | ~DJCompressIJG12Bit () |
| 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. | |
| virtual OFCondition | encode (Uint16 columns, Uint16 rows, EP_Interpretation interpr, Uint16 samplesPerPixel, Uint8 *image_buffer, Uint8 *&to, Uint32 &length) |
| single frame compression routine for 8-bit raw pixel data. | |
| virtual Uint16 | bytesPerSample () const |
| returns the number of bytes per sample that will be expected when encoding. | |
| virtual Uint16 | bitsPerSample () const |
| returns the number of bits per sample that will be expected when encoding. | |
| void | initDestination (dcmtk_jpeg12_compress_struct *cinfo) |
| callback for IJG compress destination manager. | |
| int | emptyOutputBuffer (dcmtk_jpeg12_compress_struct *cinfo) |
| callback for IJG compress destination manager. | |
| void | termDestination (dcmtk_jpeg12_compress_struct *cinfo) |
| callback for IJG compress destination manager. | |
| virtual void | emitMessage (void *arg, int msg_level) const |
| callback function used to report warning messages and the like. | |
Public Member Functions inherited from DJEncoder | |
| DJEncoder () | |
| default constructor | |
| virtual | ~DJEncoder () |
| destructor | |
Private Member Functions | |
| DJCompressIJG12Bit (const DJCompressIJG12Bit &) | |
| private undefined copy constructor | |
| DJCompressIJG12Bit & | operator= (const DJCompressIJG12Bit &) |
| private undefined copy assignment operator | |
| void | cleanup () |
| cleans up pixelDataList, called from destructor and error handlers | |
Private Attributes | |
| const DJCodecParameter * | cparam |
| codec parameters | |
| Uint8 | quality |
| for lossy compression, defines compression quality factor | |
| int | psv |
| for lossless compression, defines selection value | |
| int | pt |
| for lossless compression, defines point transform | |
| EJ_Mode | modeofOperation |
| enum for mode of operation (baseline, sequential, progressive etc.) | |
| OFList< unsigned char * > | pixelDataList |
| list of compressed pixel data blocks | |
| size_t | bytesInLastBlock |
| filled number of bytes in last block in pixelDataList | |
this class encapsulates the compression routines of the IJG JPEG library configured for 12 bits/sample.
| DJCompressIJG12Bit::DJCompressIJG12Bit | ( | const DJCodecParameter & | cp, |
| EJ_Mode | mode, | ||
| Uint8 | quality ) |
constructor for lossy JPEG
| cp | codec parameters |
| mode | mode of operation |
| quality | compression quality |
References quality.
Referenced by DJCompressIJG12Bit(), and operator=().
| DJCompressIJG12Bit::DJCompressIJG12Bit | ( | const DJCodecParameter & | cp, |
| EJ_Mode | mode, | ||
| int | prediction, | ||
| int | ptrans ) |
constructor for lossless JPEG
| cp | codec parameters |
| prediction | predictor |
| ptrans | point transform |
|
virtual |
callback function used to report warning messages and the like.
Should not be called by user code directly.
| arg | opaque pointer to JPEG compress structure |
| msg_level | -1 for warnings, 0 and above for trace messages |
| int DJCompressIJG12Bit::emptyOutputBuffer | ( | dcmtk_jpeg12_compress_struct * | cinfo | ) |
callback for IJG compress destination manager.
Internal use only, not to be called by client code.
| cinfo | pointer to compress info |
|
virtual |
single frame compression routine for 16-bit raw pixel data.
May only be called if bytesPerSample() == 2.
| columns | columns of frame |
| rows | rows of frame |
| interpr | photometric interpretation of input frame |
| samplesPerPixel | samples per pixel of input frame |
| image_buffer | pointer to frame buffer |
| to | compressed frame returned in this parameter upon success |
| length | length of compressed frame (in bytes) returned in this parameter upon success; length guaranteed to be always even. |
Implements DJEncoder.
|
virtual |
single frame compression routine for 8-bit raw pixel data.
May only be called if bytesPerSample() == 1.
| columns | columns of frame |
| rows | rows of frame |
| interpr | photometric interpretation of input frame |
| samplesPerPixel | samples per pixel of input frame |
| image_buffer | pointer to frame buffer |
| to | compressed frame returned in this parameter upon success |
| length | length of compressed frame (in bytes) returned in this parameter upon success; length guaranteed to be always even. |
Implements DJEncoder.
| void DJCompressIJG12Bit::initDestination | ( | dcmtk_jpeg12_compress_struct * | cinfo | ) |
callback for IJG compress destination manager.
Internal use only, not to be called by client code.
| cinfo | pointer to compress info |
| void DJCompressIJG12Bit::termDestination | ( | dcmtk_jpeg12_compress_struct * | cinfo | ) |
callback for IJG compress destination manager.
Internal use only, not to be called by client code.
| cinfo | pointer to compress info |