Inheritance diagram for DcmRLECodecDecoder:
Public Member Functions | |
DcmRLECodecDecoder () | |
default constructor | |
virtual | ~DcmRLECodecDecoder () |
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 | 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 | |
Private Member Functions | |
DcmRLECodecDecoder (const DcmRLECodecDecoder &) | |
private undefined copy constructor | |
DcmRLECodecDecoder & | operator= (const DcmRLECodecDecoder &) |
private undefined copy assignment operator |
This class only supports decompression, it neither implements encoding nor transcoding.
Definition at line 45 of file dcrleccd.h.
virtual OFCondition DcmRLECodecDecoder::decode | ( | const DcmRepresentationParameter * | fromRepParam, | |
DcmPixelSequence * | pixSeq, | |||
DcmPolymorphOBOW & | uncompressedPixelData, | |||
const DcmCodecParameter * | cp, | |||
const DcmStack & | objStack | |||
) | const [virtual] |
decompresses the given pixel sequence and stores the result in the given uncompressedPixelData element.
fromRepParam | current representation parameter of compressed data, may be NULL | |
pixSeq | compressed pixel sequence | |
uncompressedPixelData | uncompressed pixel data stored in this element | |
cp | codec parameters for this codec | |
objStack | stack pointing to the location of the pixel data element in the current dataset. |
Implements DcmCodec.
virtual OFCondition DcmRLECodecDecoder::encode | ( | const Uint16 * | pixelData, | |
const Uint32 | length, | |||
const DcmRepresentationParameter * | toRepParam, | |||
DcmPixelSequence *& | pixSeq, | |||
const DcmCodecParameter * | cp, | |||
DcmStack & | objStack | |||
) | const [virtual] |
compresses the given uncompressed DICOM image and stores the result in the given pixSeq element.
pixelData | pointer to the uncompressed image data in OW format and local byte order | |
length | of the pixel data field in bytes | |
toRepParam | representation parameter describing the desired compressed representation (e.g. JPEG quality) | |
pixSeq | compressed pixel sequence (pointer to new DcmPixelSequence object allocated on heap) returned in this parameter upon success. | |
cp | codec parameters for this codec | |
objStack | stack pointing to the location of the pixel data element in the current dataset. |
Implements DcmCodec.
virtual OFCondition DcmRLECodecDecoder::encode | ( | const E_TransferSyntax | fromRepType, | |
const DcmRepresentationParameter * | fromRepParam, | |||
DcmPixelSequence * | fromPixSeq, | |||
const DcmRepresentationParameter * | toRepParam, | |||
DcmPixelSequence *& | toPixSeq, | |||
const DcmCodecParameter * | cp, | |||
DcmStack & | objStack | |||
) | const [virtual] |
transcodes (re-compresses) the given compressed DICOM image and stores the result in the given toPixSeq element.
fromRepType | current transfer syntax of the compressed image | |
fromRepParam | current representation parameter of compressed data, may be NULL | |
fromPixSeq | compressed pixel sequence | |
toRepParam | representation parameter describing the desired new compressed representation (e.g. JPEG quality) | |
toPixSeq | compressed pixel sequence (pointer to new DcmPixelSequence object allocated on heap) returned in this parameter upon success. | |
cp | codec parameters for this codec | |
objStack | stack pointing to the location of the pixel data element in the current dataset. |
Implements DcmCodec.
virtual OFBool DcmRLECodecDecoder::canChangeCoding | ( | const E_TransferSyntax | oldRepType, | |
const E_TransferSyntax | newRepType | |||
) | const [virtual] |
checks if this codec is able to convert from the given current transfer syntax to the given new transfer syntax
oldRepType | current transfer syntax | |
newRepType | desired new transfer syntax |
Implements DcmCodec.