20794da
From e9f8401ffc1b9cf89b189c6dfdbeb901e85688fc Mon Sep 17 00:00:00 2001
20794da
From: "Ankur Sinha (Ankur Sinha Gmail)" <sanjay.ankur@gmail.com>
20794da
Date: Wed, 1 Mar 2023 23:00:38 -0600
373529f
Subject: [PATCH 15/18] Update colorTransformation for CharLS 2
20794da
20794da
Co-authored-by: Alessio <alciregi@fedoraproject.org>
20794da
---
20794da
 dcmjpls/libsrc/djcodece.cc | 4 ++--
20794da
 1 file changed, 2 insertions(+), 2 deletions(-)
20794da
Alessio ef8ffeb
diff --git a/dcmjpls/libsrc/djcodece.cc b/dcmjpls/libsrc/djcodece.cc
20794da
index 62792c925..ff95f464b 100644
Alessio ef8ffeb
--- a/dcmjpls/libsrc/djcodece.cc
Alessio ef8ffeb
+++ b/dcmjpls/libsrc/djcodece.cc
20794da
@@ -658,7 +658,7 @@ OFCondition DJLSEncoderBase::compressRawFrame(
Alessio ef8ffeb
   jls_params.allowedLossyError = 0; // must be zero for raw mode
Alessio ef8ffeb
   jls_params.outputBgr = false;
Alessio ef8ffeb
   // No idea what this one does, but I don't think DICOM says anything about it
Alessio ef8ffeb
-  jls_params.colorTransformation = 0;
Alessio ef8ffeb
+  jls_params.colorTransformation = charls::ColorTransformation::None;
Alessio ef8ffeb
   // Unset: jls_params.jfif (thumbnail, dpi)
Alessio ef8ffeb
 
Alessio ef8ffeb
   // set parameters T1, T2, T3, MAXVAL and RESET.
20794da
@@ -1096,7 +1096,7 @@ OFCondition DJLSEncoderBase::compressCookedFrame(
Alessio ef8ffeb
   jls_params.outputBgr = false;
Alessio ef8ffeb
   jls_params.bitsPerSample = depth;
Alessio ef8ffeb
   // No idea what this one does, but I don't think DICOM says anything about it
Alessio ef8ffeb
-  jls_params.colorTransform = 0;
Alessio ef8ffeb
+  jls_params.colorTransformation = charls::ColorTransformation::None;
Alessio ef8ffeb
 
Alessio ef8ffeb
   // This was already checked for a sane value above
Alessio ef8ffeb
   jls_params.components = samplesPerPixel;
20794da
-- 
20794da
2.39.2
20794da