# HG changeset patch # User Sebastien Jodogne # Date 1588932604 -7200 # Node ID 0ef7f4528be23223cd185d3cc053ef4c05ea9ee7 # Parent 1f71c2f20e165d4fbf384f87477920ecc95fac93 renamed option TranscodingEnabled to TranscodeDicomProtocol diff -r 1f71c2f20e16 -r 0ef7f4528be2 OrthancServer/ServerContext.cpp --- a/OrthancServer/ServerContext.cpp Fri May 08 12:03:26 2020 +0200 +++ b/OrthancServer/ServerContext.cpp Fri May 08 12:10:04 2020 +0200 @@ -268,7 +268,7 @@ storageCommitmentReports_.reset(new StorageCommitmentReports(lock.GetConfiguration().GetUnsignedIntegerParameter("StorageCommitmentReportsSize", 100))); // New option in Orthanc 1.7.0 - transcodingEnabled_ = lock.GetConfiguration().GetBooleanParameter("TranscodingEnabled", true); + transcodeDicomProtocol_ = lock.GetConfiguration().GetBooleanParameter("TranscodeDicomProtocol", true); } jobsEngine_.SetThreadSleep(unitTesting ? 20 : 200); @@ -1125,7 +1125,7 @@ { const void* data = dicom.empty() ? NULL : dicom.c_str(); - if (!transcodingEnabled_ || + if (!transcodeDicomProtocol_ || !connection.GetParameters().GetRemoteModality().IsTranscodingAllowed()) { connection.Store(sopClassUid, sopInstanceUid, data, dicom.size(), diff -r 1f71c2f20e16 -r 0ef7f4528be2 OrthancServer/ServerContext.h --- a/OrthancServer/ServerContext.h Fri May 08 12:03:26 2020 +0200 +++ b/OrthancServer/ServerContext.h Fri May 08 12:10:04 2020 +0200 @@ -226,7 +226,7 @@ std::unique_ptr storageCommitmentReports_; - bool transcodingEnabled_; + bool transcodeDicomProtocol_; std::unique_ptr dcmtkTranscoder_; public: @@ -464,7 +464,7 @@ uint16_t moveOriginatorId); // This method can be used even if the global option - // "TranscodingEnabled" is set to "false" + // "TranscodeDicomProtocol" is set to "false" bool Transcode(std::string& target /* out */, DicomTransferSyntax& sourceSyntax /* out */, bool& hasSopInstanceUidChanged /* out */, diff -r 1f71c2f20e16 -r 0ef7f4528be2 Resources/Configuration.json --- a/Resources/Configuration.json Fri May 08 12:03:26 2020 +0200 +++ b/Resources/Configuration.json Fri May 08 12:10:04 2020 +0200 @@ -544,7 +544,7 @@ "StorageCommitmentReportsSize" : 100, // Whether Orthanc transcodes DICOM files to an uncompressed - // transfer syntax, if remote modalities do not support compressed - // transfer syntaxes (new in Orthanc 1.7.0). - "TranscodingEnabled" : true + // transfer syntax over the DICOM protocol, if the remote modality + // does not support compressed transfer syntaxes (new in Orthanc 1.7.0). + "TranscodeDicomProtocol" : true }