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.

TDA4M How does tivxVpacMscScaleNode work on SOC?

Hi Processors Team:

I am using PSDKRA j7 06.00.00.00 to run tivxVpacMscScale Node on emulation mode and target mode.
input image format is VX_DF_IMAGE_U8 , 256*128 luma pic.

output image is VX_DF_IMAGE_U8 , 128*64luma pic.

in emulation mode ,I can get correct result.

however ,when the graph runs on SOC ,every pixel in the pic is 0x0;

below is part of my code:

obj->input_img = vxCreateImage(obj->context, obj->width, obj->height, df); 
APP_ASSERT_VALID_REF(obj->input_img);

obj->ouput_msc_img = vxCreateImage(obj->context, obj->width_out, obj->height_out, df); 
APP_ASSERT_VALID_REF(obj->ouput_msc_img);

obj->node_msc = tivxVpacMscScaleNode(obj->graph,
obj->input_img,obj->ouput_msc_img,NULL,NULL,NULL,NULL);

Q1  Is tivxVpacMscScale Node validated on SOC ?

Q2 Whether there is something of msc config  difference  between emulation and target mode?

Thanks!

  • Hello Shiming,

    My answers to your two questions are below:

    1. Yes, the tivxVpacMscScale Node is validated on the SoC.  There are a number of test cases found at tiovx/kernels_j7/hwa/test/test_vpac_msc_scale_multi_output.c that you can use for a reference.

    2. Yes, there is an additional command that must be run in target mode.  When running in target mode, the tivxNodeSendCommand call is used after calling verify to set the MSC coefficients.  Documentation on this can be found in the API docs for the MSC node.  Additionally, you can reference the test case listed above for how to implement this.

    Regards,

    Lucas