Encoder class for JPEG Baseline (lossy, 8-bit)
More...
List of all members.
Public Member Functions |
| DJEncoderBaseline () |
| default constructor
|
virtual | ~DJEncoderBaseline () |
| destructor
|
virtual E_TransferSyntax | supportedTransferSyntax () const |
| returns the transfer syntax that this particular codec is able to encode and decode.
|
| DJCodecEncoder () |
| default constructor
|
virtual | ~DJCodecEncoder () |
| destructor
|
virtual OFCondition | decode (const DcmRepresentationParameter *fromRepParam, DcmPixelSequence *pixSeq, DcmPolymorphOBOW &uncompressedPixelData, const DcmCodecParameter *cp, const DcmStack &objStack) const |
| decompresses the given pixel sequence and stores the result in the given uncompressedPixelData element.
|
virtual OFCondition | decodeFrame (const DcmRepresentationParameter *fromParam, DcmPixelSequence *fromPixSeq, const DcmCodecParameter *cp, DcmItem *dataset, Uint32 frameNo, Uint32 &startFragment, void *buffer, Uint32 bufSize, OFString &decompressedColorModel) const |
| decompresses a single frame from the given pixel sequence and stores the result in the given buffer.
|
virtual OFCondition | encode (const Uint16 *pixelData, const Uint32 length, const DcmRepresentationParameter *toRepParam, DcmPixelSequence *&pixSeq, const DcmCodecParameter *cp, DcmStack &objStack) const |
| compresses the given uncompressed DICOM image and stores the result in the given pixSeq element.
|
virtual OFCondition | encode (const E_TransferSyntax fromRepType, const DcmRepresentationParameter *fromRepParam, DcmPixelSequence *fromPixSeq, const DcmRepresentationParameter *toRepParam, DcmPixelSequence *&toPixSeq, const DcmCodecParameter *cp, DcmStack &objStack) const |
| transcodes (re-compresses) the given compressed DICOM image and stores the result in the given toPixSeq element.
|
virtual OFBool | canChangeCoding (const E_TransferSyntax oldRepType, const E_TransferSyntax newRepType) const |
| checks if this codec is able to convert from the given current transfer syntax to the given new transfer syntax
|
virtual OFCondition | determineDecompressedColorModel (const DcmRepresentationParameter *fromParam, DcmPixelSequence *fromPixSeq, const DcmCodecParameter *cp, DcmItem *dataset, OFString &decompressedColorModel) const |
| determine color model of the decompressed image
|
| DcmCodec () |
| default constructor
|
virtual | ~DcmCodec () |
| destructor
|
Additional Inherited Members |
static void | appendCompressionRatio (OFString &arg, double ratio) |
| format compression ratio as string and append to given string object.
|
static OFCondition | togglePlanarConfiguration8 (Uint8 *pixelData, const unsigned long numValues, const Uint16 samplesPerPixel, const Uint16 oldPlanarConfig) |
| toggles Planar Configuration of 8-bit pixel data from "by pixel" to "by plane" and vice versa.
|
static OFCondition | togglePlanarConfiguration16 (Uint16 *pixelData, const unsigned long numValues, const Uint16 samplesPerPixel, const Uint16 oldPlanarConfig) |
| toggles Planar Configuration of 16-bit pixel data from "by pixel" to "by plane" and vice versa.
|
Detailed Description
Encoder class for JPEG Baseline (lossy, 8-bit)
Definition at line 38 of file djencbas.h.
Member Function Documentation
creates 'derivation description' string after encoding.
- Parameters:
-
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.
creates an instance of the compression library to be used for encoding/decoding.
- Parameters:
-
toRepParam | representation parameter passed to encode() |
cp | codec parameter passed to encode() |
bitsPerSample | bits per sample for the image data |
- Returns:
- pointer to newly allocated codec object
Implements DJCodecEncoder.
virtual OFBool DJEncoderBaseline::isLosslessProcess |
( |
| ) |
const |
|
privatevirtual |
returns true if the transfer syntax supported by this codec is lossless.
- Returns:
- lossless flag
Implements DJCodecEncoder.
virtual E_TransferSyntax DJEncoderBaseline::supportedTransferSyntax |
( |
| ) |
const |
|
virtual |
returns the transfer syntax that this particular codec is able to encode and decode.
- Returns:
- supported transfer syntax
Implements DJCodecEncoder.
The documentation for this class was generated from the following file: