comparison OrthancServer/ServerContext.h @ 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 4cdc875510d1
children e6606d3ec892
comparison
equal deleted inserted replaced
3929:7dc5e7e0045d 3930:b99acc213937
63 * filesystem (including compression), as well as the index of the 63 * filesystem (including compression), as well as the index of the
64 * DICOM store. It implements the required locking mechanisms. 64 * DICOM store. It implements the required locking mechanisms.
65 **/ 65 **/
66 class ServerContext : 66 class ServerContext :
67 public IStorageCommitmentFactory, 67 public IStorageCommitmentFactory,
68 public IDicomTranscoder,
68 private JobsRegistry::IObserver 69 private JobsRegistry::IObserver
69 { 70 {
70 public: 71 public:
71 class ILookupVisitor : public boost::noncopyable 72 class ILookupVisitor : public boost::noncopyable
72 { 73 {
471 const std::string& dicom, 472 const std::string& dicom,
472 bool hasMoveOriginator, 473 bool hasMoveOriginator,
473 const std::string& moveOriginatorAet, 474 const std::string& moveOriginatorAet,
474 uint16_t moveOriginatorId); 475 uint16_t moveOriginatorId);
475 476
476 // This accessor can be used even if the global option 477 // This method can be used even if the global option
477 // "TranscodeDicomProtocol" is set to "false" 478 // "TranscodeDicomProtocol" is set to "false"
478 IDicomTranscoder& GetTranscoder(); 479 virtual bool TranscodeParsedToBuffer(std::string& target /* out */,
480 bool& hasSopInstanceUidChanged /* out */,
481 DcmFileFormat& dicom /* in, possibly modified */,
482 DicomTransferSyntax targetSyntax,
483 bool allowNewSopInstanceUid) ORTHANC_OVERRIDE;
484
485 // This method can be used even if the global option
486 // "TranscodeDicomProtocol" is set to "false"
487 virtual IDicomTranscoder::TranscodedDicom* TranscodeToParsed(
488 DcmFileFormat& dicom /* in, possibly modified */,
489 const void* buffer /* in, same DICOM file as "dicom" */,
490 size_t size,
491 const std::set<DicomTransferSyntax>& allowedSyntaxes,
492 bool allowNewSopInstanceUid) ORTHANC_OVERRIDE;
479 }; 493 };
480 } 494 }