| 41 | } |
| 42 | |
| 43 | void OutputProcess::check() |
| 44 | { |
| 45 | if (!src || !dst) |
| 46 | throw std::logic_error("output processing source/destination not set"); |
| 47 | if (tile.hSrcBegin + tile.H > src->getH() || |
| 48 | tile.wSrcBegin + tile.W > src->getW() || |
| 49 | tile.hDstBegin + tile.H > dst->getH() || |
| 50 | tile.wDstBegin + tile.W > dst->getW()) |
| 51 | throw std::out_of_range("output processing source/destination out of bounds"); |
| 52 | } |
| 53 | |
| 54 | OIDN_NAMESPACE_END |