Inheritance diagram for DcmCodec:
Public Member Functions | |
DcmCodec () | |
default constructor | |
virtual OFCondition | decode (const DcmRepresentationParameter *fromRepParam, DcmPixelSequence *pixSeq, DcmPolymorphOBOW &uncompressedPixelData, const DcmCodecParameter *cp, const DcmStack &objStack) const =0 |
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 =0 |
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 =0 |
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 =0 |
checks if this codec is able to convert from the given current transfer syntax to the given new transfer syntax | |
DcmCodec () | |
default constructor | |
virtual OFCondition | decode (const DcmRepresentationParameter *fromRepParam, DcmPixelSequence *pixSeq, DcmPolymorphOBOW &uncompressedPixelData, const DcmCodecParameter *cp, const DcmStack &objStack) const =0 |
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 =0 |
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 =0 |
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 =0 |
checks if this codec is able to convert from the given current transfer syntax to the given new transfer syntax | |
Static Public Member Functions | |
OFCondition | insertStringIfMissing (DcmItem *dataset, const DcmTagKey &tag, const char *val) |
helper function that inserts a string attribute with a given value into a dataset if missing in the dataset. | |
OFCondition | convertToSecondaryCapture (DcmItem *dataset) |
helper function that converts a dataset containing a DICOM image into a valid (standard extended) Secondary Capture object by inserting all attributes that are type 1/2 in Secondary Capture and missing in the source dataset. | |
OFCondition | newInstance (DcmItem *dataset) |
create new SOP instance UID and Source Image Sequence referencing the old SOP instance (if present) | |
OFCondition | updateImageType (DcmItem *dataset) |
set first two values of Image Type to DERIVED. | |
OFCondition | insertStringIfMissing (DcmItem *dataset, const DcmTagKey &tag, const char *val) |
helper function that inserts a string attribute with a given value into a dataset if missing in the dataset. | |
OFCondition | convertToSecondaryCapture (DcmItem *dataset) |
helper function that converts a dataset containing a DICOM image into a valid (standard extended) Secondary Capture object by inserting all attributes that are type 1/2 in Secondary Capture and missing in the source dataset. | |
OFCondition | newInstance (DcmItem *dataset) |
create new SOP instance UID and Source Image Sequence referencing the old SOP instance (if present) | |
OFCondition | updateImageType (DcmItem *dataset) |
set first two values of Image Type to DERIVED. |
compressing, decompressing or transcoding between different compressed transfer syntaxes). When dcmdata is requested to write a transfer syntax that differs from the current one (i.e. the one in which the object was read), dcmdata dynamically searches for a DcmCodec object that is able to create the desired transfer syntax. If no suitable codec is found, the write operation fails.
Definition at line 90 of file dccodec.h.
|
checks if this codec is able to convert from the given current transfer syntax to the given new transfer syntax
Implemented in DcmRLECodecDecoder, DcmRLECodecEncoder, DJCodecDecoder, DJCodecEncoder, DcmRLECodecDecoder, DcmRLECodecEncoder, DJCodecDecoder, and DJCodecEncoder. |
|
checks if this codec is able to convert from the given current transfer syntax to the given new transfer syntax
Implemented in DcmRLECodecDecoder, DcmRLECodecEncoder, DJCodecDecoder, DJCodecEncoder, DcmRLECodecDecoder, DcmRLECodecEncoder, DJCodecDecoder, and DJCodecEncoder. |
|
helper function that converts a dataset containing a DICOM image into a valid (standard extended) Secondary Capture object by inserting all attributes that are type 1/2 in Secondary Capture and missing in the source dataset. Replaces SOP Class UID by Secondary Capture. It does not, however, change an existing SOP Instance UID.
|
|
helper function that converts a dataset containing a DICOM image into a valid (standard extended) Secondary Capture object by inserting all attributes that are type 1/2 in Secondary Capture and missing in the source dataset. Replaces SOP Class UID by Secondary Capture. It does not, however, change an existing SOP Instance UID.
|
|
decompresses the given pixel sequence and stores the result in the given uncompressedPixelData element.
Implemented in DcmRLECodecDecoder, DcmRLECodecEncoder, DJCodecDecoder, DJCodecEncoder, DcmRLECodecDecoder, DcmRLECodecEncoder, DJCodecDecoder, and DJCodecEncoder. |
|
decompresses the given pixel sequence and stores the result in the given uncompressedPixelData element.
Implemented in DcmRLECodecDecoder, DcmRLECodecEncoder, DJCodecDecoder, DJCodecEncoder, DcmRLECodecDecoder, DcmRLECodecEncoder, DJCodecDecoder, and DJCodecEncoder. |
|
transcodes (re-compresses) the given compressed DICOM image and stores the result in the given toPixSeq element.
Implemented in DcmRLECodecDecoder, DcmRLECodecEncoder, DJCodecDecoder, DJCodecEncoder, DcmRLECodecDecoder, DcmRLECodecEncoder, DJCodecDecoder, and DJCodecEncoder. |
|
compresses the given uncompressed DICOM image and stores the result in the given pixSeq element.
Implemented in DcmRLECodecDecoder, DcmRLECodecEncoder, DJCodecDecoder, DJCodecEncoder, DcmRLECodecDecoder, DcmRLECodecEncoder, DJCodecDecoder, and DJCodecEncoder. |
|
transcodes (re-compresses) the given compressed DICOM image and stores the result in the given toPixSeq element.
Implemented in DcmRLECodecDecoder, DcmRLECodecEncoder, DJCodecDecoder, DJCodecEncoder, DcmRLECodecDecoder, DcmRLECodecEncoder, DJCodecDecoder, and DJCodecEncoder. |
|
compresses the given uncompressed DICOM image and stores the result in the given pixSeq element.
Implemented in DcmRLECodecDecoder, DcmRLECodecEncoder, DJCodecDecoder, DJCodecEncoder, DcmRLECodecDecoder, DcmRLECodecEncoder, DJCodecDecoder, and DJCodecEncoder. |
|
helper function that inserts a string attribute with a given value into a dataset if missing in the dataset.
|
|
helper function that inserts a string attribute with a given value into a dataset if missing in the dataset.
|
|
create new SOP instance UID and Source Image Sequence referencing the old SOP instance (if present)
|
|
create new SOP instance UID and Source Image Sequence referencing the old SOP instance (if present)
|
|
set first two values of Image Type to DERIVED.
|
|
set first two values of Image Type to DERIVED.
|