comparison OrthancServer/OrthancRestApi/OrthancRestAnonymizeModify.cpp @ 3913:6ddad3e0b569 transcoding

transcoding ZIP archive and media
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 08 May 2020 19:15:28 +0200
parents 7610af1532c3
children 7dc5e7e0045d
comparison
equal deleted inserted replaced
3912:7610af1532c3 3913:6ddad3e0b569
132 { 132 {
133 std::string transcoded; 133 std::string transcoded;
134 DicomTransferSyntax sourceSyntax; 134 DicomTransferSyntax sourceSyntax;
135 bool hasSopInstanceUidChanged; 135 bool hasSopInstanceUidChanged;
136 136
137 if (context.Transcode(transcoded, sourceSyntax, hasSopInstanceUidChanged, 137 if (context.GetTranscoder().TranscodeParsedToBuffer(
138 *modified, targetSyntax, true)) 138 transcoded, sourceSyntax, hasSopInstanceUidChanged,
139 modified->GetDcmtkObject(), targetSyntax, true))
139 { 140 {
140 call.GetOutput().AnswerBuffer(transcoded, MimeType_Dicom); 141 call.GetOutput().AnswerBuffer(transcoded, MimeType_Dicom);
141 } 142 }
142 else 143 else
143 { 144 {