Inheritance diagram for DJCompressIJG8Bit:
Public Member Functions | |
DJCompressIJG8Bit (const DJCodecParameter &cp, EJ_Mode mode, Uint8 quality) | |
constructor for lossy JPEG | |
DJCompressIJG8Bit (const DJCodecParameter &cp, EJ_Mode mode, int prediction, int ptrans) | |
constructor for lossless JPEG | |
virtual | ~DJCompressIJG8Bit () |
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 (jpeg_compress_struct *cinfo) |
callback for IJG compress destination manager. | |
int | emptyOutputBuffer (jpeg_compress_struct *cinfo) |
callback for IJG compress destination manager. | |
void | termDestination (jpeg_compress_struct *cinfo) |
callback for IJG compress destination manager. | |
virtual void | outputMessage (void *arg) const |
callback function used to report warning messages and the like. | |
Private Member Functions | |
DJCompressIJG8Bit (const DJCompressIJG8Bit &) | |
private undefined copy constructor | |
DJCompressIJG8Bit & | operator= (const DJCompressIJG8Bit &) |
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 |
Definition at line 51 of file djeijg8.h.
|
constructor for lossy JPEG
|
|
constructor for lossless JPEG
|
|
callback for IJG compress destination manager. Internal use only, not to be called by client code.
|
|
single frame compression routine for 8-bit raw pixel data. May only be called if bytesPerSample() == 1.
Implements DJEncoder. |
|
single frame compression routine for 16-bit raw pixel data. May only be called if bytesPerSample() == 2.
Implements DJEncoder. |
|
callback for IJG compress destination manager. Internal use only, not to be called by client code.
|
|
callback function used to report warning messages and the like. Should not be called by user code directly.
|
|
callback for IJG compress destination manager. Internal use only, not to be called by client code.
|