Mercurial > hg > orthanc
changeset 6996:64a0500e449f streaming
cleanup TODO-streaming
| author | Alain Mazy <am@orthanc.team> |
|---|---|
| date | Mon, 06 Jul 2026 10:31:20 +0200 |
| parents | 0865c7118efa |
| children | 936dd64d8f7b |
| files | OrthancFramework/Sources/DataSource/DataSourceReader.cpp OrthancFramework/Sources/DataSource/DicomSequentialReader.cpp OrthancServer/Sources/OrthancGetRequestHandler.cpp |
| diffstat | 3 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/Sources/DataSource/DataSourceReader.cpp Mon Jul 06 10:29:00 2026 +0200 +++ b/OrthancFramework/Sources/DataSource/DataSourceReader.cpp Mon Jul 06 10:31:20 2026 +0200 @@ -361,10 +361,8 @@ uint64_t& tasksCurrentMemory, unsigned int& tasksReservations) const { - { // TODO-Streaming - Question AM: why this copy ? - boost::shared_ptr<Internals::DataSourceMemoryBudget> budgetCopy(budget_); - budgetCopy->GetStatistics(tasksMaximumMemory, tasksCurrentMemory, tasksReservations); - } + boost::shared_ptr<Internals::DataSourceMemoryBudget> budgetCopy(budget_); // increment shared_ptr ref count to make sure the budget is not deleted while we use it. + budgetCopy->GetStatistics(tasksMaximumMemory, tasksCurrentMemory, tasksReservations); }
--- a/OrthancFramework/Sources/DataSource/DicomSequentialReader.cpp Mon Jul 06 10:29:00 2026 +0200 +++ b/OrthancFramework/Sources/DataSource/DicomSequentialReader.cpp Mon Jul 06 10:31:20 2026 +0200 @@ -317,7 +317,7 @@ bool hasLossyQuality, unsigned int lossyQuality) const { - // TODO-Streaming : No optimization seems possible, we need to go through the transcoder anyway + // No optimization seems possible, we need to go through the transcoder anyway return CreateForTranscodedParsedDicomFile(targetSyntax, mode, hasLossyQuality, lossyQuality); }
--- a/OrthancServer/Sources/OrthancGetRequestHandler.cpp Mon Jul 06 10:29:00 2026 +0200 +++ b/OrthancServer/Sources/OrthancGetRequestHandler.cpp Mon Jul 06 10:31:20 2026 +0200 @@ -354,7 +354,7 @@ source.AcquireParsed(dicom); // This invalidates the "dicom" object, cf. (*) /** - * TODO-Streaming : It doesn't seem possible to uniformly trancode upfront + * It doesn't seem possible to uniformly trancode upfront * using "DicomSequentialReader::CreateForTranscoded()", as the * selected transfer syntax is not constant, but varies upon * each individual instance given the presentation context.
