This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: OPENVX

In the C7x Kernel Application routine:

Obj-> output_img = vxCreateImage(obj-> context, obj-> width, obj-> height, VX_DF_IMAGE_BMP);

When the customer changes it as follows, an error is reported:

Obj-> output_img = vxCreateImage(obj-> context, obj-> width, obj-> height, VX_DF_IMAGE_RGB);

The function in this part of vxVerifyGraph cannot pass.

The error is as follows:

ERROR: Input/Output image format not correct !!!
VX_ZONE_ERROR:[ownGraphNodeKernelValidate:535] node kernel validate failed for kernel app_c7x_kernel.img_add at index 0
0.6625s: VX_ZONE_ERROR:[tivxObjectDeInit:180] Is kernel use failed
0.6642s: VX_ZONE_ERROR:[tivxObjectDeInit:276] Is error use failed

Specific error:

vxVerifyGraph 

status = node->kernel->validate(nodenode->parameters,  num_paramsmeta);

Results in status:-10

VX_ERROR_INVALID_PARAMETERS         = -(vx_int32)10,/*!
< \brief Indicates that the supplied parameter information does not match the kernel contract. */
Best Regards,
Cherry Zhou
  • Hello,

    This kernel was only designed to be used for U8 images.  Have they updated the kernel processing code to handle RGB images as well?

    If so, they will also need to update the host side validate callback which checks the image format and throws an error if the image type is not U8.

    Regards,

    Lucas

  • Hi Lucas,

    Thanks for your reply.

    The customer would like to know the following information: 

    1. Where is the U8 core code? And what is the function name?

    2. Where is the host-side verification callback? And what is the function name?

    Thank you!

    Best Regards,

    Cherry Zhou

  • Hello,

    Answers to your questions are below:

    1. Are they referring to where the U8 images are being processed?  If so, this is within the process callback in vision_apps/apps/basic_demos/app_c7x_kernel/c7x/app_c7x_target_kernel_img_add.cpp within the function app_c7x_target_kernel_img_add.

    2. The host side verification callback can be found at vision_apps/apps/basic_demos/app_c7x_kernel/app_c7x_kernel_img_add.c and the function name is app_c7x_kernel_img_add_kernel_validate.

    Regards,

    Lucas