comparison OrthancServer/ServerContext.cpp @ 3938:54dbebbcc032 transcoding

fix
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 18 May 2020 15:59:50 +0200
parents e6606d3ec892
children c205f670098e
comparison
equal deleted inserted replaced
3937:41eec97c23ef 3938:54dbebbcc032
506 506
507 StoreStatus ServerContext::Store(std::string& resultPublicId, 507 StoreStatus ServerContext::Store(std::string& resultPublicId,
508 DicomInstanceToStore& dicom, 508 DicomInstanceToStore& dicom,
509 StoreInstanceMode mode) 509 StoreInstanceMode mode)
510 { 510 {
511 //const DicomTransferSyntax option = DicomTransferSyntax_JPEGProcess1; 511 const DicomTransferSyntax option = DicomTransferSyntax_JPEGProcess1;
512 const DicomTransferSyntax option = DicomTransferSyntax_LittleEndianExplicit; 512 //const DicomTransferSyntax option = DicomTransferSyntax_JPEGProcess14SV1;
513 513 //const DicomTransferSyntax option = DicomTransferSyntax_LittleEndianExplicit;
514
514 if (1) 515 if (1)
515 { 516 {
516 return StoreAfterTranscoding(resultPublicId, dicom, mode); 517 return StoreAfterTranscoding(resultPublicId, dicom, mode);
517 } 518 }
518 else 519 else
550 DicomInstanceToStore toStore; 551 DicomInstanceToStore toStore;
551 toStore.SetParsedDicomFile(*tmp); 552 toStore.SetParsedDicomFile(*tmp);
552 toStore.SetOrigin(dicom.GetOrigin()); 553 toStore.SetOrigin(dicom.GetOrigin());
553 554
554 StoreStatus ok = StoreAfterTranscoding(resultPublicId, toStore, mode); 555 StoreStatus ok = StoreAfterTranscoding(resultPublicId, toStore, mode);
555 printf(">> %s\n", resultPublicId.c_str()); 556 assert(resultPublicId == tmp->GetHasher().HashInstance());
557
556 return ok; 558 return ok;
557 } 559 }
558 } 560 }
559 } 561 }
560 } 562 }