comparison Core/DicomParsing/MemoryBufferTranscoder.cpp @ 3909:6762a97deabc transcoding

removed useless abstraction IDicomTranscoder::TranscodeToBuffer()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 08 May 2020 11:40:12 +0200
parents 89ebb37cee6a
children 1f71c2f20e16
comparison
equal deleted inserted replaced
3908:89ebb37cee6a 3909:6762a97deabc
61 61
62 useDcmtk_ = used; 62 useDcmtk_ = used;
63 } 63 }
64 64
65 65
66 bool MemoryBufferTranscoder::TranscodeToBuffer(std::string& target,
67 bool& hasSopInstanceUidChanged,
68 const void* buffer,
69 size_t size,
70 const std::set<DicomTransferSyntax>& allowedSyntaxes,
71 bool allowNewSopInstanceUid)
72 {
73 #if ORTHANC_ENABLE_DCMTK_TRANSCODING == 1
74 if (useDcmtk_)
75 {
76 if (dcmtk_.TranscodeToBuffer(target, hasSopInstanceUidChanged, buffer,
77 size, allowedSyntaxes, allowNewSopInstanceUid))
78 {
79 return true;
80 }
81 }
82 #endif
83
84 DicomTransferSyntax sourceSyntax, targetSyntax;
85 return Transcode(target, sourceSyntax, targetSyntax, hasSopInstanceUidChanged, buffer, size,
86 allowedSyntaxes, allowNewSopInstanceUid);
87 }
88
89
90 bool MemoryBufferTranscoder::TranscodeParsedToBuffer( 66 bool MemoryBufferTranscoder::TranscodeParsedToBuffer(
91 std::string& target /* out */, 67 std::string& target /* out */,
92 DicomTransferSyntax& sourceSyntax /* out */, 68 DicomTransferSyntax& sourceSyntax /* out */,
93 DicomTransferSyntax& targetSyntax /* out */, 69 DicomTransferSyntax& targetSyntax /* out */,
94 bool& hasSopInstanceUidChanged /* out */, 70 bool& hasSopInstanceUidChanged /* out */,