comparison Core/DicomParsing/MemoryBufferTranscoder.h @ 3906:f0dd5ded8927 transcoding

refactoring using IDicomTranscoder::TranscodedDicom
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 08 May 2020 11:16:16 +0200
parents c62f84c7eda9
children 1555feda39e2
comparison
equal deleted inserted replaced
3905:061f3d031b5d 3906:f0dd5ded8927
53 DcmtkTranscoder dcmtk_; 53 DcmtkTranscoder dcmtk_;
54 #endif 54 #endif
55 55
56 protected: 56 protected:
57 virtual bool Transcode(std::string& target, 57 virtual bool Transcode(std::string& target,
58 DicomTransferSyntax& sourceSyntax /* out */,
59 DicomTransferSyntax& targetSyntax /* out */,
58 bool& hasSopInstanceUidChanged /* out */, 60 bool& hasSopInstanceUidChanged /* out */,
59 const void* buffer, 61 const void* buffer,
60 size_t size, 62 size_t size,
61 const std::set<DicomTransferSyntax>& allowedSyntaxes, 63 const std::set<DicomTransferSyntax>& allowedSyntaxes,
62 bool allowNewSopInstanceUid) = 0; 64 bool allowNewSopInstanceUid) = 0;
94 96
95 virtual bool InplaceTranscode(bool& hasSopInstanceUidChanged /* out */, 97 virtual bool InplaceTranscode(bool& hasSopInstanceUidChanged /* out */,
96 DcmFileFormat& dicom, 98 DcmFileFormat& dicom,
97 const std::set<DicomTransferSyntax>& allowedSyntaxes, 99 const std::set<DicomTransferSyntax>& allowedSyntaxes,
98 bool allowNewSopInstanceUid) ORTHANC_OVERRIDE; 100 bool allowNewSopInstanceUid) ORTHANC_OVERRIDE;
101
102
103
104 virtual bool TranscodeParsedToBuffer(std::string& target /* out */,
105 DicomTransferSyntax& sourceSyntax /* out */,
106 DicomTransferSyntax& targetSyntax /* out */,
107 bool& hasSopInstanceUidChanged /* out */,
108 DcmFileFormat& dicom /* in, possibly modified */,
109 const std::set<DicomTransferSyntax>& allowedSyntaxes,
110 bool allowNewSopInstanceUid) ORTHANC_OVERRIDE;
111
112 virtual TranscodedDicom* TranscodeToParsed2(
113 DcmFileFormat& dicom /* in, possibly modified */,
114 const void* buffer /* in, same DICOM file as "dicom" */,
115 size_t size,
116 const std::set<DicomTransferSyntax>& allowedSyntaxes,
117 bool allowNewSopInstanceUid) ORTHANC_OVERRIDE;
99 }; 118 };
100 } 119 }