Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Images/PamReader.cpp @ 4201:2d5209153b32
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 17 Sep 2020 08:18:28 +0200 |
parents | bf7b9edf6b81 |
children | 9279de56a405 |
comparison
equal
deleted
inserted
replaced
4200:7112a8af0b63 | 4201:2d5209153b32 |
---|---|
178 const unsigned int maxValue = LookupIntegerParameter(parameters, "MAXVAL"); | 178 const unsigned int maxValue = LookupIntegerParameter(parameters, "MAXVAL"); |
179 const std::string tupleType = LookupStringParameter(parameters, "TUPLTYPE"); | 179 const std::string tupleType = LookupStringParameter(parameters, "TUPLTYPE"); |
180 | 180 |
181 unsigned int bytesPerChannel; | 181 unsigned int bytesPerChannel; |
182 PixelFormat format; | 182 PixelFormat format; |
183 GetPixelFormat(format, bytesPerChannel, maxValue, channelCount, tupleType.c_str()); | 183 GetPixelFormat(format, bytesPerChannel, maxValue, channelCount, tupleType); |
184 | 184 |
185 unsigned int pitch = width * channelCount * bytesPerChannel; | 185 unsigned int pitch = width * channelCount * bytesPerChannel; |
186 | 186 |
187 if (content_.size() != header.size() + headerDelimiter.size() + pitch * height) | 187 if (content_.size() != header.size() + headerDelimiter.size() + pitch * height) |
188 { | 188 { |