24.02.1
|
#include "helpers.h"
Go to the source code of this file.
Functions | |
__kernel void | fill_image_borders_replicate (__global uchar *buf_ptr, uint buf_stride_x, uint buf_step_x, uint buf_stride_y, uint buf_step_y, uint buf_stride_z, uint buf_step_z, uint buf_offset_first_element_in_bytes, uint width, uint height, int2 start_pos) |
Fill N pixel of the padding edge of a single channel image by replicating the closest valid pixel. More... | |
__kernel void | fill_image_borders_constant (__global uchar *buf_ptr, uint buf_stride_x, uint buf_step_x, uint buf_stride_y, uint buf_step_y, uint buf_stride_z, uint buf_step_z, uint buf_offset_first_element_in_bytes, uint width, uint height, int2 start_pos, DATA_TYPE constant_value) |
Fill N pixels of the padding edge of a single channel image with a constant value. More... | |
__kernel void fill_image_borders_constant | ( | __global uchar * | buf_ptr, |
uint | buf_stride_x, | ||
uint | buf_step_x, | ||
uint | buf_stride_y, | ||
uint | buf_step_y, | ||
uint | buf_stride_z, | ||
uint | buf_step_z, | ||
uint | buf_offset_first_element_in_bytes, | ||
uint | width, | ||
uint | height, | ||
int2 | start_pos, | ||
DATA_TYPE | constant_value | ||
) |
Fill N pixels of the padding edge of a single channel image with a constant value.
[out] | buf_ptr | Pointer to the source image. Supported data types: All |
[in] | buf_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | buf_step_x | buf_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | buf_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | buf_step_y | buf_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | buf_stride_z | Stride between images if batching images (in bytes) |
[in] | buf_step_z | buf_stride_z * number of elements along Z processed per workitem(in bytes) |
[in] | buf_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | width | Width of the valid region of the image |
[in] | height | Height of the valid region of the image |
[in] | start_pos | XY coordinate indicating the start point of the valid region |
[in] | constant_value | Constant value to use to fill the edges |
Definition at line 122 of file fill_border.cl.
References CONVERT_TENSOR3D_TO_IMAGE_STRUCT_NO_STEP, offset(), Image::ptr, Image::stride_x, and Image::stride_y.
__kernel void fill_image_borders_replicate | ( | __global uchar * | buf_ptr, |
uint | buf_stride_x, | ||
uint | buf_step_x, | ||
uint | buf_stride_y, | ||
uint | buf_step_y, | ||
uint | buf_stride_z, | ||
uint | buf_step_z, | ||
uint | buf_offset_first_element_in_bytes, | ||
uint | width, | ||
uint | height, | ||
int2 | start_pos | ||
) |
Fill N pixel of the padding edge of a single channel image by replicating the closest valid pixel.
[in,out] | buf_ptr | Pointer to the source image. Supported data types: All |
[in] | buf_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | buf_step_x | buf_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | buf_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | buf_step_y | buf_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | buf_stride_z | Stride between images if batching images (in bytes) |
[in] | buf_step_z | buf_stride_z * number of elements along Z processed per workitem(in bytes) |
[in] | buf_offset_first_element_in_bytes | The offset of the first element in the source image |
[in] | width | Width of the valid region of the image |
[in] | height | Height of the valid region of the image |
[in] | start_pos | XY coordinate indicating the start point of the valid region |
Definition at line 46 of file fill_border.cl.
References CONVERT_TENSOR3D_TO_IMAGE_STRUCT_NO_STEP, offset(), Image::ptr, Image::stride_x, and Image::stride_y.