comparison Core/DicomParsing/MemoryBufferTranscoder.h @ 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 b99acc213937
children 0b3256c3ee14
comparison
equal deleted inserted replaced
3943:b26d25d3c1c7 3944:aae045f802f4
39 { 39 {
40 // This is the basis class for transcoding plugins 40 // This is the basis class for transcoding plugins
41 class MemoryBufferTranscoder : public IDicomTranscoder 41 class MemoryBufferTranscoder : public IDicomTranscoder
42 { 42 {
43 protected: 43 protected:
44 virtual bool Transcode(std::string& target, 44 virtual bool TranscodeBuffer(std::string& target,
45 bool& hasSopInstanceUidChanged /* out */, 45 bool& hasSopInstanceUidChanged /* out */,
46 const void* buffer, 46 const void* buffer,
47 size_t size, 47 size_t size,
48 const std::set<DicomTransferSyntax>& allowedSyntaxes, 48 const std::set<DicomTransferSyntax>& allowedSyntaxes,
49 bool allowNewSopInstanceUid) = 0; 49 bool allowNewSopInstanceUid) = 0;
50 50
51 public: 51 public:
52 virtual bool TranscodeParsedToBuffer(std::string& target /* out */, 52 virtual bool TranscodeParsedToBuffer(std::string& target /* out */,
53 bool& hasSopInstanceUidChanged /* out */, 53 bool& hasSopInstanceUidChanged /* out */,
54 DcmFileFormat& dicom /* in, possibly modified */, 54 DcmFileFormat& dicom /* in, possibly modified */,
59 DcmFileFormat& dicom /* in, possibly modified */, 59 DcmFileFormat& dicom /* in, possibly modified */,
60 const void* buffer /* in, same DICOM file as "dicom" */, 60 const void* buffer /* in, same DICOM file as "dicom" */,
61 size_t size, 61 size_t size,
62 const std::set<DicomTransferSyntax>& allowedSyntaxes, 62 const std::set<DicomTransferSyntax>& allowedSyntaxes,
63 bool allowNewSopInstanceUid) ORTHANC_OVERRIDE; 63 bool allowNewSopInstanceUid) ORTHANC_OVERRIDE;
64
65 virtual bool Transcode(DicomImage& target /* out */,
66 bool& hasSopInstanceUidChanged /* out */,
67 DicomImage& source,
68 const std::set<DicomTransferSyntax>& allowedSyntaxes,
69 bool allowNewSopInstanceUid) ORTHANC_OVERRIDE;
64 }; 70 };
65 } 71 }