changeset 3902:7459fcb1bdf7 transcoding

transcoding to 1.2.840.10008.1.2.4.57
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 07 May 2020 15:29:39 +0200
parents 603a7b86fa5f
children d1273d7cc200
files Core/DicomParsing/DcmtkTranscoder.cpp
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Core/DicomParsing/DcmtkTranscoder.cpp	Thu May 07 14:52:53 2020 +0200
+++ b/Core/DicomParsing/DcmtkTranscoder.cpp	Thu May 07 15:29:39 2020 +0200
@@ -243,6 +243,20 @@
 #endif
       
 #if ORTHANC_ENABLE_DCMTK_JPEG == 1
+    if (allowedSyntaxes.find(DicomTransferSyntax_JPEGProcess14) != allowedSyntaxes.end())
+    {
+      // Check out "dcmjpeg/apps/dcmcjpeg.cc"
+      DJ_RPLossless parameters(6 /* opt_selection_value */,
+                               0 /* opt_point_transform */);
+      if (FromDcmtkBridge::Transcode(dicom, DicomTransferSyntax_JPEGProcess14, &parameters))
+      {
+        CheckSopInstanceUid(dicom, sourceSopInstanceUid, true);
+        return true;
+      }
+    }
+#endif
+      
+#if ORTHANC_ENABLE_DCMTK_JPEG == 1
     if (allowedSyntaxes.find(DicomTransferSyntax_JPEGProcess14SV1) != allowedSyntaxes.end())
     {
       // Check out "dcmjpeg/apps/dcmcjpeg.cc"