Hi,
I am using DVR-RDK3.50.00.05 for DM8168 EVM.
I want to capture 1080p60 resolution video through tvp7002. As demos in the rdk doesn't support tvp7002 capture, i have configured tvp7002 through i2c utility in 1080p60 16-bit embedded sync mode.
I made an application which capture and display using MCFW APIs. I gave capture create time parameters as follows,
CaptureLink_CreateParams_Init(&capturePrm);
capturePrm.numVipInst = 1;
capturePrm.outQueParams[0].nextLink = gVdisModuleContext.displayId[0];
capturePrm.tilerEnable = FALSE;
capturePrm.enableSdCrop = FALSE;
pCaptureInstPrm = &capturePrm.vipInst[0];
pCaptureInstPrm->vipInstId = (SYSTEM_CAPTURE_INST_VIP0_PORTA+vipInstId)%SYSTEM_CAPTURE_INST_MAX;
pCaptureInstPrm->videoDecoderId = SYSTEM_DEVICE_VID_DEC_TVP7002_DRV; //Other then SYSTEM_DEVICE_VID_DEC_TVP5158_DRV
pCaptureInstPrm->inDataFormat = SYSTEM_DF_YUV422P;
pCaptureInstPrm->standard = SYSTEM_STD_1080P_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;
System_linkCreate (gVcapModuleContext.captureId, &capturePrm, sizeof(capturePrm));
But this application doesn't display captured output properly. There is lots of distortion present in the output.
I am attaching the result of this application.
You can see in this image that there is lots of noise in the video.
I have doubts in the rdk application or framework or in configuring tvp7002 through i2c.
Is there anything wrong with the above capture create time parameters ?
I am also attaching list of i2c commands configuring tvp7002 registers.
#i2cset -y 2 0x21 0x0f 0xfb i2cset -y 2 0x21 0x0f 0xCB i2cdump -y -r 0-0xff 2 0x5d b i2cset -y 2 0x5d 0x01 0x89 i2cset -y 2 0x5d 0x02 0x80 i2cset -y 2 0x5d 0x03 0xE0 i2cset -y 2 0x5d 0x04 0x80 i2cset -y 2 0x5d 0x05 0x32 i2cset -y 2 0x5d 0x06 0x20 i2cset -y 2 0x5d 0x07 0x2C i2cset -y 2 0x5d 0x0B 0x80 i2cset -y 2 0x5d 0x0C 0x90 i2cset -y 2 0x5d 0x0D 0x80 i2cset -y 2 0x5d 0x0E 0x3F i2cset -y 2 0x5d 0x0F 0x2E i2cset -y 2 0x5d 0x10 0x5D i2cset -y 2 0x5d 0x11 0x40 i2cset -y 2 0x5d 0x12 0x00 i2cset -y 2 0x5d 0x13 0x01 i2cset -y 2 0x5d 0x15 0x47 i2cset -y 2 0x5d 0x16 0x01 i2cset -y 2 0x5d 0x17 0x00 i2cset -y 2 0x5d 0x18 0x01 i2cset -y 2 0x5d 0x19 0x00 i2cset -y 2 0x5d 0x1A 0x8F i2cset -y 2 0x5c 0x21 0x35 i2cset -y 2 0x5c 0x22 0x00 i2cset -y 2 0x5c 0x26 0x80 i2cset -y 2 0x5c 0x28 0x53 i2cset -y 2 0x5c 0x2A 0x87 i2cset -y 2 0x5c 0x2B 0x00 i2cset -y 2 0x5c 0x2C 0x80 i2cset -y 2 0x5c 0x2D 0x00 i2cset -y 2 0x5c 0x2E 0x80 i2cset -y 2 0x5c 0x31 0x5A i2cset -y 2 0x5d 0x34 0x09 i2cset -y 2 0x5d 0x3F 0x0F i2cset -y 2 0x5d 0x40 0x07 i2cset -y 2 0x5d 0x41 0x01 i2cset -y 2 0x5d 0x42 0x8B i2cset -y 2 0x5d 0x43 0x08 i2cset -y 2 0x5d 0x44 0x04 i2cset -y 2 0x5d 0x45 0x04 i2cset -y 2 0x5d 0x46 0x2D i2cset -y 2 0x5d 0x47 0x2D i2cset -y 2 0x5d 0x48 0x00 i2cset -y 2 0x5d 0x49 0x00 i2cdump -y -r 0-0xff 2 0x5d b
Am i doing anything wrong in configuring tvp7002 ?
Please help me to solve this issue.
Note: I have also configured tvp7002 in 720p60 16-bit embedded mode and ran above application by changing pCaptureInstPrm->standard to SYSTEM_STD_720P_60.This application was working fine with 720p60.
Seeking quick response.
Thanks in advance,
Shabbir Limdiwala