24.02.1
|
#include "helpers.h"
Go to the source code of this file.
Macros | |
#define | CONVERT_DOWN(x, type) CONVERT(x, type) |
#define | CONVERT_UP(x, type) CONVERT(x, type) |
Functions | |
__kernel void | cast_down (__global uchar *in_ptr, uint in_stride_x, uint in_step_x, uint in_stride_y, uint in_step_y, uint in_stride_z, uint in_step_z, uint in_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_stride_z, uint out_step_z, uint out_offset_first_element_in_bytes) |
This function performs a down-casting. More... | |
__kernel void | cast_up (__global uchar *in_ptr, uint in_stride_x, uint in_step_x, uint in_stride_y, uint in_step_y, uint in_stride_z, uint in_step_z, uint in_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_stride_z, uint out_step_z, uint out_offset_first_element_in_bytes) |
This function performs a up-casting. More... | |
__kernel void cast_down | ( | __global uchar * | in_ptr, |
uint | in_stride_x, | ||
uint | in_step_x, | ||
uint | in_stride_y, | ||
uint | in_step_y, | ||
uint | in_stride_z, | ||
uint | in_step_z, | ||
uint | in_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_stride_z, | ||
uint | out_step_z, | ||
uint | out_offset_first_element_in_bytes | ||
) |
This function performs a down-casting.
[in] | in_ptr | Pointer to the source image. Supported data types: U8/S8/QSYMM8_PER_CHANNEL/U16/S16/U32/S32/F16/F32 |
[in] | in_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | in_step_x | in_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | in_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | in_step_y | in_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | in_stride_z | Stride of the source tensor in Z dimension (in bytes) |
[in] | in_step_z | in_stride_z * number of elements along Z processed per workitem(in bytes) |
[in] | in_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/S8/QASYMM8/U16/S16/U32/S32/F16/F32 |
[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_stride_z | Stride of the source tensor in Z dimension (in bytes) |
[in] | out_step_z | out_stride_z * number of elements along Z 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 60 of file cast.cl.
References CONVERT_DOWN, STORE_VECTOR_SELECT, VEC_DATA_TYPE, VEC_SIZE, and VLOAD.
__kernel void cast_up | ( | __global uchar * | in_ptr, |
uint | in_stride_x, | ||
uint | in_step_x, | ||
uint | in_stride_y, | ||
uint | in_step_y, | ||
uint | in_stride_z, | ||
uint | in_step_z, | ||
uint | in_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_stride_z, | ||
uint | out_step_z, | ||
uint | out_offset_first_element_in_bytes | ||
) |
This function performs a up-casting.
[in] | in_ptr | Pointer to the source image. Supported data types: U8/S8/U16/S16/U32/S32/F16/F32 |
[in] | in_stride_x | Stride of the source image in X dimension (in bytes) |
[in] | in_step_x | in_stride_x * number of elements along X processed per workitem(in bytes) |
[in] | in_stride_y | Stride of the source image in Y dimension (in bytes) |
[in] | in_step_y | in_stride_y * number of elements along Y processed per workitem(in bytes) |
[in] | in_stride_z | Stride of the source tensor in Z dimension (in bytes) |
[in] | in_step_z | in_stride_z * number of elements along Z processed per workitem(in bytes) |
[in] | in_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/U16/S16/U32/S32/F16/F32 |
[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_stride_z | Stride of the source tensor in Z dimension (in bytes) |
[in] | out_step_z | out_stride_z * number of elements along Z 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 112 of file cast.cl.
References CONVERT_UP, STORE_VECTOR_SELECT, VEC_DATA_TYPE, VEC_SIZE, and VLOAD.