Mercurial > hg > orthanc
comparison OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 3910:1f71c2f20e16 transcoding
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 08 May 2020 12:03:26 +0200 |
parents | f0dd5ded8927 |
children | 7610af1532c3 |
comparison
equal
deleted
inserted
replaced
3909:6762a97deabc | 3910:1f71c2f20e16 |
---|---|
128 | 128 |
129 modification.Apply(*modified); | 129 modification.Apply(*modified); |
130 | 130 |
131 if (transcode) | 131 if (transcode) |
132 { | 132 { |
133 std::set<DicomTransferSyntax> ts; | |
134 ts.insert(targetSyntax); | |
135 | |
136 std::string transcoded; | 133 std::string transcoded; |
137 DicomTransferSyntax sourceSyntax, targetSyntax; | 134 DicomTransferSyntax sourceSyntax; |
138 bool hasSopInstanceUidChanged; | 135 bool hasSopInstanceUidChanged; |
139 | 136 |
140 if (context.Transcode(transcoded, sourceSyntax, targetSyntax, | 137 if (context.Transcode(transcoded, sourceSyntax, hasSopInstanceUidChanged, |
141 hasSopInstanceUidChanged, *modified, ts, true)) | 138 *modified, targetSyntax, true)) |
142 { | 139 { |
143 call.GetOutput().AnswerBuffer(transcoded, MimeType_Dicom); | 140 call.GetOutput().AnswerBuffer(transcoded, MimeType_Dicom); |
144 } | 141 } |
145 else | 142 else |
146 { | 143 { |