Mercurial > hg > orthanc
comparison Core/DicomParsing/DcmtkTranscoder.cpp @ 3939:c205f670098e transcoding
new configuration options: BuiltinDecoderTranscoderOrder and IngestTranscoding
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 18 May 2020 17:15:16 +0200 |
parents | 54dbebbcc032 |
children | aae045f802f4 |
comparison
equal
deleted
inserted
replaced
3938:54dbebbcc032 | 3939:c205f670098e |
---|---|
118 void DcmtkTranscoder::SetLossyQuality(unsigned int quality) | 118 void DcmtkTranscoder::SetLossyQuality(unsigned int quality) |
119 { | 119 { |
120 if (quality <= 0 || | 120 if (quality <= 0 || |
121 quality > 100) | 121 quality > 100) |
122 { | 122 { |
123 throw OrthancException(ErrorCode_ParameterOutOfRange); | 123 throw OrthancException( |
124 ErrorCode_ParameterOutOfRange, | |
125 "The quality for lossy transcoding must be an integer between 1 and 100, received: " + | |
126 boost::lexical_cast<std::string>(quality)); | |
124 } | 127 } |
125 else | 128 else |
126 { | 129 { |
130 LOG(INFO) << "Quality for lossy transcoding using DCMTK is set to: " << quality; | |
127 lossyQuality_ = quality; | 131 lossyQuality_ = quality; |
128 } | 132 } |
129 } | 133 } |
130 | 134 |
131 | 135 |