2829
- 收藏
- 点赞
- 分享
- 举报
海思3519接入双sensor问题!
请问各位大佬怎么做的,我现在修改是这样的,目前不出图,请问哈需要怎么做?
HI_S32 s32Ret;
HI_S32 s32ViCnt = 1;
VI_DEV ViDev = 1;
VI_PIPE ViPipe = 2;
VI_CHN ViChn = 0;
HI_S32 s32WorkSnsId = 1;
SAMPLE_VI_CONFIG_S stViConfig;
SIZE_S stSize;
VB_CONFIG_S stVbConf;
PIC_SIZE_E enPicSize;
HI_U32 u32BlkSize;
VO_CHN VoChn = 0;
SAMPLE_VO_CONFIG_S stVoConfig;
WDR_MODE_E enWDRMode = WDR_MODE_NONE;
DYNAMIC_RANGE_E enDynamicRange = DYNAMIC_RANGE_SDR8;
PIXEL_FORMAT_E enPixFormat = PIXEL_FORMAT_YVU_SEMIPLANAR_422;
VIDEO_FORMAT_E enVideoFormat = VIDEO_FORMAT_LINEAR;
COMPRESS_MODE_E enCompressMode = COMPRESS_MODE_NONE;
VPSS_GRP VpssGrp = 0;
VPSS_GRP_ATTR_S stVpssGrpAttr;
VPSS_CHN VpssChn = VPSS_CHN0;
HI_BOOL abChnEnable[VPSS_MAX_PHY_CHN_NUM] = {0};
VPSS_CHN_ATTR_S astVpssChnAttr[VPSS_MAX_PHY_CHN_NUM];
VENC_CHN VencChn[1] = {0};
PAYLOAD_TYPE_E enType = PT_H265;
SAMPLE_RC_E enRcMode = SAMPLE_RC_CBR;
HI_U32 u32Profile = 0;
VENC_GOP_ATTR_S stGopAttr;
/*config vi*/
SAMPLE_COMM_VI_GetSensorInfo(&stViConfig);
stViConfig.s32WorkingViNum = s32ViCnt;
stViConfig.as32WorkingViId[0] = 1;
stViConfig.astViInfo[s32WorkSnsId].stSnsInfo.MipiDev = ViDev;
stViConfig.astViInfo[s32WorkSnsId].stDevInfo.ViDev = ViDev;
stViConfig.astViInfo[s32WorkSnsId].stDevInfo.enWDRMode = enWDRMode;
stViConfig.astViInfo[s32WorkSnsId].stPipeInfo.enMastPipeMode = VI_OFFLINE_VPSS_OFFLINE;
stViConfig.astViInfo[s32WorkSnsId].stPipeInfo.aPipe[0] = ViPipe;
stViConfig.astViInfo[s32WorkSnsId].stPipeInfo.aPipe[1] = -1;
stViConfig.astViInfo[s32WorkSnsId].stPipeInfo.aPipe[2] = -1;
stViConfig.astViInfo[s32WorkSnsId].stPipeInfo.aPipe[3] = -1;
stViConfig.astViInfo[s32WorkSnsId].stChnInfo.ViChn = ViChn;
stViConfig.astViInfo[s32WorkSnsId].stChnInfo.enPixFormat = enPixFormat;
stViConfig.astViInfo[s32WorkSnsId].stChnInfo.enDynamicRange = enDynamicRange;
stViConfig.astViInfo[s32WorkSnsId].stChnInfo.enVideoFormat = enVideoFormat;
stViConfig.astViInfo[s32WorkSnsId].stChnInfo.enCompressMode = enCompressMode;
HI_S32 s32Ret;
HI_S32 s32ViCnt = 1;
VI_DEV ViDev = 1;
VI_PIPE ViPipe = 2;
VI_CHN ViChn = 0;
HI_S32 s32WorkSnsId = 1;
SAMPLE_VI_CONFIG_S stViConfig;
SIZE_S stSize;
VB_CONFIG_S stVbConf;
PIC_SIZE_E enPicSize;
HI_U32 u32BlkSize;
VO_CHN VoChn = 0;
SAMPLE_VO_CONFIG_S stVoConfig;
WDR_MODE_E enWDRMode = WDR_MODE_NONE;
DYNAMIC_RANGE_E enDynamicRange = DYNAMIC_RANGE_SDR8;
PIXEL_FORMAT_E enPixFormat = PIXEL_FORMAT_YVU_SEMIPLANAR_422;
VIDEO_FORMAT_E enVideoFormat = VIDEO_FORMAT_LINEAR;
COMPRESS_MODE_E enCompressMode = COMPRESS_MODE_NONE;
VPSS_GRP VpssGrp = 0;
VPSS_GRP_ATTR_S stVpssGrpAttr;
VPSS_CHN VpssChn = VPSS_CHN0;
HI_BOOL abChnEnable[VPSS_MAX_PHY_CHN_NUM] = {0};
VPSS_CHN_ATTR_S astVpssChnAttr[VPSS_MAX_PHY_CHN_NUM];
VENC_CHN VencChn[1] = {0};
PAYLOAD_TYPE_E enType = PT_H265;
SAMPLE_RC_E enRcMode = SAMPLE_RC_CBR;
HI_U32 u32Profile = 0;
VENC_GOP_ATTR_S stGopAttr;
/*config vi*/
SAMPLE_COMM_VI_GetSensorInfo(&stViConfig);
stViConfig.s32WorkingViNum = s32ViCnt;
stViConfig.as32WorkingViId[0] = 1;
stViConfig.astViInfo[s32WorkSnsId].stSnsInfo.MipiDev = ViDev;
stViConfig.astViInfo[s32WorkSnsId].stDevInfo.ViDev = ViDev;
stViConfig.astViInfo[s32WorkSnsId].stDevInfo.enWDRMode = enWDRMode;
stViConfig.astViInfo[s32WorkSnsId].stPipeInfo.enMastPipeMode = VI_OFFLINE_VPSS_OFFLINE;
stViConfig.astViInfo[s32WorkSnsId].stPipeInfo.aPipe[0] = ViPipe;
stViConfig.astViInfo[s32WorkSnsId].stPipeInfo.aPipe[1] = -1;
stViConfig.astViInfo[s32WorkSnsId].stPipeInfo.aPipe[2] = -1;
stViConfig.astViInfo[s32WorkSnsId].stPipeInfo.aPipe[3] = -1;
stViConfig.astViInfo[s32WorkSnsId].stChnInfo.ViChn = ViChn;
stViConfig.astViInfo[s32WorkSnsId].stChnInfo.enPixFormat = enPixFormat;
stViConfig.astViInfo[s32WorkSnsId].stChnInfo.enDynamicRange = enDynamicRange;
stViConfig.astViInfo[s32WorkSnsId].stChnInfo.enVideoFormat = enVideoFormat;
stViConfig.astViInfo[s32WorkSnsId].stChnInfo.enCompressMode = enCompressMode;
我来回答
回答3个
时间排序
认可量排序
认可0
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2020-06-04 11:15:55
-
2017-12-14 14:03:12
-
2020-05-12 17:37:37
-
2018-10-17 16:10:55
-
2019-03-03 02:04:08
-
2023-06-26 17:15:29
-
2018-04-12 14:02:29
-
2021-05-08 14:16:06
-
2024-01-16 20:59:11
-
2018-06-22 10:43:03
-
2019-12-16 09:36:27
-
2019-01-27 10:27:30
-
2017-07-02 18:40:34
-
2020-08-01 12:07:43
-
2023-06-29 20:03:47
-
2016-11-04 13:37:08
-
2019-04-08 15:52:41
-
2014-12-25 12:15:14
-
2019-01-10 11:55:42
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5SS928的emmc有32GB,bootargs设置使用16GB,但是为啥能用的只有rootfs的大小
-
33SS928怎样烧写ubuntu系统
-
10ToolPlatform下载rootfs提示网络失败
-
10谁有GK7205V500的SDK
-
5Hi3516CV610 烧录不进去
-
10Hi3559AV100 芯片硬解码h265编码格式的视频时出现视频播放错误,解码错误信息 s32PackErr:码流有错
-
5海思SS928 / SD3403的sample_venc.c摄像头编码Demo中,采集到的摄像头的YUV数据在哪个相关的函数中?
-
5海鸥派openEuler无法启动网卡,连接WIFI存在问题
-
66有没有ISP相关的巨佬帮忙看看SS928对接IMX347的图像问题
-
50求助hi3559与FPGA通过SLVS-EC接口对接问题
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认