comparison OrthancFramework/Sources/DicomParsing/Internals/DicomImageDecoder.cpp @ 4184:dbd74fa2f446

Enable the access to raw frames in Philips ELSCINT1 proprietary compression
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 12 Sep 2020 16:03:48 +0200
parents 1a26daefc3fe
children 7112a8af0b63
comparison
equal deleted inserted replaced
4183:32cda90ccf09 4184:dbd74fa2f446
132 char* c; 132 char* c;
133 133
134 // Check whether the DICOM instance contains an image encoded with 134 // Check whether the DICOM instance contains an image encoded with
135 // the PMSCT_RLE1 scheme. 135 // the PMSCT_RLE1 scheme.
136 if (!dataset.findAndGetElement(ToDcmtkBridge::Convert(DICOM_TAG_COMPRESSION_TYPE), e).good() || 136 if (!dataset.findAndGetElement(ToDcmtkBridge::Convert(DICOM_TAG_COMPRESSION_TYPE), e).good() ||
137 !dataset.tagExistsWithValue(ToDcmtkBridge::Convert(DICOM_TAG_CONTENT)) || // New in Orthanc 1.7.4
137 e == NULL || 138 e == NULL ||
138 !e->isaString() || 139 !e->isaString() ||
139 !e->getString(c).good() || 140 !e->getString(c).good() ||
140 c == NULL || 141 c == NULL ||
141 strcmp("PMSCT_RLE1", c)) 142 strcmp("PMSCT_RLE1", c))