Mercurial > hg > orthanc
comparison Plugins/Samples/GdcmDecoder/GdcmDecoderCache.cpp @ 1836:2faa2abbf311
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 27 Nov 2015 17:40:25 +0100 |
parents | b1a6f49b21dd |
children | fbc5522023aa |
comparison
equal
deleted
inserted
replaced
1835:323dd6402933 | 1836:2faa2abbf311 |
---|---|
81 } | 81 } |
82 } | 82 } |
83 | 83 |
84 // This is not the same image | 84 // This is not the same image |
85 std::auto_ptr<GdcmImageDecoder> decoder(new GdcmImageDecoder(dicom, size)); | 85 std::auto_ptr<GdcmImageDecoder> decoder(new GdcmImageDecoder(dicom, size)); |
86 OrthancImageWrapper image(context, decoder->Decode(context, frameIndex)); | 86 OrthancImageWrapper image(context, *decoder, frameIndex); |
87 | 87 |
88 { | 88 { |
89 // Cache the newly created decoder for further use | 89 // Cache the newly created decoder for further use |
90 boost::mutex::scoped_lock lock(mutex_); | 90 boost::mutex::scoped_lock lock(mutex_); |
91 decoder_ = decoder; | 91 decoder_ = decoder; |