changeset 5314:0b8068aa7142

revert 5306:155637655710: re-enable automatic conversion from YBR to RGB
author Alain Mazy <am@osimis.io>
date Mon, 19 Jun 2023 19:20:31 +0200
parents b43a3f0b57b2
children 592507a8e227
files OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp TODO
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp	Fri Jun 16 09:27:17 2023 +0200
+++ b/OrthancFramework/Sources/DicomParsing/FromDcmtkBridge.cpp	Mon Jun 19 19:20:31 2023 +0200
@@ -2467,7 +2467,7 @@
 
 #if ORTHANC_ENABLE_DCMTK_JPEG == 1
     CLOG(INFO, DICOM) << "Registering JPEG codecs in DCMTK";
-    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)
+    DJDecoderRegistration::registerCodecs();
 # if ORTHANC_ENABLE_DCMTK_TRANSCODING == 1
     DJEncoderRegistration::registerCodecs();
 # endif
--- a/TODO	Fri Jun 16 09:27:17 2023 +0200
+++ b/TODO	Mon Jun 19 19:20:31 2023 +0200
@@ -120,6 +120,9 @@
 * Also implement a GET variant of /tools/create-archive + sibling routes
   in which resources & transcode options are provided as get arguments.
   https://groups.google.com/g/orthanc-users/c/PmaRZ609ztA/m/JdwXvIBKAQAJ
+* Allow skiping automatic conversion of color-space in transcoding/decoding.
+  The patch that was initialy provided was breaking the IngestTranscoding.
+  https://discourse.orthanc-server.org/t/orthanc-convert-ybr-to-rgb-but-does-not-change-metadata/3533/9
 
 
 ---------