comparison OrthancServer/ServerJobs/ArchiveJob.cpp @ 3930:b99acc213937 transcoding

transcoder plugins and GDCM transcoding are working
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 14 May 2020 19:20:40 +0200
parents 6ddad3e0b569
children 0b3256c3ee14
comparison
equal deleted inserted replaced
3929:7dc5e7e0045d 3930:b99acc213937
445 445
446 parsed.reset(new ParsedDicomFile(content)); 446 parsed.reset(new ParsedDicomFile(content));
447 const char* data = content.empty() ? NULL : content.c_str(); 447 const char* data = content.empty() ? NULL : content.c_str();
448 448
449 std::unique_ptr<IDicomTranscoder::TranscodedDicom> transcodedDicom( 449 std::unique_ptr<IDicomTranscoder::TranscodedDicom> transcodedDicom(
450 context.GetTranscoder().TranscodeToParsed( 450 context.TranscodeToParsed(parsed->GetDcmtkObject(), data, content.size(),
451 parsed->GetDcmtkObject(), data, content.size(), 451 syntaxes, true /* allow new SOP instance UID */));
452 syntaxes, true /* allow new SOP instance UID */));
453 452
454 if (transcodedDicom.get() != NULL && 453 if (transcodedDicom.get() != NULL &&
455 transcodedDicom->GetDicom().getDataset() != NULL) 454 transcodedDicom->GetDicom().getDataset() != NULL)
456 { 455 {
457 std::string transcoded; 456 std::string transcoded;