MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / offset

Function offset

src/core/CL/cl_kernels/helpers.h:1142–1145  ·  view source on GitHub ↗

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 */

Source from the content-addressed store, hash-verified

1140 * @param[in] y Relative Y position
1141 */
1142inline __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 *

Callers 1

VEC_DATA_TYPEFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected