comparison Core/DicomParsing/DcmtkTranscoder.cpp @ 3981:31252a887f0b

info log about dcmtk transcoding
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 26 May 2020 12:40:47 +0200
parents 5fe8c6d3212e
children
comparison
equal deleted inserted replaced
3980:e42f5445d20d 3981:31252a887f0b
282 { 282 {
283 LOG(ERROR) << "Unsupport transfer syntax for transcoding"; 283 LOG(ERROR) << "Unsupport transfer syntax for transcoding";
284 return false; 284 return false;
285 } 285 }
286 286
287 {
288 std::string s;
289 for (std::set<DicomTransferSyntax>::const_iterator
290 it = allowedSyntaxes.begin(); it != allowedSyntaxes.end(); ++it)
291 {
292 if (!s.empty())
293 {
294 s += ", ";
295 }
296
297 s += GetTransferSyntaxUid(*it);
298 }
299
300 if (s.empty())
301 {
302 s = "<none>";
303 }
304
305 LOG(INFO) << "DCMTK transcoding from " << GetTransferSyntaxUid(sourceSyntax)
306 << " to one of: " << s;
307 }
308
287 #if !defined(NDEBUG) 309 #if !defined(NDEBUG)
288 const std::string sourceSopInstanceUid = GetSopInstanceUid(source.GetParsed()); 310 const std::string sourceSopInstanceUid = GetSopInstanceUid(source.GetParsed());
289 #endif 311 #endif
290 312
291 DicomTransferSyntax targetSyntax; 313 DicomTransferSyntax targetSyntax;