Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomNetworking/DicomStoreUserConnection.cpp @ 5363:3c8286e5d07b multiple-jpeg-decoders
wip: try to add a jpeg decoder without colorspace conversion: not working now
author | Alain Mazy <am@osimis.io> |
---|---|
date | Tue, 11 Jul 2023 10:25:58 +0200 |
parents | 742448a9b600 |
children |
comparison
equal
deleted
inserted
replaced
5360:165b67c02927 | 5363:3c8286e5d07b |
---|---|
550 // accepted by the remote modality => transcode to this syntax | 550 // accepted by the remote modality => transcode to this syntax |
551 std::set<DicomTransferSyntax> targetSyntaxes; | 551 std::set<DicomTransferSyntax> targetSyntaxes; |
552 targetSyntaxes.insert(preferredTransferSyntax); | 552 targetSyntaxes.insert(preferredTransferSyntax); |
553 attemptedSyntaxes.insert(preferredTransferSyntax); | 553 attemptedSyntaxes.insert(preferredTransferSyntax); |
554 | 554 |
555 success = transcoder.Transcode(transcoded, source, targetSyntaxes, true); | 555 success = transcoder.Transcode(transcoded, source, targetSyntaxes, true, true); |
556 isDestructiveCompressionAllowed = true; | 556 isDestructiveCompressionAllowed = true; |
557 } | 557 } |
558 | 558 |
559 if (!success) | 559 if (!success) |
560 { | 560 { |
581 attemptedSyntaxes.insert(DicomTransferSyntax_BigEndianExplicit); | 581 attemptedSyntaxes.insert(DicomTransferSyntax_BigEndianExplicit); |
582 } | 582 } |
583 | 583 |
584 if (!targetSyntaxes.empty()) | 584 if (!targetSyntaxes.empty()) |
585 { | 585 { |
586 success = transcoder.Transcode(transcoded, source, targetSyntaxes, false); | 586 success = transcoder.Transcode(transcoded, source, targetSyntaxes, false, true); |
587 isDestructiveCompressionAllowed = false; | 587 isDestructiveCompressionAllowed = false; |
588 } | 588 } |
589 } | 589 } |
590 | 590 |
591 if (success) | 591 if (success) |