comparison Plugins/Engine/OrthancPlugins.cpp @ 1840:859224214616

simplification of the sample plugin
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 30 Nov 2015 10:34:04 +0100
parents 47d032c48818
children 697ae8d0e287
comparison
equal deleted inserted replaced
1839:7f68b04c79e8 1840:859224214616
2283 if (pimpl_->decodeImageCallback_(&pluginImage, s.c_str(), s.size(), frame) == OrthancPluginErrorCode_Success && 2283 if (pimpl_->decodeImageCallback_(&pluginImage, s.c_str(), s.size(), frame) == OrthancPluginErrorCode_Success &&
2284 pluginImage != NULL) 2284 pluginImage != NULL)
2285 { 2285 {
2286 return reinterpret_cast<ImageAccessor*>(pluginImage); 2286 return reinterpret_cast<ImageAccessor*>(pluginImage);
2287 } 2287 }
2288 else 2288
2289 { 2289 LOG(WARNING) << "The custom image decoder cannot handle an image, trying with the built-in decoder";
2290 LOG(WARNING) << "The custom image decoder cannot handle an image, trying with the built-in decoder";
2291 }
2292 } 2290 }
2293 } 2291 }
2294 2292
2295 DicomImageDecoder defaultDecoder; 2293 DicomImageDecoder defaultDecoder;
2296 return defaultDecoder.Decode(dicom, frame); 2294 return defaultDecoder.Decode(dicom, frame);