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.

TDA3XEVM: How can i use the "Utils_dmaFill2D" ?

Part Number: TDA3XEVM

Hello,

I am trying to display with Utils_dmaFill2D the bimap image.

The bitmap image is "DRAW2D_BMP_IDX_JEEP_IMAGE_TRUESCALE" in SDK_VISION_03_00.

How can i display the bimap image by using the Utils_dmaFill2D ?

Plz let me know how to use the Utils_dmaFill2D or example.

Regard,

Lee.

  • Hi Lee,

    You could refer to deWarp link example, it uses Utils_dmaFill2D API to fill the buffer from another image.
    There is also example in DMA SWMS link, it uses this API to copy output buffer with the black color.

    Regards,
    Brijesh
  • Hi Brijesh,

    Where is the deWarp link example ?
    I can't find what you know.

    Regards,
    Lee
  • Hi Brijesh,

    Isn't there the example by using the bitmap of SDK_VISION_03_00?
    When i see the "deWarpPreFillOutBuf" function, it's difficult to understand the structure.

    Regards,
    Lee
  • Hi Lee,

    Essentially, this API copies YUV420 buffer using this API from algorithms local buffer to the output buffer.
    Unfortunately, there is no example using bitmap. In fact, why don't you use Utils_dmaCopy2D API?
    I guess this is what you want to do, you want to copy bitmap file into graphics buffer.

    Regards,
    Brijesh
  • Hi Brijesh,

    I used the below code with using Utils_dmaCopy2D API.
    But, the bitmap image not display.
    is it right to use the Utils_dmaCopy2D API like below ?
     
     
    Regards,
    Lee

  • Hi Lee,

    Where have you added this code? Is this (pObj->outObj.videoFrames[0].bufAddr[0];) Grpx buffer address?
    Please this has to be grpx buffer address in order to get it displayed over grpx link.
    Most of the GRPX layouts are drawn using copy2D API in the apps/src/rtos/modules/grpxSrc folder. Are you adding code here?

    Also have you enabled GRPX link in your usecase?

    Rgds,
    Brijesh
  • Hi Brijesh,

    Below is answer for your questions.
    1. This code called the "GrpxSrcLink_tskMain" in grpxSrcLink_tsk.c
    status = GrpxSrcLink_drawTDA3x_Layout_Run(pObj);

    2. This (pObj->outObj.videoFrames[0].bufAddr[0];) is Grpx buffer address.
    It defined as follows "GrpxSrcLink_Obj *pObj".

    3. This code added "apps/src/rtos/modules/grpxSrc" folder.
    Also, when i execute "GrpxSrcLink_drawOverlaysRun" function, it didn't display.
    I referenced to display the bitmap the code of "GrpxSrcLink_drawOverlaysRun".

    4. The GRPX was set as below.
    And, when i used the "Draw2D_drawBmp" API, it displayed well.
    ChainsCommon_SetGrpxSrcPrms(&pAppObj->ucObj.GrpxSrcPrm,
    pAppObj->displayWidth,
    pAppObj->displayHeight);

    Regards,
    Lee
  • Hi Lee, 

    Looks like you already have grpx included in the usecase. 

    Do you see see any grpx on your display? Do you TI logo or performance stats? By any change, is it possible that your bitmap is getting overwritten by this graphics?

    Rgds,

    Brijesh

  • Hi Lee,

    I haven't heard back from you, Let us know if this issue is resolved.

    Rgds,
    Brijesh
  • Hi Brijesh,

    I couldn't confirm it due to other urgent issues.
    I'll check it later personally this issue.

    Regards,
    Lee