comparison OrthancServer/Sources/ServerJobs/ResourceModificationJob.cpp @ 5148:2df546a76e17

If specifying 'Transcode' option to /modify or /anonymize, this value will take over the 'IngestTranscoding' global configuration
author Alain Mazy <am@osimis.io>
date Fri, 27 Jan 2023 12:56:55 +0100
parents 45ce9dfa42e0
children 02cfd23a556a
comparison
equal deleted inserted replaced
5147:19ccae2e0371 5148:2df546a76e17
271 271
272 assert(modifiedUid == IDicomTranscoder::GetSopInstanceUid(modified->GetDcmtkObject())); 272 assert(modifiedUid == IDicomTranscoder::GetSopInstanceUid(modified->GetDcmtkObject()));
273 273
274 std::unique_ptr<DicomInstanceToStore> toStore(DicomInstanceToStore::CreateFromParsedDicomFile(*modified)); 274 std::unique_ptr<DicomInstanceToStore> toStore(DicomInstanceToStore::CreateFromParsedDicomFile(*modified));
275 toStore->SetOrigin(origin_); 275 toStore->SetOrigin(origin_);
276 toStore->SetSkipIngestTranscoding(transcode_); // do not apply IngestTranscoding if you have forced the transfer syntax during the modification/anonymization
276 277
277 278
278 /** 279 /**
279 * Prepare the metadata information to associate with the 280 * Prepare the metadata information to associate with the
280 * resulting DICOM instance (AnonymizedFrom/ModifiedFrom). 281 * resulting DICOM instance (AnonymizedFrom/ModifiedFrom).