About dcmAutoDetectDatasetXfer

All other questions regarding DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
kamil
Posts: 63
Joined: Fri, 2009-04-17, 09:18

About dcmAutoDetectDatasetXfer

#1 Post by kamil »

/** This flag defines whether the transfer syntax for uncompressed datasets
* is detected automatically. The automatic detection has been introduced
* since there are (incorrectly encoded) DICOM dataset stored with a
* different transfer syntax than specified in the meta header.
*/
extern OFGlobal<OFBool> dcmAutoDetectDatasetXfer; /* default OFFalse */

Code: Select all

OFCondition DcmDataset::read(DcmInputStream &inStream,
                             const E_TransferSyntax xfer,
                             const E_GrpLenEncoding glenc,
                             const Uint32 maxReadLength)
{
    ...

    if (dcmAutoDetectDatasetXfer.get())
    {
    ...
    }
    else    //default behaviour
   {
   }

    ...

}
It is in Dataset way to read this stream, why it has relationship with meta head when the automatic detection occured?
When and how do the automatic detection start?

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest