Mercurial > hg > orthanc-stone
changeset 1670:24462a259d8d
comment
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 19 Nov 2020 19:20:45 +0100 |
parents | d82a141e08d7 |
children | 2c2512918a0f |
files | Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp |
diffstat | 1 files changed, 10 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp Thu Nov 19 19:16:37 2020 +0100 +++ b/Applications/StoneWebViewer/WebAssembly/StoneWebViewer.cpp Thu Nov 19 19:20:45 2020 +0100 @@ -1263,13 +1263,13 @@ { private: size_t cursorIndex_; - bool isFull_; + bool isFullQuality_; public: PrefetchItem(size_t cursorIndex, - bool isFull) : + bool isFullQuality) : cursorIndex_(cursorIndex), - isFull_(isFull) + isFullQuality_(isFullQuality) { } @@ -1278,9 +1278,9 @@ return cursorIndex_; } - bool IsFull() const + bool IsFullQuality() const { - return isFull_; + return isFullQuality_; } }; @@ -1316,7 +1316,7 @@ while (!prefetchQueue_.empty()) { size_t cursorIndex = prefetchQueue_.front().GetCursorIndex(); - bool isFull = prefetchQueue_.front().IsFull(); + bool isFullQuality = prefetchQueue_.front().IsFullQuality(); prefetchQueue_.pop_front(); const std::string sopInstanceUid = frames_->GetInstanceOfFrame(cursorIndex).GetSopInstanceUid(); @@ -1325,9 +1325,9 @@ { FramesCache::Accessor accessor(*cache_, sopInstanceUid, frameNumber); if (!accessor.IsValid() || - (isFull && accessor.GetQuality() == 0)) + (isFullQuality && accessor.GetQuality() == 0)) { - if (isFull) + if (isFullQuality) { ScheduleLoadFullDicomFrame(cursorIndex, PRIORITY_NORMAL, true); } @@ -1335,7 +1335,8 @@ { ScheduleLoadRenderedFrame(cursorIndex, PRIORITY_NORMAL, true); } - return; + + return; // We have found a new frame to cache, stop the lookup loop } } }