Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
ptahmose committed Dec 6, 2023
1 parent 2cdc5cf commit 5ebc905
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Src/CZICmd/executePlaneScan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class CExecutePlaneScan : public CExecuteBase
cache_context.cache = CreateSubBlockCache();
cache_context.prune_options.maxMemoryUsage = max_cache_size;
}

const IntSize tileSize = { get<0>(options.GetTileSizeForPlaneScan()), get<1>(options.GetTileSizeForPlaneScan()) };
const auto tile_size_for_plane_scan = options.GetTileSizeForPlaneScan();
const IntSize tileSize = { get<0>(tile_size_for_plane_scan), get<1>(tile_size_for_plane_scan) };
const auto saver = CSaveBitmapFactory::CreateSaveBitmapObj(nullptr);

for (int y = 0; y < (roi.h + static_cast<int>(tileSize.h) - 1) / static_cast<int>(tileSize.h); ++y)
Expand Down
4 changes: 2 additions & 2 deletions Src/libCZI/libCZI_Compositor.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,8 @@ namespace libCZI
/// Options for controlling the prune operation. There are two metrics which can be used to control what
/// remains in the cache and what is discarded: the maximum memory usage (for all elements in the cache) and
/// the maximum number of sub-blocks. If the cache exceeds one of those limits, then elements are evicted from the cache
/// until both conditions are met. Eviction is done in the order starting with elements where their last access is the longest
/// time ago. As "access" we define either the Add-operation or the Get-operation - so, when an element is retrieved from the
/// until both conditions are met. Eviction is done in the order starting with elements which have been least recently accessed.
/// As "access" we define either the Add-operation or the Get-operation - so, when an element is retrieved from the
/// cache, it is considered as "accessed".
/// If only one condition is desired, then the other condition can be set to the maximum value of the respective type (which is the
/// default value).
Expand Down

0 comments on commit 5ebc905

Please sign in to comment.