comparison Plugin/DecodedImageAdapter.h @ 230:cce89307af28

replacing GdcmDecoder/OrthancImageWrapper.h by OrthancPluginCppWrapper.h
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 11 May 2020 12:06:33 +0200
parents aee499712ac4
children 4e9d30c19b4b
comparison
equal deleted inserted replaced
229:967ae255a58f 230:cce89307af28
25 25
26 #include <orthanc/OrthancCPlugin.h> 26 #include <orthanc/OrthancCPlugin.h>
27 #include <stdint.h> 27 #include <stdint.h>
28 #include <json/value.h> 28 #include <json/value.h>
29 29
30 #include <Plugins/Samples/GdcmDecoder/OrthancImageWrapper.h> 30 #include <Plugins/Samples/Common/OrthancPluginCppWrapper.h>
31 31
32 32
33 namespace OrthancPlugins 33 namespace OrthancPlugins
34 { 34 {
35 class DecodedImageAdapter : public ICacheFactory 35 class DecodedImageAdapter : public ICacheFactory
47 unsigned int& frameIndex, 47 unsigned int& frameIndex,
48 const std::string& uri); 48 const std::string& uri);
49 49
50 static bool GetCornerstoneMetadata(Json::Value& result, 50 static bool GetCornerstoneMetadata(Json::Value& result,
51 const Json::Value& tags, 51 const Json::Value& tags,
52 OrthancImageWrapper& image); 52 OrthancImage& image);
53 53
54 static bool EncodeUsingDeflate(Json::Value& result, 54 static bool EncodeUsingDeflate(Json::Value& result,
55 OrthancImageWrapper& image); 55 OrthancImage& image);
56 56
57 static bool EncodeUsingJpeg(Json::Value& result, 57 static bool EncodeUsingJpeg(Json::Value& result,
58 OrthancImageWrapper& image, 58 OrthancImage& image,
59 uint8_t quality /* between 0 and 100 */); 59 uint8_t quality /* between 0 and 100 */);
60 60
61 OrthancPluginContext* context_; 61 OrthancPluginContext* context_;
62 62
63 public: 63 public: