ARM Compute Library
17.04
|
#include "helpers.h"
Go to the source code of this file.
Functions | |
__kernel void | absdiff (__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) |
Calculate the absolute difference of two input images. More... | |
__kernel void absdiff | ( | __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 | ||
) |
Calculate the absolute difference of two input images.
[in] | in1_ptr | Pointer to the first source image. Supported data types: U8, S16 |
[in] | in1_stride_x | Stride of the first source image in X dimension (in bytes) |
[in] | in1_step_x | src_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | in1_stride_y | Stride of the first source image in Y dimension (in bytes) |
[in] | in1_step_y | src_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 first source image |
[in] | in2_ptr | Pointer to the second source image. Supported data types: U8, S16 |
[in] | in2_stride_x | Stride of the second source image in X dimension (in bytes) |
[in] | in2_step_x | src_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | in2_stride_y | Stride of the second source image in Y dimension (in bytes) |
[in] | in2_step_y | src_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 second 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 | dst_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 | dst_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 50 of file absdiff.cl.
References CONVERT, CONVERT_SAT, CONVERT_TO_IMAGE_STRUCT, DATA_TYPE_OUT, Image::ptr, and VEC_DATA_TYPE.