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