DCMTK
Version 3.6.5
OFFIS DICOM Toolkit
|
abstract base class for decompression classes. More...
Public Member Functions | |
DJDecoder () | |
default constructor | |
virtual | ~DJDecoder () |
destructor | |
virtual OFCondition | init ()=0 |
initializes internal object structures. More... | |
virtual OFCondition | decode (Uint8 *compressedFrameBuffer, Uint32 compressedFrameBufferSize, Uint8 *uncompressedFrameBuffer, Uint32 uncompressedFrameBufferSize, OFBool isSigned)=0 |
suspended decompression routine. More... | |
virtual Uint16 | bytesPerSample () const =0 |
returns the number of bytes per sample that will be written when decoding. | |
virtual EP_Interpretation | getDecompressedColorModel () const =0 |
after successful compression, returns the color model of the decompressed image | |
abstract base class for decompression classes.
Implementations of this class must support suspended decompression in which compressed data for one frame is fed block by block into the decompression routine, see description below.
|
pure virtual |
suspended decompression routine.
Decompresses a JPEG frame until finished or out of data. Can be called with new data until a frame is complete.
compressedFrameBuffer | pointer to compressed input data, must not be NULL |
compressedFrameBufferSize | size of buffer, in bytes |
uncompressedFrameBuffer | pointer to uncompressed output data, must not be NULL. This buffer must not change between multiple decode() calls for a single frame. |
uncompressedFrameBufferSize | size of buffer, in words??? Buffer must be large enough to contain a complete frame. |
isSigned | OFTrue, if uncompressed pixel data is signed, OFFalse otherwise |
Implemented in DJDecompressIJG12Bit, DJDecompressIJG16Bit, and DJDecompressIJG8Bit.
|
pure virtual |
initializes internal object structures.
Must be called before a new frame is decompressed.
Implemented in DJDecompressIJG12Bit, DJDecompressIJG16Bit, and DJDecompressIJG8Bit.