Mercurial > hg > orthanc
comparison Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 3915:7e33516965f8 transcoding
merging sample GDCM decoder and Orthanc Web viewer
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 11 May 2020 15:13:16 +0200 |
parents | 4edeef72de75 |
children | 0e3849268a55 |
comparison
equal
deleted
inserted
replaced
3914:e14b5a7a0f75 | 3915:7e33516965f8 |
---|---|
1043 CheckImageAvailable(); | 1043 CheckImageAvailable(); |
1044 return OrthancPluginGetImagePitch(GetGlobalContext(), image_); | 1044 return OrthancPluginGetImagePitch(GetGlobalContext(), image_); |
1045 } | 1045 } |
1046 | 1046 |
1047 | 1047 |
1048 const void* OrthancImage::GetBuffer() const | 1048 void* OrthancImage::GetBuffer() const |
1049 { | 1049 { |
1050 CheckImageAvailable(); | 1050 CheckImageAvailable(); |
1051 return OrthancPluginGetImageBuffer(GetGlobalContext(), image_); | 1051 return OrthancPluginGetImageBuffer(GetGlobalContext(), image_); |
1052 } | 1052 } |
1053 | 1053 |
1091 CheckImageAvailable(); | 1091 CheckImageAvailable(); |
1092 OrthancPluginCompressAndAnswerJpegImage(GetGlobalContext(), output, GetPixelFormat(), | 1092 OrthancPluginCompressAndAnswerJpegImage(GetGlobalContext(), output, GetPixelFormat(), |
1093 GetWidth(), GetHeight(), GetPitch(), GetBuffer(), quality); | 1093 GetWidth(), GetHeight(), GetPitch(), GetBuffer(), quality); |
1094 } | 1094 } |
1095 | 1095 |
1096 | |
1097 OrthancPluginImage* OrthancImage::Release() | |
1098 { | |
1099 CheckImageAvailable(); | |
1100 OrthancPluginImage* tmp = image_; | |
1101 image_ = NULL; | |
1102 return tmp; | |
1103 } | |
1096 | 1104 |
1097 | 1105 |
1098 #if HAS_ORTHANC_PLUGIN_FIND_MATCHER == 1 | 1106 #if HAS_ORTHANC_PLUGIN_FIND_MATCHER == 1 |
1099 FindMatcher::FindMatcher(const OrthancPluginWorklistQuery* worklist) : | 1107 FindMatcher::FindMatcher(const OrthancPluginWorklistQuery* worklist) : |
1100 matcher_(NULL), | 1108 matcher_(NULL), |