DCMTK
Version 3.6.1 20120515
OFFIS DICOM Toolkit
|
Encoder class for JPEG Spectral Selection (lossy, 8/12-bit) More...
Public Member Functions | |
DJEncoderSpectralSelection () | |
default constructor | |
virtual | ~DJEncoderSpectralSelection () |
destructor | |
virtual E_TransferSyntax | supportedTransferSyntax () const |
returns the transfer syntax that this particular codec is able to encode and decode. | |
Private Member Functions | |
virtual OFBool | isLosslessProcess () const |
returns true if the transfer syntax supported by this codec is lossless. | |
virtual void | createDerivationDescription (const DcmRepresentationParameter *toRepParam, const DJCodecParameter *cp, Uint8 bitsPerSample, double ratio, OFString &derivationDescription) const |
creates 'derivation description' string after encoding. | |
virtual DJEncoder * | createEncoderInstance (const DcmRepresentationParameter *toRepParam, const DJCodecParameter *cp, Uint8 bitsPerSample) const |
creates an instance of the compression library to be used for encoding/decoding. |
Encoder class for JPEG Spectral Selection (lossy, 8/12-bit)
virtual void DJEncoderSpectralSelection::createDerivationDescription | ( | const DcmRepresentationParameter * | toRepParam, |
const DJCodecParameter * | cp, | ||
Uint8 | bitsPerSample, | ||
double | ratio, | ||
OFString & | derivationDescription | ||
) | const [private, virtual] |
creates 'derivation description' string after encoding.
toRepParam | representation parameter passed to encode() |
cp | codec parameter passed to encode() |
bitsPerSample | bits per sample of the original image data prior to compression |
ratio | image compression ratio. This is not the "quality factor" but the real effective ratio between compressed and uncompressed image, i. e. 30 means a 30:1 lossy compression. |
imageComments | image comments returned in this parameter which is initially empty |
Implements DJCodecEncoder.
virtual DJEncoder* DJEncoderSpectralSelection::createEncoderInstance | ( | const DcmRepresentationParameter * | toRepParam, |
const DJCodecParameter * | cp, | ||
Uint8 | bitsPerSample | ||
) | const [private, virtual] |
creates an instance of the compression library to be used for encoding/decoding.
toRepParam | representation parameter passed to encode() |
cp | codec parameter passed to encode() |
bitsPerSample | bits per sample for the image data |
Implements DJCodecEncoder.
virtual OFBool DJEncoderSpectralSelection::isLosslessProcess | ( | ) | const [private, virtual] |
returns true if the transfer syntax supported by this codec is lossless.
Implements DJCodecEncoder.
virtual E_TransferSyntax DJEncoderSpectralSelection::supportedTransferSyntax | ( | ) | const [virtual] |
returns the transfer syntax that this particular codec is able to encode and decode.
Implements DJCodecEncoder.