#include "../../../common/VXLIB_types.h"
Go to the source code of this file.
|
VXLIB_STATUS | VXLIB_multiply_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, uint16_t overflow_policy, VXLIB_F32 scale) |
|
VXLIB_STATUS | VXLIB_multiply_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, uint16_t overflow_policy, VXLIB_F32 scale) |
|
◆ VXLIB_multiply_i8u_i16s_o16s_checkParams()
VXLIB_STATUS VXLIB_multiply_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, |
|
|
uint16_t |
overflow_policy, |
|
|
VXLIB_F32 |
scale |
|
) |
| |
- Description:
- Checks the parameters for programming errors for the VXLIB_multiply_i8u_i16s_o16s function.
- Method:
- The following checks are made:
- There shall be no NULL pointers
- All images shall have the same x and y dimensions
- The strides of each image shall be equal to or greater than the x dimension
- overflow_policy shall be either VXLIB_CONVERT_POLICY_WRAP or VXLIB_CONVERT_POLICY_SATURATE
- Parameters
-
[in] | src0[] | Pointer to array containing first input image (UQ8.0) |
[in] | src0_addr[] | Pointer to structure containing dimensional information of src0 |
[in] | src1[] | Pointer to array containing second input image (SQ15.0) |
[in] | src1_addr[] | Pointer to structure containing dimensional information of src1 |
[out] | dst[] | Pointer to array containing output image (SQ15.0) |
[in] | dst_addr[] | Pointer to structure containing dimensional information of dst |
[in] | overflow_policy | Parameter indicating overflow policy |
[in] | scale | Parameter indicating scale |