changeset 5306:155637655710

Disabled automatic conversion from YBR to RGB when transcoding JPEG to RAW transfer-syntax
author Alain Mazy <am@osimis.io>
date Mon, 05 Jun 2023 10:02:27 +0200
parents 50e73f7db661
children fb637cc110b6
files NEWS OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/NEWS	Thu Jun 01 15:21:05 2023 +0200
+++ b/NEWS	Mon Jun 05 10:02:27 2023 +0200
@@ -14,6 +14,8 @@
   (https://discourse.orthanc-server.org/t/issue-with-deleting-incoming-dicoms-when-maximumstoragesize-is-reached/3510)
 * When deleting a resource, its parents LastUpdate metadata are now updated.
 * Reduced the memory usage when downloading archives when "ZipLoaderThreads" > 0.
+* Disabled automatic conversion from YBR to RGB when transcoding JPEG to RAW transfer-syntax
+  (https://discourse.orthanc-server.org/t/orthanc-convert-ybr-to-rgb-but-does-not-change-metadata/3533)
 
 
 Version 1.12.0 (2023-04-14)
--- a/OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp	Thu Jun 01 15:21:05 2023 +0200
+++ b/OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp	Mon Jun 05 10:02:27 2023 +0200
@@ -2460,7 +2460,7 @@
 
 #if ORTHANC_ENABLE_DCMTK_JPEG == 1
     CLOG(INFO, DICOM) << "Registering JPEG codecs in DCMTK";
-    DJDecoderRegistration::registerCodecs(); 
+    DJDecoderRegistration::registerCodecs(EDC_never);  // disable automatic conversion from YBR to RGB when transcoding JPEG to RAW transfer-syntax (https://discourse.orthanc-server.org/t/orthanc-convert-ybr-to-rgb-but-does-not-change-metadata/3533)
 # if ORTHANC_ENABLE_DCMTK_TRANSCODING == 1
     DJEncoderRegistration::registerCodecs();
 # endif