Get the pointer position of a Image * * @param[in] img Pointer to the starting position of the buffer * @param[in] x Relative X position * @param[in] y Relative Y position */
| 1140 | * @param[in] y Relative Y position |
| 1141 | */ |
| 1142 | inline __global uchar *offset(const Image *img, int x, int y) |
| 1143 | { |
| 1144 | return img->ptr + x * img->stride_x + y * img->stride_y; |
| 1145 | } |
| 1146 | |
| 1147 | /** Get the pointer position of a Tensor3D |
| 1148 | * |