comparison Plugin/DecodedImageAdapter.h @ 304:d959cf2a8d5c

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 Feb 2022 08:02:06 +0100
parents fb7d62e3235e
children 0a1ad7492050
comparison
equal deleted inserted replaced
303:fb7d62e3235e 304:d959cf2a8d5c
23 #pragma once 23 #pragma once
24 24
25 #include "../Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h" 25 #include "../Resources/Orthanc/Plugins/OrthancPluginCppWrapper.h"
26 #include "Cache/ICacheFactory.h" 26 #include "Cache/ICacheFactory.h"
27 27
28 #include <Compatibility.h>
29
28 #include <stdint.h> 30 #include <stdint.h>
29 #include <json/value.h> 31 #include <json/value.h>
30 32
31 33
32 namespace OrthancPlugins 34 namespace OrthancPlugins
46 unsigned int& frameIndex, 48 unsigned int& frameIndex,
47 const std::string& uri); 49 const std::string& uri);
48 50
49 static bool GetCornerstoneMetadata(Json::Value& result, 51 static bool GetCornerstoneMetadata(Json::Value& result,
50 const Json::Value& tags, 52 const Json::Value& tags,
51 OrthancImage& image); 53 const OrthancImage& image);
52 54
53 static bool EncodeUsingDeflate(Json::Value& result, 55 static bool EncodeUsingDeflate(Json::Value& result,
54 OrthancImage& image); 56 const OrthancImage& image);
55 57
56 static bool EncodeUsingJpeg(Json::Value& result, 58 static bool EncodeUsingJpeg(Json::Value& result,
57 OrthancImage& image, 59 const OrthancImage& image,
58 uint8_t quality /* between 0 and 100 */); 60 uint8_t quality /* between 0 and 100 */);
59 61
60 OrthancPluginContext* context_; 62 OrthancPluginContext* context_;
61 63
62 public: 64 public:
64 context_(context) 66 context_(context)
65 { 67 {
66 } 68 }
67 69
68 virtual bool Create(std::string& content, 70 virtual bool Create(std::string& content,
69 const std::string& uri); 71 const std::string& uri) ORTHANC_OVERRIDE;
70 }; 72 };
71 } 73 }