DCMTK  Version 3.6.3
OFFIS DICOM Toolkit
Public Member Functions | List of all members
DJDecoder Class Referenceabstract

abstract base class for decompression classes. More...

+ Inheritance diagram for DJDecoder:

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
 

Detailed Description

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.

Member Function Documentation

◆ decode()

virtual OFCondition DJDecoder::decode ( Uint8 *  compressedFrameBuffer,
Uint32  compressedFrameBufferSize,
Uint8 *  uncompressedFrameBuffer,
Uint32  uncompressedFrameBufferSize,
OFBool  isSigned 
)
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.

Parameters
compressedFrameBufferpointer to compressed input data, must not be NULL
compressedFrameBufferSizesize of buffer, in bytes
uncompressedFrameBufferpointer to uncompressed output data, must not be NULL. This buffer must not change between multiple decode() calls for a single frame.
uncompressedFrameBufferSizesize of buffer, in words??? Buffer must be large enough to contain a complete frame.
isSignedOFTrue, if uncompressed pixel data is signed, OFFalse otherwise
Returns
EC_Normal if successful, EC_Suspend if more data is needed, an error code otherwise.

Implemented in DJDecompressIJG12Bit, DJDecompressIJG16Bit, and DJDecompressIJG8Bit.

◆ init()

virtual OFCondition DJDecoder::init ( )
pure virtual

initializes internal object structures.

Must be called before a new frame is decompressed.

Returns
EC_Normal if successful, an error code otherwise

Implemented in DJDecompressIJG12Bit, DJDecompressIJG16Bit, and DJDecompressIJG8Bit.


The documentation for this class was generated from the following file:


Generated on Mon Feb 5 2018 for DCMTK Version 3.6.3 by Doxygen 1.8.14