Functions | |
VXLIB_STATUS | VXLIB_addSquare_i8u_i16s_o16s (const uint8_t src0[restrict], const VXLIB_bufParams2D_t *src0_addr, const int16_t src1[restrict], const VXLIB_bufParams2D_t *src1_addr, int16_t dst[restrict], const VXLIB_bufParams2D_t *dst_addr, uint32_t shift) |
VXLIB_STATUS | VXLIB_addSquare_i8u_i16s_o16s_checkParams (const uint8_t src0[], const VXLIB_bufParams2D_t *src0_addr, const int16_t src1[], const VXLIB_bufParams2D_t *src1_addr, const int16_t dst[], const VXLIB_bufParams2D_t *dst_addr, uint32_t shift) |
VXLIB_STATUS VXLIB_addSquare_i8u_i16s_o16s | ( | const uint8_t | src0[restrict], |
const VXLIB_bufParams2D_t * | src0_addr, | ||
const int16_t | src1[restrict], | ||
const VXLIB_bufParams2D_t * | src1_addr, | ||
int16_t | dst[restrict], | ||
const VXLIB_bufParams2D_t * | dst_addr, | ||
uint32_t | shift | ||
) |
dst(x,y) = saturateINT16( (uint16)src1(x,y) + (((uint16)src0(x,y)^2)>>(shift)) )
[in] | src0[] | Pointer to array containing first input image (UQ8.0) |
[in] | src0_addr[] | Pointer to structure containing dimensional information of src |
[in] | src1[] | Pointer to array containing output image (SQ15.0) |
[in] | src1_addr[] | Pointer to structure containing dimensional information of src |
[out] | dst[] | Pointer to array containing output image (SQ15.0) |
[in] | dst_addr[] | Pointer to structure containing dimensional information of dst |
[in] | shift | Parameter indicating shift value, where 0 <= shift <= 15 |
VXLIB_STATUS VXLIB_addSquare_i8u_i16s_o16s_checkParams | ( | const uint8_t | src0[], |
const VXLIB_bufParams2D_t * | src0_addr, | ||
const int16_t | src1[], | ||
const VXLIB_bufParams2D_t * | src1_addr, | ||
const int16_t | dst[], | ||
const VXLIB_bufParams2D_t * | dst_addr, | ||
uint32_t | shift | ||
) |
[in] | src0[] | Pointer to array containing first input image (UQ8.0) |
[in] | src0_addr[] | Pointer to structure containing dimensional information of src |
[in] | src1[] | Pointer to array containing first input image (SQ15.0) |
[in] | src1_addr[] | Pointer to structure containing dimensional information of src |
[out] | dst[] | Pointer to array containing output image (SQ15.0) |
[in] | dst_addr[] | Pointer to structure containing dimensional information of dst |
[in] | shift | Parameter indicating shift value, where 0 <= shift <= 15 |