* 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
{
}
...
}
When and how do the automatic detection start?