Functions | |
VXLIB_STATUS | VXLIB_colorConvert_RGBtoIYUV_i8u_o8u (const uint8_t src[restrict], const VXLIB_bufParams2D_t *src_addr, uint8_t dst0[restrict], const VXLIB_bufParams2D_t *dst0_addr, uint8_t dst1[restrict], const VXLIB_bufParams2D_t *dst1_addr, uint8_t dst2[restrict], const VXLIB_bufParams2D_t *dst2_addr, uint8_t scratch[restrict], uint32_t scratch_size) |
VXLIB_STATUS | VXLIB_colorConvert_RGBtoIYUV_i8u_o8u_checkParams (const uint8_t src[], const VXLIB_bufParams2D_t *src_addr, const uint8_t dst0[], const VXLIB_bufParams2D_t *dst0_addr, const uint8_t dst1[], const VXLIB_bufParams2D_t *dst1_addr, const uint8_t dst2[], const VXLIB_bufParams2D_t *dst2_addr, const uint8_t scratch[], const uint32_t scratch_size) |
VXLIB_STATUS VXLIB_colorConvert_RGBtoIYUV_i8u_o8u | ( | const uint8_t | src[restrict], |
const VXLIB_bufParams2D_t * | src_addr, | ||
uint8_t | dst0[restrict], | ||
const VXLIB_bufParams2D_t * | dst0_addr, | ||
uint8_t | dst1[restrict], | ||
const VXLIB_bufParams2D_t * | dst1_addr, | ||
uint8_t | dst2[restrict], | ||
const VXLIB_bufParams2D_t * | dst2_addr, | ||
uint8_t | scratch[restrict], | ||
uint32_t | scratch_size | ||
) |
Y'= (( 54*R' + 183*G' + 18*B')+128)/256 U'= ((-15*R' - 49*G' + 64*B')+64)/128 + 128 V'= (( 64*R' - 58*G' - 6*B')+64)/128 + 128
[in] | src[] | Pointer to array containing input RGB image (UQ8.0) |
[in] | src_addr[] | Pointer to structure containing dimensional information of src |
[out] | dst0[] | Pointer to array containing output luma plane (UQ8.0) |
[in] | dst0_addr[] | Pointer to structure containing dimensional information of dst0 |
[out] | dst1[] | Pointer to array containing output U plane (UQ8.0) |
[in] | dst1_addr[] | Pointer to structure containing dimensional information of dst1 |
[out] | dst2[] | Pointer to array containing output V plane (UQ8.0) |
[in] | dst2_addr[] | Pointer to structure containing dimensional information of dst2 |
[in] | scratch[] | Pointer to array of scratch memory (UQ8.0) |
[in] | scratch_size | Parameter indicating the size of scratch memory in bytes |
VXLIB_STATUS VXLIB_colorConvert_RGBtoIYUV_i8u_o8u_checkParams | ( | const uint8_t | src[], |
const VXLIB_bufParams2D_t * | src_addr, | ||
const uint8_t | dst0[], | ||
const VXLIB_bufParams2D_t * | dst0_addr, | ||
const uint8_t | dst1[], | ||
const VXLIB_bufParams2D_t * | dst1_addr, | ||
const uint8_t | dst2[], | ||
const VXLIB_bufParams2D_t * | dst2_addr, | ||
const uint8_t | scratch[], | ||
const uint32_t | scratch_size | ||
) |
[in] | src[] | Pointer to array containing input RGB image (UQ8.0) |
[in] | src_addr[] | Pointer to structure containing dimensional information of src |
[out] | dst0[] | Pointer to array containing output luma plane (UQ8.0) |
[in] | dst0_addr[] | Pointer to structure containing dimensional information of dst0 |
[out] | dst1[] | Pointer to array containing output U plane (UQ8.0) |
[in] | dst1_addr[] | Pointer to structure containing dimensional information of dst1 |
[out] | dst2[] | Pointer to array containing output V plane (UQ8.0) |
[in] | dst2_addr[] | Pointer to structure containing dimensional information of dst2 |
[in] | scratch[] | Pointer to array of scratch memory (UQ8.0) |
[in] | scratch_size | Parameter indicating the size of scratch memory in bytes |