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.

TDA4VL-Q1: tiovx display m2m can't convert image to rgbx

Part Number: TDA4VL-Q1

Tool/software:

SDK: ti-processor-sdk-rtos-j721s2-evm-08_06_01_03

due to resource limitation, we try to use display m2m to convert an input image with format rgbx and resolution 1920x1080 into image with format rgbx and resolution 2560x1440, but we found the convert failed with error info attached.

could you please confirm the feasibility of the usage, and how to fix the error reported.

Best Regards.

  • Hi,

    It seems to be throwing error from the create callback of the DSS M2M node. 

    Could you please run "./vision_apps_init.sh" before running your application and then run your application?

    This will provide the logs from MCU2_0 core.

    Regards,

    Nikhil

  • Hi Nikhil,

    we made below change on file `tiovx/kernels_j7/hwa/display_m2m/vx_display_m2m_target.c`

    change `case (vx_df_image)VX_DF_IMAGE_RGBX: format->dataFormat = FVID2_DF_RGBX24_8888;` to `format->dataFormat = FVID2_DF_XBGR24_8888`,

    and display m2m didn't report error and it can work.

  • Hi,

    Does this resolve your issue?

    Regards,

    Nikhil

  • Hi Nikhil

    Sorry for late replay. after above change, dss m2m didn't report error. but the outputted image is in wrong color. it display white contents as green.

  • Hi,

    case (vx_df_image)VX_DF_IMAGE_RGBX: format->dataFormat = FVID2_DF_RGBX24_8888;` to `format->dataFormat = FVID2_DF_XBGR24_8888`,

    May I know why this change was required?

    Regards,

    Nikhil

  • Hi Nikhil,

    this change is not mandatory, our final purpose is to convert input image with resolution 1920x1080 in format rgba to output image with resolution 2560x1440 in format of rgba. but without any change, display m2m can't work, and it report errors just as the first image shown. then we tried this change, and after this change m2m didn't report any error, but the output image is in wrong color.

    then is there any way that we can achieve the final purpose, to convert input image with resolution 1920x1080 in format of rgba to output image with resolution 2560x1440 in format of rgba.

    Best Regards

  • Hi,

    Could you please run "./vision_apps_init.sh" before running your application and then run your application?

    This will provide the logs from MCU2_0 core.

    Can you do the above to understand from where in the create callback of DSS M2M is that error coming from?

    Regards,

    Nikhil

  • Hi Nikhil

    please find error output as attached. this happens on the original tiovx without above change.

  • Hi,

    This looks like a bug in the software. 

    Could you add the below highlighted line in the file csl_dssWbPipe.c in pdk/packages/ti/csl/src/ip/dss/V4/priv/ in the struct gDssWbPipeDataFmt[ ]

    {FVID2_DF_BGRX32_8888, CSL_DSS_WB_ATTRIBUTES_FORMAT_VAL_XBGR32_8888, {32, 0, 0}},
    + {FVID2_DF_RGBX24_8888, CSL_DSS_WB_ATTRIBUTES_FORMAT_VAL_RGBX32_8888, {32, 0, 0}},
    {FVID2_DF_BGRX24_8888, CSL_DSS_WB_ATTRIBUTES_FORMAT_VAL_XRGB32_8888, {32, 0, 0}},

    Could you let me know if this works at your end? Please remove any earlier changes

    Regards,

    Nikhil

  • Hi Nikhil,

    we tried that modification on original pdk, and it still work abnormal. no errors from mcu20 reported, and it can also finish converting. but it convert rgba to abgr. do we still need other modification?

    Best Regards 

  • Hi,

    Can you try the below i.e. instead of CSL_DSS_WB_ATTRIBUTES_FORMAT_VAL_RGBX32_8888can you try CSL_DSS_WB_ATTRIBUTES_FORMAT_VAL_XBGR32_8888

    {FVID2_DF_BGRX32_8888, CSL_DSS_WB_ATTRIBUTES_FORMAT_VAL_XBGR32_8888, {32, 0, 0}},
    + {FVID2_DF_RGBX24_8888, CSL_DSS_WB_ATTRIBUTES_FORMAT_VAL_XBGR32_8888, {32, 0, 0}},
    {FVID2_DF_BGRX24_8888, CSL_DSS_WB_ATTRIBUTES_FORMAT_VAL_XRGB32_8888, {32, 0, 0}},

    You could also confirm by reading the register 0x04AF0020 and read the bit [6:1] for format. This should contain the value 0x28

    Regards,

    Nikhil

  • Hi Nikhil

    this works. now it can convert successfully. Thanks a lot.

    Best Regards

  • Thank you for the confirmation. 

    I have raised this as a bug and should be fixed in coming SDK.

    Regards,

    Nikhil