MCPcopy Create free account
hub / github.com/WallBreaker2/op / scan_block_count

Function scan_block_count

libop/image/ImageSearchAlgorithms.cpp:113–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113size_t scan_block_count(const rect_t &range, bool split_by_y, size_t thread_count) {
114 const int span = split_by_y ? range.height() : range.width();
115 if (span <= 1 || thread_count <= 1)
116 return 1;
117 return thread_count < static_cast<size_t>(span) ? thread_count : static_cast<size_t>(span);
118}
119
120} // namespace
121

Callers 2

FindPicThMethod · 0.85
FindPicExThMethod · 0.85

Calls 2

heightMethod · 0.80
widthMethod · 0.80

Tested by

no test coverage detected