- 积分
- 26
贡献194
飞刀28 FD
注册时间2018-10-31
在线时间3 小时
|
楼主 |
发表于 2019-6-11 09:37:55
|
显示全部楼层
从官方的下面代码看,感觉是支持两个摄像头的,是不是还有其它的地方需要配置
int V4l2NexellPrivate::linkDefault()
{
int ret;
if (SubdevUsage.useSensor0) {
if (CameraInfo[0].IsMIPI) {
// link sensor0 -> mipicsi
if (!SubdevUsage.useMipiCSI) {
ALOGE("%s: invalid SubDevUsageScheme!!!, sensor0 is mipi, but mipi not included", __func__);
return -EINVAL;
}
ret = link(Sensor0, MipiCSI);
if (ret) {
ALOGE("%s: failed to link Sensor0 to MipiCSI", __func__);
return ret;
}
ret = link(MipiCSI, Clipper0);
if (ret) {
ALOGE("%s: failed to link MipiCSI to Clipper0", __func__);
return ret;
}
} else {
ret = link(Sensor0, Clipper0);
if (ret) {
ALOGE("%s: failed to link Sensor0 to Clipper0", __func__);
return ret;
}
}
}
if (SubdevUsage.useSensor1) {
if (CameraInfo[1].IsMIPI) {
// link sensor1 -> mipicsi
if (!SubdevUsage.useMipiCSI) {
ALOGE("%s: invalid SubDevUsageScheme!!!, sensor1 is mipi, but mipi not included", __func__);
return -EINVAL;
}
ret = link(Sensor1, MipiCSI);
if (ret) {
ALOGE("%s: failed to link Sensor1 to MipiCSI", __func__);
return ret;
}
ret = link(MipiCSI, Clipper1);
if (ret) {
ALOGE("%s: failed to link MipiCSI to Clipper1", __func__);
return ret;
}
} else {
ret = link(Sensor1, Clipper1);
if (ret) {
ALOGE("%s: failed to link Sensor1 to Clipper1", __func__);
return ret;
}
}
}
if (UsageScheme.useDecimator0) {
ret = link(Clipper0, Decimator0);
if (ret)
return ret;
}
if (UsageScheme.useDecimator1) {
ret = link(Clipper1, Decimator1);
if (ret)
return ret;
}
return 0;
} |
|