Mercurial > hg > orthanc-webviewer
diff Plugin/DecodedImageAdapter.cpp @ 304:d959cf2a8d5c
cppcheck
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Feb 2022 08:02:06 +0100 |
parents | fb7d62e3235e |
children | 0a1ad7492050 |
line wrap: on
line diff
--- a/Plugin/DecodedImageAdapter.cpp Mon Feb 21 17:16:10 2022 +0100 +++ b/Plugin/DecodedImageAdapter.cpp Tue Feb 22 08:02:06 2022 +0100 @@ -186,7 +186,7 @@ bool DecodedImageAdapter::GetCornerstoneMetadata(Json::Value& result, const Json::Value& tags, - OrthancImage& image) + const OrthancImage& image) { float windowCenter, windowWidth; @@ -307,7 +307,7 @@ bool DecodedImageAdapter::EncodeUsingDeflate(Json::Value& result, - OrthancImage& image) + const OrthancImage& image) { Orthanc::ImageAccessor accessor; accessor.AssignReadOnly(OrthancPlugins::Convert(image.GetPixelFormat()), image.GetWidth(), @@ -421,7 +421,7 @@ bool DecodedImageAdapter::EncodeUsingJpeg(Json::Value& result, - OrthancImage& image, + const OrthancImage& image, uint8_t quality /* between 0 and 100 */) { Orthanc::ImageAccessor accessor;