当前位置:网站首页>海思 VI接入视频流程
海思 VI接入视频流程
2022-07-02 22:10:00 【天未及海宽】
目录
1. 接入多路视频,必须要清楚Vi Dev号,Mipi号,Pipe号,chn号关系;
问题1: 不同视频接入如何确定MIPI号与Vi Dev(设备)号对应情况;
1.接入多路视频,必须要清楚Vi Dev号,Mipi号,Pipe号,chn号关系;

从上图知道流程:sensor->mipi->Dev->Pipe->phy chn
2.设备/PIPE/通道号选择
看下图,列出了设备/PIPE/通道号的最大支持数量;

那么问题来了, 大多芯片都不止一个设备/PIPE/通道号,如何才能找对呢?
问题1: 不同视频接入如何确定MIPI号与Vi Dev(设备)号对应情况;
文档有:
Hi3559AV100ES 的 Dev 可以与任意 MIPI 设置绑定,不能动态修改绑定关系;对应的接口为HI_MPI_VI_SetMipiBindDev;
其他的大多芯片Dev 与 MIPI 绑定关系是固定的, 不能动态修改绑定关系;
从下表可判断,不能动态绑定的VI DEV和MIPI号是相等的;

从表可看出: 该芯片若要对接DC接口,VI DEV只能是3,DC号为2; 要对接MIPI接口,VI DEV可以是0~4;
问题2: PIPE号如何确定;
以hi3516为例, pipe号最大为4;即pipe0~pipe3;
VI_PIPE_ATTR_S属性中有一些限制!

从表知, 若要接入YUV数据, pipe号只能是2; 若要接入raw,所有pipe都ok;
设备号绑定pipe号的接口为: HI_MPI_VI_SetDevBindPipe;
问题3:chn号如何确认;
从通道号最大值知,若只有1个,填0即可; 多个自行决定;
只要前面的mipi号/dev号/pipe号有一个不一样,那么即使chn相同整个通路也不一样;
如: mipi0--> dev0--->pipe2-->chn0 ;
mipi1--> dev1--->pipe0-->chn0;
3. 软件总结:
(a) combo_dev_attr_t属性中的devno可理解成mipi号,除Hi3559AV100ES外,该mipi号与vi DEV号相同;
(b) mipi号与vi DEV号除Hi3559AV100ES外均固定,不需要绑定;意味着对应的mipi号有数据了,那么等同于对应的vi DEV号也有数据了;
(c) HI_MPI_VI_SetDevBindPipe接口实现VI DEV号与PIPE号的绑定; 那么对应的PIPE就有数据了;
(d) PIPE有数据了,就可以通过dump工具查看等,后续略;
4. 补充
问题: vi_put_original_node_to_line_input_pic_queue [line]:2539 [info]:pipe 2 no space to receive this frm!
前提: 接了两路不同的视频数据; 其中一路通过isp,另一类不需要;
现象: 单独调试两路视频显示均ok,一起接入时isp视频正常,另一类只能到vi pipe;
处理: 主动调用HI_MPI_VI_GetPipeFrame,获取到帧数据后,再HI_MPI_VPSS_SendFrame传给vpss;
问题倒是解决了,原理是什么暂不清楚!
下一篇:海思vpss前后绑定关系
边栏推荐
- Introduction to the latest plan of horizon in April 2022
- 编辑卡顿
- 數據分析學習記錄--用EXCEL完成簡單的單因素方差分析
- xshell配置xforward转发火狐浏览器
- 2016. 增量元素之间的最大差值
- Freshman learning sharing
- China Academy of information technology, Tsinghua University, Tencent security, cloud native security, industry university research and use strong alliance!
- P7072 [CSP-J2020] 直播获奖
- 剑指 Offer II 099. 最小路径之和-双百代码
- [chestnut sugar GIS] ArcMap - how to batch modify the font, color, size, etc. of annotation elements
猜你喜欢
![[chestnut sugar GIS] how does global mapper batch produce ground contour lines through DSM](/img/5d/c23ec16df6ce8d78207b635f59dc20.png)
[chestnut sugar GIS] how does global mapper batch produce ground contour lines through DSM

Start from the bottom structure to learn the customization and testing of FPGA --- Xilinx ROM IP

Loss function~

Typical case of data annotation: how does jinglianwen technology help enterprises build data solutions

数据分析学习记录--用EXCEL完成简单的单因素方差分析

boot actuator - prometheus使用

地平线2022年4月最新方案介绍

中国信通院、清华大学、腾讯安全,云原生安全产学研用强强联合!

从2022年Q1财报看携程的韧性和远景

Uniapp wechat login returns user name and Avatar
随机推荐
Golang interview finishing three resumes how to write
泛型与反射,看这篇就够了
[羊城杯2020]easyphp
1px pixel compatibility of mobile terminal, 1px border
Construction of Hisilicon 3559 universal platform: draw a frame on the captured YUV image
go 4種單例模式
LeetCode 968. 监控二叉树
[NPUCTF2020]ezlogin xPATH注入
[chestnut sugar GIS] ArcMap - why should the tick of classic capture be removed when using custom capture?
China Academy of information technology, Tsinghua University, Tencent security, cloud native security, industry university research and use strong alliance!
[chestnut sugar GIS] how does global mapper batch produce ground contour lines through DSM
严守工期,确保质量,这家AI数据标注公司做到了!
Tronapi wave field interface - source code without encryption - can be opened twice - interface document attached - packaging based on thinkphp5 - detailed guidance of the author - July 1, 2022 08:43:
【板栗糖GIS】global mapper 如何通过dsm批量制作贴地等高线
Qt QScrollArea
Go语言sqlx库操作SQLite3数据库增删改查
Qt QProgressBar详解
The threshold value of fusing proportion cannot be changed with sentinel, and setting the slow call proportion has no effect
Successfully changed Splunk default URL root path
Jinglianwen technology's low price strategy helps AI enterprises reduce model training costs