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.

how to set vip mode dynamically

can i set vip parameters dynamically without deleting and creating all the links, just deleting and creating only capture link?

when i use vip1 port A  ,i set it 16bits wide.  and then i run the demo.

if i want to change the vip1 port A to 8 bits wide dynamically ,

after TI employee help me ,i just know the direction , but i dont know the details.

now i use this plan to change vip ,but  it can not work .my plan is:

System_linkStop(capID);

System_linkDelete(capID);

config capture paramaters

System_linkCreate(capID);

System_linkStart(capID);

i need help .thank you very much

  • now i change the process flow like bellow:

    System_linkStop(capID);

    System_linkControl(capID,cmd...);

    System_linkStart(capID);


    in capture link cmd , i do little change like this:

    Int32 CaptureLink_drvRecreateVip1PortA(CaptureLink_Obj * pObj, UInt16 instId, UInt16 DVIorAV)
    {
    CaptureLink_InstObj *pInst;
    Vps_CaptCreateParams *pVipCreateArgs;

    if(DVIorAV > 1)
    return -1;

    pInst = &pObj->instObj[instId];
    pVipCreateArgs = &pInst->createArgs;

    ///DVI
    if(DVIorAV == 0)
    pVipCreateArgs->videoIfMode = VPS_CAPT_VIDEO_IF_MODE_16BIT;
    else///1-AV
    pVipCreateArgs->videoIfMode = VPS_CAPT_VIDEO_IF_MODE_8BIT;

    /* VIP capture */
    FVID2_delete(pInst->captureVipHandle, NULL);
    pInst->captureVipHandle = NULL;

    pInst->captureVipHandle = FVID2_create(FVID2_VPS_CAPT_VIP_DRV,
    pInst->instId,
    pVipCreateArgs,
    &pInst->createStatus, &pInst->cbPrm);

    UTILS_assert(pInst->captureVipHandle != NULL);

    return FVID2_SOK;
    }

    but it does not work as i wish. 


  • Pls refer this post where capture stop/start is implemented successfully on DVR RDK 4.0

    http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/717/t/283195.aspx