changeset 3981:31252a887f0b

info log about dcmtk transcoding
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 26 May 2020 12:40:47 +0200
parents e42f5445d20d
children adc6f1fa7417 7cd0fe733822
files Core/DicomParsing/DcmtkTranscoder.cpp
diffstat 1 files changed, 22 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Core/DicomParsing/DcmtkTranscoder.cpp	Tue May 26 09:04:00 2020 +0200
+++ b/Core/DicomParsing/DcmtkTranscoder.cpp	Tue May 26 12:40:47 2020 +0200
@@ -284,6 +284,28 @@
       return false;
     }
 
+    {
+      std::string s;
+      for (std::set<DicomTransferSyntax>::const_iterator
+             it = allowedSyntaxes.begin(); it != allowedSyntaxes.end(); ++it)
+      {
+        if (!s.empty())
+        {
+          s += ", ";
+        }
+
+        s += GetTransferSyntaxUid(*it);
+      }
+
+      if (s.empty())
+      {
+        s = "<none>";
+      }
+      
+      LOG(INFO) << "DCMTK transcoding from " << GetTransferSyntaxUid(sourceSyntax)
+                << " to one of: " << s;
+    }
+
 #if !defined(NDEBUG)
     const std::string sourceSopInstanceUid = GetSopInstanceUid(source.GetParsed());
 #endif