2909
- 收藏
- 点赞
- 分享
- 举报
双sensor的mipi结构体配置
本帖最后由 qn1561685365 于 2019-8-1 21:05 编辑
双sensor,sensor0用LVDS,sensor1用mipi。LVDS 用link0和link1。mipi用link2.结构配置如下:
LVDS配置
combo_dev_attr_t LVDS_8lane_SENSOR_IMX226_12BIT_8M_NOWDR_ATTR =
{
.devno = 0,
/* input mode */
.input_mode = INPUT_MODE_LVDS,
.phy_clk_share = PHY_CLK_SHARE_PHY0,
.img_rect = {252, 18, 3840, 2160},
.lvds_attr =
{
.raw_data_type = RAW_DATA_12BIT,
.wdr_mode = HI_WDR_MODE_NONE,
.sync_mode = LVDS_SYNC_MODE_SAV,
.vsync_type = {LVDS_VSYNC_NORMAL, 0, 0},
.fid_type = {LVDS_FID_NONE, HI_TRUE},
.data_endian = LVDS_ENDIAN_BIG,
.sync_code_endian = LVDS_ENDIAN_BIG,
.lane_id = {0, 1, 2, 6, 3, 4, 7, 5, -1, -1, -1, -1},
.sync_code =
{
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane 0
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane 1
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane2
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane3
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane4
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane5
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane6
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane7
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
}
}
};
combo_dev_attr_t MIPI_pTG_ATTR =
{
.devno = 1,
.input_mode = INPUT_MODE_MIPI,
.phy_clk_share = PHY_CLK_SHARE_PHY0,
.img_rect = {0, 0, 720, 576},
.mipi_attr =
{
.raw_data_type = RAW_DATA_12BIT,
.wdr_mode = HI_MIPI_WDR_MODE_NONE,
.lane_id = {0, 1, -1, -1, -1, -1, -1, -1}
//.lane_id = {0, 1, 2, 3, -1, -1, -1, -1}
//.lane_id = { -1, 0, 1, -1, -1 ,-1, -1, -1}
}
};
phy_clk_share 都配成PHY_CLK_SHARE_PHY0,但是好像说sensor1不能配成PHY_CLK_SHARE_PHY0。但是如果我不配成这个的话,sensor1拿不到分辨率,而且就算配成PHY_CLK_SHARE_PHY0拿到的分辨率也不对
有大侠看一下这样配置是不是对啊。sensor1的link2是不是不能用PHY_CLK_SHARE_PHY0的啊
双sensor,sensor0用LVDS,sensor1用mipi。LVDS 用link0和link1。mipi用link2.结构配置如下:
LVDS配置
combo_dev_attr_t LVDS_8lane_SENSOR_IMX226_12BIT_8M_NOWDR_ATTR =
{
.devno = 0,
/* input mode */
.input_mode = INPUT_MODE_LVDS,
.phy_clk_share = PHY_CLK_SHARE_PHY0,
.img_rect = {252, 18, 3840, 2160},
.lvds_attr =
{
.raw_data_type = RAW_DATA_12BIT,
.wdr_mode = HI_WDR_MODE_NONE,
.sync_mode = LVDS_SYNC_MODE_SAV,
.vsync_type = {LVDS_VSYNC_NORMAL, 0, 0},
.fid_type = {LVDS_FID_NONE, HI_TRUE},
.data_endian = LVDS_ENDIAN_BIG,
.sync_code_endian = LVDS_ENDIAN_BIG,
.lane_id = {0, 1, 2, 6, 3, 4, 7, 5, -1, -1, -1, -1},
.sync_code =
{
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane 0
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane 1
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane2
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane3
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane4
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane5
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane6
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane7
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
}
}
};
combo_dev_attr_t MIPI_pTG_ATTR =
{
.devno = 1,
.input_mode = INPUT_MODE_MIPI,
.phy_clk_share = PHY_CLK_SHARE_PHY0,
.img_rect = {0, 0, 720, 576},
.mipi_attr =
{
.raw_data_type = RAW_DATA_12BIT,
.wdr_mode = HI_MIPI_WDR_MODE_NONE,
.lane_id = {0, 1, -1, -1, -1, -1, -1, -1}
//.lane_id = {0, 1, 2, 3, -1, -1, -1, -1}
//.lane_id = { -1, 0, 1, -1, -1 ,-1, -1, -1}
}
};
phy_clk_share 都配成PHY_CLK_SHARE_PHY0,但是好像说sensor1不能配成PHY_CLK_SHARE_PHY0。但是如果我不配成这个的话,sensor1拿不到分辨率,而且就算配成PHY_CLK_SHARE_PHY0拿到的分辨率也不对
有大侠看一下这样配置是不是对啊。sensor1的link2是不是不能用PHY_CLK_SHARE_PHY0的啊
我来回答
回答2个
时间排序
认可量排序
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2020-12-03 16:41:00
-
2020-10-14 10:22:43
-
2010-07-23 16:56:24
-
2018-11-21 14:27:10
-
2018-11-06 09:24:31
-
2016-08-26 12:02:21
-
2020-11-22 16:19:40
-
2016-03-07 10:35:26
-
2023-10-17 10:59:00
-
2014-11-21 14:38:02
-
2014-11-21 14:44:08
-
2019-12-16 11:47:43
-
2024-07-10 14:06:09
-
2022-07-19 09:23:55
-
2018-12-17 11:31:24
-
2014-12-25 12:15:14
-
2020-05-12 17:37:37
-
2020-12-18 20:37:16
-
112019-05-16 19:17:40
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5Hi3516CV610 如何使用SD卡升级固件
-
5cat /dev/logmpp 报错 <3>[ vi] [func]:vi_send_frame_node [line]:99 [info]:vi pic queue is full!
-
50如何获取vpss chn的图像修改后发送至vo
-
5FPGA通过Bt1120传YUV422数据过来,vi接收不到数据——3516dv500
-
50SS928 运行PQtools 拼接 推到设备里有一半画面会异常
-
53536AV100的sample_vdec输出到CVBS显示
-
10海思板子mpp怎么在vi阶段改变视频数据尺寸
-
10HI3559AV100 多摄像头同步模式
-
9海思ss928单路摄像头vio中加入opencv处理并显示
-
10EB-RV1126-BC-191板子运行自己编码的程序
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认