Mercurial > hg > orthanc
comparison Core/DicomParsing/ParsedDicomFile.cpp @ 3881:f23ab7829a8d transcoding
reorganization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 05 May 2020 10:35:39 +0200 |
parents | ba53d51ffa9a |
children | 795c9ca5eb91 |
comparison
equal
deleted
inserted
replaced
3880:cdd0cb5ec4e4 | 3881:f23ab7829a8d |
---|---|
1623 } | 1623 } |
1624 | 1624 |
1625 | 1625 |
1626 bool ParsedDicomFile::LookupTransferSyntax(std::string& result) | 1626 bool ParsedDicomFile::LookupTransferSyntax(std::string& result) |
1627 { | 1627 { |
1628 return FromDcmtkBridge::LookupTransferSyntax(result, *pimpl_->file_); | 1628 // TODO - Shouldn't "dataset.getOriginalXfer()" be used instead of |
1629 // using the meta header? | |
1630 const char* value = NULL; | |
1631 | |
1632 assert(pimpl_->file_ != NULL); | |
1633 if (pimpl_->file_->getMetaInfo() != NULL && | |
1634 pimpl_->file_->getMetaInfo()->findAndGetString(DCM_TransferSyntaxUID, value).good() && | |
1635 value != NULL) | |
1636 { | |
1637 result.assign(value); | |
1638 return true; | |
1639 } | |
1640 else | |
1641 { | |
1642 return false; | |
1643 } | |
1629 } | 1644 } |
1630 | 1645 |
1631 | 1646 |
1632 bool ParsedDicomFile::LookupPhotometricInterpretation(PhotometricInterpretation& result) const | 1647 bool ParsedDicomFile::LookupPhotometricInterpretation(PhotometricInterpretation& result) const |
1633 { | 1648 { |