Mercurial > hg > orthanc
diff Core/DicomParsing/DcmtkTranscoder.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 |
line wrap: on
line diff
--- a/Core/DicomParsing/DcmtkTranscoder.h Fri May 08 08:27:18 2020 +0200 +++ b/Core/DicomParsing/DcmtkTranscoder.h Fri May 08 11:16:16 2020 +0200 @@ -88,5 +88,21 @@ bool allowNewSopInstanceUid) ORTHANC_OVERRIDE; static bool IsSupported(DicomTransferSyntax syntax); + + + virtual bool TranscodeParsedToBuffer(std::string& target /* out */, + DicomTransferSyntax& sourceSyntax /* out */, + DicomTransferSyntax& targetSyntax /* out */, + bool& hasSopInstanceUidChanged /* out */, + DcmFileFormat& dicom /* in, possibly modified */, + const std::set<DicomTransferSyntax>& allowedSyntaxes, + bool allowNewSopInstanceUid) ORTHANC_OVERRIDE; + + virtual TranscodedDicom* TranscodeToParsed2( + DcmFileFormat& dicom /* in, possibly modified */, + const void* buffer /* in, same DICOM file as "dicom" */, + size_t size, + const std::set<DicomTransferSyntax>& allowedSyntaxes, + bool allowNewSopInstanceUid) ORTHANC_OVERRIDE; }; }