| 111 | } |
| 112 | |
| 113 | size_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 |
no test coverage detected