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 add new video decoder chip to dvrrdk for dm8168

Other Parts Discussed in Thread: TVP5158

Hi,

I am writing a video decoder driver of  ADVS7181  for dm8168 based on dvrrdk,\

My input is XGA,extern sync ,8bit ,not bt656 formate any more ,

and i found most vport configure was writted for tvp5158,

i cann not find any other configure var for other video capture mode,

so how can i added adv7181 to dm8168 using like tvp5158  then?

  • Please contact your local field support for RDK related inquiries.

    Regards,

    Pavel

  • Hi,

    Please refer DM81xx_DVR_RDK_External_Video_Device_Configuration.pdf in release package.
    Device configuration is moved to A8 and you would be able to control the device using your i2c driver with minimal change in vcap layer.

    Thanks & Regards,
    Sivagamy

  • Hi Sivagamy

    As you say “Device configuration is moved to A8 and you would be able to control the device using your i2c driver with minimal change in vcap layer.”

    I kown  clearly about that,the question is that i do not kown how to configure vport of dm8168 if my video format is not like evm board,

    for example  my video using external sync siganal,or  i video format is not bt656 8bit ,or XGA 70,some things like that!


    best regards

    xavier

  • Hi Xavier,

    Do you require to capture single channel or multiple channels of video?
    RDK supports both single channel (24bits) capture OR multiplexed multi-channel capture. The capture link would require an update to support 8 bit single channel capture.

    Thanks,
    Sujith



  • Hi Sujith:

    I want to capture XGA 60Hz from  ADV7181  on dm8168 based on dvrrdk,

    My input is XGA,extern sync ,8bit ,not bt656 format,

    and i rewrite the CaptureLink_drvCreateInst function,

         .....

        if (pInstPrm->videoDecoderId == FVID2_VPS_VID_DEC_TVP5158_DRV)
        {

             .......

        }

        else if(pInstPrm->videoDecoderId == FVID2_VPS_VID_DEC_ADV7181_DRV)
        {
            inScanFormat = FVID2_SF_PROGRESSIVE;

            pInst->maxWidth = 1024;

            pInst->maxHeight = 768;

            inWidth = pInst->maxWidth;
            inHeight = pInst->maxHeight;

            pVipCreateArgs->videoCaptureMode =
            VPS_CAPT_VIDEO_CAPTURE_MODE_SINGLE_CH_NON_MUX_DISCRETE_SYNC_ACTVID_VSYNC;
            
            pVipCreateArgs->videoIfMode = VPS_CAPT_VIDEO_IF_MODE_8BIT;
            pVipCreateArgs->numCh = 1;
        }

    and i can capture video ,but video displays error when  video has r,g,b data at the same time, but the r g b

     display seperatly it is ok. It is that only r, g, b color is ok, all other diaplay error?

    I guess if some thing wrong with capture Link configue, as tvp5158 can diaplay well in Multich_vcap_vdis.c

    i rewrite the

         //adv 7181
        vipInstId            = 0;
        pCaptureInstPrm        = &capturePrm.vipInst[vipInstId];

        pCaptureInstPrm->vipInstId        = SYSTEM_CAPTURE_INST_VIP0_PORTA;
        //pCaptureInstPrm->vipInstId        = SYSTEM_CAPTURE_INST_VIP1_PORTA;

        pCaptureInstPrm->videoDecoderId = SYSTEM_DEVICE_VID_DEC_ADV7181_DRV;
        pCaptureInstPrm->inDataFormat    = SYSTEM_DF_YUV422P;
        pCaptureInstPrm->standard        = SYSTEM_STD_XGA_60;
        pCaptureInstPrm->numOutput    = 1;

        pCaptureOutPrm                = &pCaptureInstPrm->outParams[0];
        pCaptureOutPrm->dataFormat    = SYSTEM_DF_YUV422I_YUYV;
        pCaptureOutPrm->scEnable        = FALSE;
        pCaptureOutPrm->scOutWidth    = 0;
        pCaptureOutPrm->scOutHeight    = 0;
        pCaptureOutPrm->outQueId        = 0;

        Vcap_configVideoDecoder(vidDecVideoModeArgs, 1);

    Actually my pCaptureOutPrm->dataFormat    = SYSTEM_DF_YUV422P;

    but when i configure like that

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

    in fun CaptureLink_drvCreateInst, FVID2_create return NULL , the same result when pCaptureOutPrm->dataFormat  = other type except for

    SYSTEM_DF_YUV422I_YUYV,

    so i do not kown how to configure it any more?

    best regards

    xavier

  • Hi,

     

    Which data format do you want? Capture support YUV422I, YUV420SP and YUV422SP data formats only. If you try any other format, it will return error.

     

    What display error are you seeing? Please note that display does not support RGB input, it has to be YUV422I. You could first make sure you are able to capture correctly by just running capture only application. If it captures correctly for XGA resolution, you can connect capture to display..

     

    Thx,

    Brijesh

  • Hi Xavier,

    Also, Could you please contact the FAE supporting you? 

    Thanks,
    Sujith
  • I tried both YUV420SP and YUV422SP ,and

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

    return NULL

    only FVID2_DF_YUV422_I is ok,

  • Hi Xavier,

    I am trying to integrate ADV7181 driver to the DM8168 RDK. i have updated the application and the VPSS firmware. But there is no video data to the capture link. Do you have any suggestion or list of modification needed? 

    Thanks,

    Jebaraj