Mercurial > hg > orthanc
comparison Core/DicomParsing/IDicomTranscoder.h @ 3946:1f33ed7f82e6 transcoding
automatic test of transcoding
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 19 May 2020 13:44:56 +0200 |
parents | 0b3256c3ee14 |
children | 3d2fc1b5cc8c |
comparison
equal
deleted
inserted
replaced
3945:0b3256c3ee14 | 3946:1f33ed7f82e6 |
---|---|
96 const void* GetBufferData(); | 96 const void* GetBufferData(); |
97 | 97 |
98 size_t GetBufferSize(); | 98 size_t GetBufferSize(); |
99 }; | 99 }; |
100 | 100 |
101 | |
102 protected: | |
103 enum TranscodingType | |
104 { | |
105 TranscodingType_Lossy, | |
106 TranscodingType_Lossless, | |
107 TranscodingType_Unknown | |
108 }; | |
109 | |
110 static TranscodingType GetTranscodingType(DicomTransferSyntax target, | |
111 DicomTransferSyntax source); | |
112 | |
113 static std::string GetSopInstanceUid(DcmFileFormat& dicom); | |
114 | |
115 static void CheckTranscoding(DicomImage& transcoded, | |
116 bool hasSopInstanceUidChanged, | |
117 DicomTransferSyntax sourceSyntax, | |
118 const std::string& sourceSopInstanceUid, | |
119 const std::set<DicomTransferSyntax>& allowedSyntaxes, | |
120 bool allowNewSopInstanceUid); | |
101 | 121 |
122 public: | |
102 virtual ~IDicomTranscoder() | 123 virtual ~IDicomTranscoder() |
103 { | 124 { |
104 } | 125 } |
105 | |
106 | 126 |
107 virtual bool Transcode(DicomImage& target, | 127 virtual bool Transcode(DicomImage& target, |
108 bool& hasSopInstanceUidChanged /* out */, | 128 bool& hasSopInstanceUidChanged /* out */, |
109 DicomImage& source /* in, "GetParsed()" possibly modified */, | 129 DicomImage& source /* in, "GetParsed()" possibly modified */, |
110 const std::set<DicomTransferSyntax>& allowedSyntaxes, | 130 const std::set<DicomTransferSyntax>& allowedSyntaxes, |