Mercurial > hg > orthanc
comparison Plugins/Engine/OrthancPlugins.cpp @ 3944:aae045f802f4 transcoding
preparing simplified interface for IDicomTranscoder
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 19 May 2020 10:17:06 +0200 |
parents | e6606d3ec892 |
children | 0b3256c3ee14 |
comparison
equal
deleted
inserted
replaced
3943:b26d25d3c1c7 | 3944:aae045f802f4 |
---|---|
5210 } | 5210 } |
5211 } | 5211 } |
5212 }; | 5212 }; |
5213 | 5213 |
5214 | 5214 |
5215 bool OrthancPlugins::Transcode(std::string& target, | 5215 bool OrthancPlugins::TranscodeBuffer(std::string& target, |
5216 bool& hasSopInstanceUidChanged /* out */, | 5216 bool& hasSopInstanceUidChanged /* out */, |
5217 const void* buffer, | 5217 const void* buffer, |
5218 size_t size, | 5218 size_t size, |
5219 const std::set<DicomTransferSyntax>& allowedSyntaxes, | 5219 const std::set<DicomTransferSyntax>& allowedSyntaxes, |
5220 bool allowNewSopInstanceUid) | 5220 bool allowNewSopInstanceUid) |
5221 { | 5221 { |
5222 boost::shared_lock<boost::shared_mutex> lock(pimpl_->decoderTranscoderMutex_); | 5222 boost::shared_lock<boost::shared_mutex> lock(pimpl_->decoderTranscoderMutex_); |
5223 | 5223 |
5224 if (pimpl_->transcoderCallbacks_.empty()) | 5224 if (pimpl_->transcoderCallbacks_.empty()) |
5225 { | 5225 { |