comparison ViewerPlugin/Plugin.cpp @ 193:e690c265b315

sync
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 30 Jun 2020 10:10:55 +0200
parents f299c191cd76
children e57e6ca5303d
comparison
equal deleted inserted replaced
192:f299c191cd76 193:e690c265b315
309 { 309 {
310 // We need the "/instances/.../frames/.../raw" URI that was introduced in Orthanc 1.1.0 310 // We need the "/instances/.../frames/.../raw" URI that was introduced in Orthanc 1.1.0
311 return -1; 311 return -1;
312 } 312 }
313 313
314 #if defined(ORTHANC_FRAMEWORK_VERSION_IS_ABOVE) // This indicates Orthanc framework >= 1.7.2
314 Orthanc::Logging::InitializePluginContext(context); 315 Orthanc::Logging::InitializePluginContext(context);
316 #else
317 Orthanc::Logging::Initialize(context);
318 #endif
315 319
316 // Limit the number of PNG transcoders to the number of available 320 // Limit the number of PNG transcoders to the number of available
317 // hardware threads (e.g. number of CPUs or cores or 321 // hardware threads (e.g. number of CPUs or cores or
318 // hyperthreading units) 322 // hyperthreading units)
319 unsigned int threads = Orthanc::SystemToolbox::GetHardwareConcurrency(); 323 unsigned int threads = Orthanc::SystemToolbox::GetHardwareConcurrency();