Mercurial > hg > orthanc
comparison OrthancServer/Sources/ServerJobs/ResourceModificationJob.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 | f41e1f635c4d |
children |
comparison
equal
deleted
inserted
replaced
5360:165b67c02927 | 5363:3c8286e5d07b |
---|---|
245 | 245 |
246 IDicomTranscoder::DicomImage source; | 246 IDicomTranscoder::DicomImage source; |
247 source.AcquireParsed(*modified); // "modified" is invalid below this point | 247 source.AcquireParsed(*modified); // "modified" is invalid below this point |
248 | 248 |
249 IDicomTranscoder::DicomImage transcoded; | 249 IDicomTranscoder::DicomImage transcoded; |
250 if (GetContext().Transcode(transcoded, source, syntaxes, true)) | 250 if (GetContext().Transcode(transcoded, source, syntaxes, true, true)) |
251 { | 251 { |
252 modified.reset(transcoded.ReleaseAsParsedDicomFile()); | 252 modified.reset(transcoded.ReleaseAsParsedDicomFile()); |
253 | 253 |
254 // Fix the SOP instance UID in order the preserve the | 254 // Fix the SOP instance UID in order the preserve the |
255 // references between instance UIDs in the DICOM hierarchy | 255 // references between instance UIDs in the DICOM hierarchy |