comparison Core/DicomParsing/MemoryBufferTranscoder.h @ 3945:0b3256c3ee14 transcoding

simplified IDicomTranscoder
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 19 May 2020 11:24:00 +0200
parents aae045f802f4
children 5fe8c6d3212e
comparison
equal deleted inserted replaced
3944:aae045f802f4 3945:0b3256c3ee14
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 */,
53 bool& hasSopInstanceUidChanged /* out */,
54 DcmFileFormat& dicom /* in, possibly modified */,
55 DicomTransferSyntax targetSyntax,
56 bool allowNewSopInstanceUid) ORTHANC_OVERRIDE;
57
58 virtual TranscodedDicom* TranscodeToParsed(
59 DcmFileFormat& dicom /* in, possibly modified */,
60 const void* buffer /* in, same DICOM file as "dicom" */,
61 size_t size,
62 const std::set<DicomTransferSyntax>& allowedSyntaxes,
63 bool allowNewSopInstanceUid) ORTHANC_OVERRIDE;
64
65 virtual bool Transcode(DicomImage& target /* out */, 52 virtual bool Transcode(DicomImage& target /* out */,
66 bool& hasSopInstanceUidChanged /* out */, 53 bool& hasSopInstanceUidChanged /* out */,
67 DicomImage& source, 54 DicomImage& source,
68 const std::set<DicomTransferSyntax>& allowedSyntaxes, 55 const std::set<DicomTransferSyntax>& allowedSyntaxes,
69 bool allowNewSopInstanceUid) ORTHANC_OVERRIDE; 56 bool allowNewSopInstanceUid) ORTHANC_OVERRIDE;