Public Member Functions | |
| virtual | ~DcmCodecList () |
| destructor | |
Static Public Member Functions | |
| static OFCondition | registerCodec (const DcmCodec *aCodec, const DcmRepresentationParameter *aDefaultRepParam, const DcmCodecParameter *aCodecParameter) |
| registers a codec object in the global list of codecs consulted by dcmdata whenever conversion to/from compressed transfer syntaxes is requested. | |
| static OFCondition | deregisterCodec (const DcmCodec *aCodec) |
| deregisters a codec and it's parameter objects from the global list. | |
| static OFCondition | updateCodecParameter (const DcmCodec *aCodec, const DcmCodecParameter *aCodecParameter) |
| updates the codec parameters object for a codec that has been registered before. | |
| static OFCondition | decode (const DcmXfer &fromType, const DcmRepresentationParameter *fromParam, DcmPixelSequence *fromPixSeq, DcmPolymorphOBOW &uncompressedPixelData, DcmStack &pixelStack) |
| looks for a codec that is able to decode from the given transfer syntax and calls the decode() method of the codec. | |
| static OFCondition | encode (const E_TransferSyntax fromRepType, const Uint16 *pixelData, const Uint32 length, const E_TransferSyntax toRepType, const DcmRepresentationParameter *toRepParam, DcmPixelSequence *&pixSeq, DcmStack &pixelStack) |
| looks for a codec that is able to encode from the given transfer syntax and calls the encode() method of the codec. | |
| static OFCondition | encode (const E_TransferSyntax fromRepType, const DcmRepresentationParameter *fromParam, DcmPixelSequence *fromPixSeq, const E_TransferSyntax toRepType, const DcmRepresentationParameter *toRepParam, DcmPixelSequence *&toPixSeq, DcmStack &pixelStack) |
| looks for a codec that is able to transcode (re-compresses) from the given transfer syntax to the given transfer syntax and calls the encode() method of the codec. | |
| static OFBool | canChangeCoding (const E_TransferSyntax fromRepType, const E_TransferSyntax toRepType) |
| looks for a codec that claims to be able to convert between the given transfer syntaxes. | |
Private Member Functions | |
| DcmCodecList (const DcmCodec *aCodec, const DcmRepresentationParameter *aDefaultRepParam, const DcmCodecParameter *aCodecParameter) | |
| constructor | |
| DcmCodecList (const DcmCodecList &) | |
| private undefined copy constructor | |
| DcmCodecList & | operator= (const DcmCodecList &) |
| private undefined copy assignment operator | |
Private Attributes | |
| const DcmCodec * | codec |
| pointer to codec object | |
| const DcmRepresentationParameter * | defaultRepParam |
| pointer to default representation parameter | |
| const DcmCodecParameter * | codecParameter |
| pointer to codec parameter set | |
Static Private Attributes | |
| static OFList< DcmCodecList * > | registeredCodecs |
| singleton list of registered codecs | |
Friends | |
| class | DcmCodecListDummyFriend |
All operations on the list are protected by a read/write lock and, therefore, are safe for multi-thread applications.
Definition at line 236 of file dccodec.h.
| DcmCodecList::DcmCodecList | ( | const DcmCodec * | aCodec, | |
| const DcmRepresentationParameter * | aDefaultRepParam, | |||
| const DcmCodecParameter * | aCodecParameter | |||
| ) | [private] |
constructor
| aCodec | pointer to codec object. | |
| aDefaultRepParam | default representation parameter. | |
| aCodecParameter | codec parameter. |
| static OFCondition DcmCodecList::registerCodec | ( | const DcmCodec * | aCodec, | |
| const DcmRepresentationParameter * | aDefaultRepParam, | |||
| const DcmCodecParameter * | aCodecParameter | |||
| ) | [static] |
registers a codec object in the global list of codecs consulted by dcmdata whenever conversion to/from compressed transfer syntaxes is requested.
This function must not be called before main() is started, e.g. from a constructor of a global object. This call is safe in multi-thread operations.
| aCodec | pointer to codec object. Must remain unmodified and valid until the codec has been deregistered. | |
| aDefaultRepParam | default representation parameter. Must remain unmodified and valid until the codec has been deregistered. | |
| aCodecParameter | codec parameter. Must remain unmodified and valid until the codec has been deregistered or the parameter has been replaced by a call to updateCodecParameter() |
| static OFCondition DcmCodecList::deregisterCodec | ( | const DcmCodec * | aCodec | ) | [static] |
deregisters a codec and it's parameter objects from the global list.
This call is safe in multi-thread operations.
| aCodec | pointer to registered codec |
| static OFCondition DcmCodecList::updateCodecParameter | ( | const DcmCodec * | aCodec, | |
| const DcmCodecParameter * | aCodecParameter | |||
| ) | [static] |
updates the codec parameters object for a codec that has been registered before.
This call is safe in multi-thread operations.
| aCodec | pointer to codec object that has been registered before | |
| aCodecParameter | codec parameter. Must remain unmodified and valid until the codec has been deregistered or the parameter has been replaced by another call to updateCodecParameter() |
| static OFCondition DcmCodecList::decode | ( | const DcmXfer & | fromType, | |
| const DcmRepresentationParameter * | fromParam, | |||
| DcmPixelSequence * | fromPixSeq, | |||
| DcmPolymorphOBOW & | uncompressedPixelData, | |||
| DcmStack & | pixelStack | |||
| ) | [static] |
looks for a codec that is able to decode from the given transfer syntax and calls the decode() method of the codec.
A read lock on the list of codecs is acquired until this method returns.
| fromType | transfer syntax to decode from | |
| fromParam | representation parameter of current compressed representation, may be NULL. | |
| fromPixSeq | compressed pixel sequence | |
| uncompressedPixelData | uncompressed pixel data stored in this element | |
| pixelStack | stack pointing to the location of the pixel data element in the current dataset. |
| static OFCondition DcmCodecList::encode | ( | const E_TransferSyntax | fromRepType, | |
| const Uint16 * | pixelData, | |||
| const Uint32 | length, | |||
| const E_TransferSyntax | toRepType, | |||
| const DcmRepresentationParameter * | toRepParam, | |||
| DcmPixelSequence *& | pixSeq, | |||
| DcmStack & | pixelStack | |||
| ) | [static] |
looks for a codec that is able to encode from the given transfer syntax and calls the encode() method of the codec.
A read lock on the list of codecs is acquired until this method returns.
| fromRepType | transfer syntax to encode from | |
| pixelData | pointer to the uncompressed image data in OW format and local byte order | |
| length | of the pixel data field in bytes | |
| toRepType | transfer syntax to compress to | |
| 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. | |
| pixelStack | stack pointing to the location of the pixel data element in the current dataset. |
| static OFCondition DcmCodecList::encode | ( | const E_TransferSyntax | fromRepType, | |
| const DcmRepresentationParameter * | fromParam, | |||
| DcmPixelSequence * | fromPixSeq, | |||
| const E_TransferSyntax | toRepType, | |||
| const DcmRepresentationParameter * | toRepParam, | |||
| DcmPixelSequence *& | toPixSeq, | |||
| DcmStack & | pixelStack | |||
| ) | [static] |
looks for a codec that is able to transcode (re-compresses) from the given transfer syntax to the given transfer syntax and calls the encode() method of the codec.
A read lock on the list of codecs is acquired until this method returns.
| fromRepType | current transfer syntax of the compressed image | |
| fromParam | current representation parameter of compressed data, may be NULL | |
| fromPixSeq | compressed pixel sequence | |
| toRepType | transfer syntax to compress to | |
| 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. | |
| pixelStack | stack pointing to the location of the pixel data element in the current dataset. |
| static OFBool DcmCodecList::canChangeCoding | ( | const E_TransferSyntax | fromRepType, | |
| const E_TransferSyntax | toRepType | |||
| ) | [static] |
looks for a codec that claims to be able to convert between the given transfer syntaxes.
A read lock on the list of codecs is acquired until this method returns.
| fromRepType | current transfer syntax | |
| toRepType | desired new transfer syntax |