Mercurial > hg > orthanc-wsi
comparison ViewerPlugin/Plugin.cpp @ 151:fb8d4cd2f618
fix applications
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 17 Jul 2018 10:06:39 +0200 |
parents | 442102e14933 |
children | 32a94bbb7d05 |
comparison
equal
deleted
inserted
replaced
150:442102e14933 | 151:fb8d4cd2f618 |
---|---|
21 | 21 |
22 #include "../Framework/PrecompiledHeadersWSI.h" | 22 #include "../Framework/PrecompiledHeadersWSI.h" |
23 | 23 |
24 #include "DicomPyramidCache.h" | 24 #include "DicomPyramidCache.h" |
25 #include "../Framework/Jpeg2000Reader.h" | 25 #include "../Framework/Jpeg2000Reader.h" |
26 #include "../Framework/Semaphore.h" | 26 #include "../Framework/MultiThreading/Semaphore.h" |
27 | 27 |
28 #include <Core/Logging.h> | |
28 #include <Core/Images/ImageProcessing.h> | 29 #include <Core/Images/ImageProcessing.h> |
29 #include <Core/Images/PngWriter.h> | 30 #include <Core/Images/PngWriter.h> |
30 #include <Core/OrthancException.h> | 31 #include <Core/OrthancException.h> |
31 #include <Plugins/Samples/Common/OrthancPluginCppWrapper.h> | 32 #include <Plugins/Samples/Common/OrthancPluginCppWrapper.h> |
32 #include <Plugins/Samples/Common/OrthancPluginConnection.h> | 33 #include <Plugins/Samples/Common/OrthancPluginConnection.h> |
307 { | 308 { |
308 // We need the "/instances/.../frames/.../raw" URI that was introduced in Orthanc 1.1.0 | 309 // We need the "/instances/.../frames/.../raw" URI that was introduced in Orthanc 1.1.0 |
309 return -1; | 310 return -1; |
310 } | 311 } |
311 | 312 |
313 Orthanc::Logging::Initialize(context); | |
314 | |
312 // Limit the number of PNG transcoders to the number of available | 315 // Limit the number of PNG transcoders to the number of available |
313 // hardware threads (e.g. number of CPUs or cores or | 316 // hardware threads (e.g. number of CPUs or cores or |
314 // hyperthreading units) | 317 // hyperthreading units) |
315 unsigned int threads = boost::thread::hardware_concurrency(); | 318 unsigned int threads = boost::thread::hardware_concurrency(); |
316 | 319 |