comparison OrthancServer/OrthancInitialization.cpp @ 1927:b60f27664b8f

simplification in FromDcmtkBridge
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Mar 2016 13:31:56 +0100
parents b1291df2f780
children 84c7eaeb5244
comparison
equal deleted inserted replaced
1926:2a129de4b5e2 1927:b60f27664b8f
67 #if ORTHANC_JPEG_LOSSLESS_ENABLED == 1 67 #if ORTHANC_JPEG_LOSSLESS_ENABLED == 1
68 #include <dcmtk/dcmjpls/djdecode.h> 68 #include <dcmtk/dcmjpls/djdecode.h>
69 #endif 69 #endif
70 70
71 71
72 #include <dcmtk/dcmnet/dul.h>
73
74
75
72 namespace Orthanc 76 namespace Orthanc
73 { 77 {
74 static boost::recursive_mutex globalMutex_; 78 static boost::recursive_mutex globalMutex_;
75 static Json::Value configuration_; 79 static Json::Value configuration_;
76 static boost::filesystem::path defaultDirectory_; 80 static boost::filesystem::path defaultDirectory_;
425 LOG(WARNING) << "Registering JPEG codecs"; 429 LOG(WARNING) << "Registering JPEG codecs";
426 DJDecoderRegistration::registerCodecs(); 430 DJDecoderRegistration::registerCodecs();
427 #endif 431 #endif
428 432
429 fontRegistry_.AddFromResource(EmbeddedResources::FONT_UBUNTU_MONO_BOLD_16); 433 fontRegistry_.AddFromResource(EmbeddedResources::FONT_UBUNTU_MONO_BOLD_16);
434
435 /* Disable "gethostbyaddr" (which results in memory leaks) and use raw IP addresses */
436 dcmDisableGethostbyaddr.set(OFTrue);
430 } 437 }
431 438
432 439
433 440
434 void OrthancFinalize() 441 void OrthancFinalize()