ARM Compute Library
17.04
|
#include "helpers.h"
Go to the source code of this file.
Macros | |
#define | ADD(x, y) (x) + (y) |
#define | SUB(x, y) (x) - (y) |
Functions | |
__kernel void | arithmetic_add (__global uchar *in1_ptr, uint in1_stride_x, uint in1_step_x, uint in1_stride_y, uint in1_step_y, uint in1_offset_first_element_in_bytes, __global uchar *in2_ptr, uint in2_stride_x, uint in2_step_x, uint in2_stride_y, uint in2_step_y, uint in2_offset_first_element_in_bytes, __global uchar *out_ptr, uint out_stride_x, uint out_step_x, uint out_stride_y, uint out_step_y, uint out_offset_first_element_in_bytes) |
This function add two images. More... | |
__kernel void | arithmetic_sub (__global uchar *in1_ptr, uint in1_stride_x, uint in1_step_x, uint in1_stride_y, uint in1_step_y, uint in1_offset_first_element_in_bytes, __global uchar *in2_ptr, uint in2_stride_x, uint in2_step_x, uint in2_stride_y, uint in2_step_y, uint in2_offset_first_element_in_bytes, __global uchar *out_ptr, uint out_stride_x, uint out_step_x, uint out_stride_y, uint out_step_y, uint out_offset_first_element_in_bytes) |
This function subtracts one image from another. More... | |
#define ADD | ( | x, | |
y | |||
) | (x) + (y) |
Definition at line 30 of file arithmetic_op.cl.
Referenced by arithmetic_add().
#define SUB | ( | x, | |
y | |||
) | (x) - (y) |
Definition at line 31 of file arithmetic_op.cl.
Referenced by arithmetic_sub().
__kernel void arithmetic_add | ( | __global uchar * | in1_ptr, |
uint | in1_stride_x, | ||
uint | in1_step_x, | ||
uint | in1_stride_y, | ||
uint | in1_step_y, | ||
uint | in1_offset_first_element_in_bytes, | ||
__global uchar * | in2_ptr, | ||
uint | in2_stride_x, | ||
uint | in2_step_x, | ||
uint | in2_stride_y, | ||
uint | in2_step_y, | ||
uint | in2_offset_first_element_in_bytes, | ||
__global uchar * | out_ptr, | ||
uint | out_stride_x, | ||
uint | out_step_x, | ||
uint | out_stride_y, | ||
uint | out_step_y, | ||
uint | out_offset_first_element_in_bytes | ||
) |
This function add two images.
[in] | in1_ptr | Pointer to the source image. Supported data types: U8, S16 |
[in] | in1_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | in1_step_x | in1_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | in1_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | in1_step_y | in1_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | in1_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | in2_ptr | Pointer to the source image. Supported data types: U8, S16 |
[in] | in2_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | in2_step_x | in2_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | in2_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | in2_step_y | in2_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | in2_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | out_ptr | Pointer to the destination image. Supported data types: U8, S16 |
[in] | out_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | out_step_x | out_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | out_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | out_step_y | out_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | out_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 59 of file arithmetic_op.cl.
References ADD, CONVERT, CONVERT_TO_IMAGE_STRUCT, DATA_TYPE_OUT, Image::ptr, and VEC_DATA_TYPE.
__kernel void arithmetic_sub | ( | __global uchar * | in1_ptr, |
uint | in1_stride_x, | ||
uint | in1_step_x, | ||
uint | in1_stride_y, | ||
uint | in1_step_y, | ||
uint | in1_offset_first_element_in_bytes, | ||
__global uchar * | in2_ptr, | ||
uint | in2_stride_x, | ||
uint | in2_step_x, | ||
uint | in2_stride_y, | ||
uint | in2_step_y, | ||
uint | in2_offset_first_element_in_bytes, | ||
__global uchar * | out_ptr, | ||
uint | out_stride_x, | ||
uint | out_step_x, | ||
uint | out_stride_y, | ||
uint | out_step_y, | ||
uint | out_offset_first_element_in_bytes | ||
) |
This function subtracts one image from another.
[in] | in1_ptr | Pointer to the source image. Supported data types: U8, S16 |
[in] | in1_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | in1_step_x | in1_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | in1_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | in1_step_y | in1_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | in1_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | in2_ptr | Pointer to the source image. Supported data types: U8, S16 |
[in] | in2_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | in2_step_x | in2_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | in2_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | in2_step_y | in2_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | in2_offset_first_element_in_bytes | The offset of the first element in the source image |
[out] | out_ptr | Pointer to the destination image. Supported data types: U8, S16 |
[in] | out_stride_x | Stride of the destination image in X dimension (in bytes) |
[in] | out_step_x | out_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | out_stride_y | Stride of the destination image in Y dimension (in bytes) |
[in] | out_step_y | out_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | out_offset_first_element_in_bytes | The offset of the first element in the destination image |
Definition at line 104 of file arithmetic_op.cl.
References CONVERT, CONVERT_TO_IMAGE_STRUCT, DATA_TYPE_OUT, Image::ptr, SUB, and VEC_DATA_TYPE.