| 90 | */ |
| 91 | template <typename T> |
| 92 | void PadFill(T *output, const T *fill_values, int64_t npixels, int64_t nchannels) { |
| 93 | int64_t n = npixels * nchannels; |
| 94 | int64_t i = 0; |
| 95 | for (; i < nchannels; i++) |
| 96 | output[i] = fill_values[i]; |
| 97 | for (; i < n; i++) |
| 98 | output[i] = output[i - nchannels]; |
| 99 | } |
| 100 | |
| 101 | inline std::tuple<int64_t, int64_t, int64_t> CalcPadCopyExtents(int64_t anchor, |
| 102 | int64_t in_extent, |
no outgoing calls
no test coverage detected