comparison OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp @ 4334:b2366bc023f8

Fix access to videos as a single raw frame
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Nov 2020 16:33:40 +0100
parents 91554aecff9a
children d9473bd5ed43
comparison
equal deleted inserted replaced
4333:a85e74235a78 4334:b2366bc023f8
2616 { 2616 {
2617 if (dicom.getDataset() == NULL) 2617 if (dicom.getDataset() == NULL)
2618 { 2618 {
2619 throw OrthancException(ErrorCode_InternalError); 2619 throw OrthancException(ErrorCode_InternalError);
2620 } 2620 }
2621 2621 else
2622 DcmDataset& dataset = *dicom.getDataset(); 2622 {
2623 2623 return LookupOrthancTransferSyntax(target, *dicom.getDataset());
2624 }
2625 }
2626
2627
2628 bool FromDcmtkBridge::LookupOrthancTransferSyntax(DicomTransferSyntax& target,
2629 DcmDataset& dataset)
2630 {
2624 E_TransferSyntax xfer = dataset.getCurrentXfer(); 2631 E_TransferSyntax xfer = dataset.getCurrentXfer();
2625 if (xfer == EXS_Unknown) 2632 if (xfer == EXS_Unknown)
2626 { 2633 {
2627 dataset.updateOriginalXfer(); 2634 dataset.updateOriginalXfer();
2628 xfer = dataset.getOriginalXfer(); 2635 xfer = dataset.getOriginalXfer();