hi, all!
capture->mpsclar->display 日志没有错误信息,但连接显示器却没有视频,为什么?
版本:DVRRDK4.0.0.1 DM8168-evm
Eason Wang:
Hi,
请问代码没有任何改动?请把完整的log贴上来看看。
可不可能是显示器不支持? 用的是HDMI还是VGA?
BR,
Eason
yueping Tian:
回复 Eason Wang:
谢谢! 附件是日志信息,Usecase如下:
gVcapModuleContext.captureId = SYSTEM_LINK_ID_CAPTURE; gVcapModuleContext.sclrId[1] = SYSTEM_LINK_ID_MP_SCLR_INST_0; gVdisModuleContext.displayId[0] = SYSTEM_LINK_ID_DISPLAY_0; // ON CHIP HDMI
/*capturePrm*/ CaptureLink_CreateParams_Init(&capturePrm); capturePrm.numVipInst = 1; capturePrm.outQueParams[0].nextLink = gVcapModuleContext.sclrId[1]; capturePrm.tilerEnable = FALSE; capturePrm.enableSdCrop = FALSE; capturePrm.fakeHdMode = TRUE; capturePrm.isPalMode = FALSE; capturePrm.maxBlindAreasPerCh = 4; pCaptureInstPrm = &capturePrm.vipInst[0]; pCaptureInstPrm->vipInstId = SYSTEM_CAPTURE_INST_VIP0_PORTA; pCaptureInstPrm->inDataFormat = SYSTEM_DF_YUV422P; pCaptureInstPrm->standard = SYSTEM_STD_1080P_60; pCaptureInstPrm->numOutput = 1; pCaptureOutPrm = &pCaptureInstPrm->outParams[0]; pCaptureOutPrm->dataFormat = SYSTEM_DF_YUV420SP_UV; pCaptureOutPrm->scEnable = FALSE; pCaptureOutPrm->scOutWidth = 0; pCaptureOutPrm->scOutHeight = 0; pCaptureOutPrm->outQueId = 0; VCAP_VIDEO_SOURCE_STATUS_S vidSourceStatus; VCAP_VIDEO_SOURCE_CH_STATUS_S *pVidStatus; pVidStatus = &(vidSourceStatus.chStatus[0]); pVidStatus->isVideoDetect = TRUE; pVidStatus->frameWidth = 2464; pVidStatus->frameHeight = 2048; pVidStatus->frameInterval = 110; pVidStatus->isInterlaced = FALSE; pVidStatus->vipInstId = 0; pVidStatus->chId = 0; vidSourceStatus.numChannels = 1; Vcap_setVideoSourceStatus(&vidSourceStatus); /*mpsclr param*/ MpSclrLink_CreateParams_Init(&mpSclrPrm1); mpSclrPrm1.pathId = MP_SCLR_LINK_SC5;//MP_SCLR_LINK_SEC1_SC4_VIP1; mpSclrPrm1.numCh = 1; mpSclrPrm1.inQueParams.prevLinkId = gVcapModuleContext.captureId; mpSclrPrm1.inQueParams.prevLinkQueId = 0; mpSclrPrm1.outQueParams.nextLink = gVdisModuleContext.displayId[0]; displayPrm[0].inQueParams[0].prevLinkId = gVcapModuleContext.sclrId[1] ; displayPrm[0].inQueParams[0].prevLinkQueId = 0; displayPrm[0].displayRes = VSYS_STD_1080P_60; System_linkCreate (gVcapModuleContext.captureId, &capturePrm, sizeof(capturePrm)); System_linkCreate(gVcapModuleContext.sclrId[1], &mpSclrPrm1, sizeof(mpSclrPrm1)); System_linkCreate(gVdisModuleContext.displayId[0], &displayPrm[0], sizeof(displayPrm[0])); MultiCh_memPrintHeapStatus();