ARM Compute Library
17.03.1
|
#include "helpers.h"
Go to the source code of this file.
Macros | |
#define | CONVERT_OP_INT_STR(x, type) (convert_##type(x)) |
#define | CONVERT_OP_INT(x, type) CONVERT_OP_INT_STR(x, type) |
Functions | |
__kernel void | pixelwise_mul_int (__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, const uint scale) |
Performs a pixelwise multiplication with integer scale of integer inputs. More... | |
#define CONVERT_OP_INT | ( | x, | |
type | |||
) | CONVERT_OP_INT_STR(x, type) |
Definition at line 31 of file pixelwise_mul_int.cl.
Referenced by pixelwise_mul_int().
#define CONVERT_OP_INT_STR | ( | x, | |
type | |||
) | (convert_##type(x)) |
Definition at line 29 of file pixelwise_mul_int.cl.
__kernel void pixelwise_mul_int | ( | __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, | ||
const uint | scale | ||
) |
Performs a pixelwise multiplication with integer scale of integer inputs.
[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 |
[in] | scale | Integer scaling factor. Supported data types: S32 |
Definition at line 60 of file pixelwise_mul_int.cl.
References CONVERT, CONVERT_OP_INT, CONVERT_TO_IMAGE_STRUCT, DATA_TYPE_OUT, Image::ptr, and VEC_DATA_TYPE.