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.

TDA2EVM5777: VPE runtime control from linux side ?

Part Number: TDA2EVM5777

Hi,

I am using VSDK3.4 on TD2X EVM. And I have written a camera display use-case (similar to below) and config is "tda2xx_evm_linux_all"

Capture -> VPE -> Display

It is working fine and i can see  camera live feed on HDMI display.

Currently VPE params are configured  as below:

width = 1280;

height = 720;

crop_width  = 1280;

crop_height = 720;

        pPrm->chParams[chId].outParams[0].width = width;
        pPrm->chParams[chId].outParams[0].height = height;

        pPrm->chParams[chId].scCropCfg.cropStartX = 0;
        pPrm->chParams[chId].scCropCfg.cropStartY = 0;
        pPrm->chParams[chId].scCropCfg.cropWidth = crop_width;
        pPrm->chParams[chId].scCropCfg.cropHeight = crop_height;

Now, when use-case is running, I want to modify, scCropCfg. So that i can able to see change on display something like zooming in and zooming out.

Questions:

1. Is is possible to change VPE params when use-case is running  using system_link_control or something ?

2. If yes, Please tell me how can i do it?

Regards,

Sagar K

  • Hi Sagar,

    There is no menu option currently in visionSDK to dynamically change VPE configuration.

    Please refer these two functions in visionSDK for reference to implement your requirements.

    VpeLink_drvUpdateScCropPrm

    VpeLink_drvUpdateInputRtPrm

    The function VpeLink_drvUpdateInputRtPrm() detects runTime change of width and height of  video input to VPE from its previous link. 

    You need to make changes to recognize crop parameters from sent from menu and update VPE crop configurations accordingly.

    Hope this pointer helps.

    Thanks

    RamPrasad