我注意到:在您提供的示例中loopCount初始化为0,当g_s32FrameCnt设置为1时,实际上RK_MPI_VI_GetChnFrame执行了两次才关闭相机。
Code: Select all
if ((g_s32FrameCnt >= 0) && (loopCount > g_s32FrameCnt)) {
system("i2ctransfer -f -y 4 w3@0x30 0x01 0x00 0x00");
}
Code: Select all
if ((g_s32FrameCnt >= 0) && (loopCount > g_s32FrameCnt)) {
system("i2ctransfer -f -y 4 w3@0x30 0x01 0x00 0x00");
}
Code: Select all
if ((g_s32FrameCnt >= 0) && (loopCount > g_s32FrameCnt)) {
system("i2ctransfer -f -y 4 w3@0x30 0x01 0x00 0x00");
}