基于Hi3559AV100 RFCN实现细节解析-(3)系统输入VI分析一 :

1 SAMPLE_COMM_VI_GetSensorInfo(pstViConfig); 2 //pstViConfig->astViInfo[0].stSnsInfo.enSnsType = SENSOR0_TYPE; 3 4 pstViConfig->s32WorkingViNum = s32ViCnt; 5 6 pstViConfig->as32WorkingViId[0] = 0; 7 pstViConfig->astViInfo[0].stSnsInfo.MipiDev = SAMPLE_COMM_VI_GetComboDevBySensor(pstViConfig->astViInfo[0].stSnsInfo.enSnsType, 0); 8 pstViConfig->astViInfo[0].stSnsInfo.s32BusId = 0; 9 10 pstViConfig->astViInfo[0].stDevInfo.ViDev = ViDev0; 11 pstViConfig->astViInfo[0].stDevInfo.enWDRMode = enWDRMode; 12 13 pstViConfig->astViInfo[0].stPipeInfo.enMastPipeMode = enMastPipeMode; 14 pstViConfig->astViInfo[0].stPipeInfo.aPipe[0] = ViPipe0; 15 pstViConfig->astViInfo[0].stPipeInfo.aPipe[1] = -1; 16 pstViConfig->astViInfo[0].stPipeInfo.aPipe[2] = -1; 17 pstViConfig->astViInfo[0].stPipeInfo.aPipe[3] = -1; 18 19 pstViConfig->astViInfo[0].stChnInfo.ViChn = ViChn; 20 pstViConfig->astViInfo[0].stChnInfo.enPixFormat = enPixFormat; 21 pstViConfig->astViInfo[0].stChnInfo.enDynamicRange = enDynamicRange; 22 pstViConfig->astViInfo[0].stChnInfo.enVideoFormat = enVideoFormat; 23 pstViConfig->astViInfo[0].stChnInfo.enCompressMode = enCompressMode; 24 25 /****************************************** 26 Start vi 27 ******************************************/ 28 s32Ret = SAMPLE_COMM_VI_SetParam(pstViConfig); 29 SAMPLE_CHECK_EXPR_GOTO(HI_SUCCESS != s32Ret, END_INIT_1, 30 "Error(%#x),SAMPLE_COMM_VI_SetParam failed!\n",s32Ret); 31 32 s32Ret = SAMPLE_COMM_VI_StartVi(pstViConfig); 33 SAMPLE_CHECK_EXPR_GOTO(HI_SUCCESS != s32Ret, END_INIT_1, 34 "Error(%#x),SAMPLE_COMM_VI_StartVi failed!\n",s32Ret);

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wpfzzw.html