| 61 | } |
| 62 | |
| 63 | void InputProcess::check() |
| 64 | { |
| 65 | if (!getMainSrc() || !dst) |
| 66 | throw std::logic_error("input processing source/destination not set"); |
| 67 | if (tile.hSrcBegin + tile.H > getMainSrc()->getH() || |
| 68 | tile.wSrcBegin + tile.W > getMainSrc()->getW() || |
| 69 | tile.hDstBegin + tile.H > dst->getH() || |
| 70 | tile.wDstBegin + tile.W > dst->getW()) |
| 71 | throw std::out_of_range("input processing source/destination out of bounds"); |
| 72 | } |
| 73 | |
| 74 | OIDN_NAMESPACE_END |