当前位置:网站首页>Hardware codec acceleration CSI interface camera on TX2
Hardware codec acceleration CSI interface camera on TX2
2022-04-21 07:29:00 【KK LUO】
1.TX2 Upper CSI Hardware
-
1. The official development board puts the six routes CSI Received a 60*2 The so-called interface of camera development Given an onboard camera , Trouble . If you want to use these six interfaces by yourself , A transfer interface 145 bye . So you have to spend some money on an expanded version .


-
About camera driver .
Nvidia There will be an official TX2 deriver package, There is a part of the camera driver, which can be used in NVL4T docs View in the document .

You can buy cameras according to these models . Although they are cheap .
NVidia It provides a convenient library so that we can easily install the corresponding sensor The driver . As an invitation to students to buy only 48 One of them ov. I studied it how to add a module.

In applications that support a direct V4L2 interface, use this interface to communicate to the NVIDIA V4L2 driver without having to use the camera core user mode library. Use this path for capturing RAW data from sensor or for validating sensor drivers.
The application uses the kernel mode V4L2 drivers as follows:

- To add one or more camera modules to a device tree
- 1Locate or create a tegra-camera-platform device node in the kernel source tree at:
/hardware/nvidia/platform/t19x/common/kernel-dts/t19x-common-modules/tegra194-camera-imx185-a00.dtsi
- 2In a Tegra-camera-platform device node, create a module table (modules) with one or more modules.
Each module must contain its basic information and the definition of the devices that are inside that module.
2. About hardware codec .
- 1. Video codec process

- 2.Deepstream Hardware codec routines on .
stay deepstream userGuide There is an introduction to this routine in .Nvidia It has independent hardware decoding module DEC
samples Inside DECPERF It is about the routine of hardware codec .
Workflow :
- Feed packets to the pipeline
- Add decoding task
- Analyze decoding performance

1. First step : Create a DeviceWorker.
DeviceWorker Responsible for the whole DeepStream Workflow . It includes multi-channel decoding and analysis pipeline maintenance .DeviceWorker from createDeviceWorker Function creation , With multiple channels (g_nChannels) and GPU ID(g_devID) As a parameter .`
IDeviceWorker *pDeviceWorker = createDeviceWorker(g_nChannels, g_devID, g_maxBatchSize);
2. The second step : data input
more data can be load.
bool getData(uint8_t **ppBuf, int *pnBuf);
// reset the dataProvider to reload from the video file from the beginning.
void reload();
3. The third step : Add decoding task
// Add decode task, the parameter is the format of codec.
pDeviceWorker->addDecodeTask(cudaVideoCodec_H264);
4 function DeviceWorker
// Start and stop the DeviceWorker.
pDeviceWorker->start();
pDeviceWorker->stop();
版权声明
本文为[KK LUO]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210620350992.html
边栏推荐
猜你喜欢

SQL学习记录

Apache POI hssf操作Excel

【保姆安装教程】Linux操作系统中源码下载MySQL5.7

Oracle uses DBMS_ Crypto realizes MD5 value calculation

基于UnityGameFramework框架的AssetBundle打包

《21天实战caffe》1-7天学习笔记一

Dpdk problem analysis: ice 100g network card RX_ Packets and RX_ Bytes statistical problem

效率工具|专用截图辅助软件PureRef

从零开始搭建一台深度学习服务器及环境配置

MySQL workbench cannot use clear text authentication over non SSL connections problem solving
随机推荐
【保姆安装教程】Linux操作系统中源码下载MySQL5.7
Missing key(s) in state_dict: “module.resnet50.conv1.weight“
网络信息安全攻防学习平台--上传关1
图形学基础|屏幕空间反射(SSR)
C语言版:二叉树的前序,中序,后序非递归遍历实现
WordPress plugin - WP mail SMTP
Lua程序设计--笔记
dpdk 问题定位:某四光口 x710 网卡某个口无法初始化问题
WordPress plugin - easy WP SMTP
读书笔记-精进 如何成为一个很厉害的人
dpdk 问题分析:ice 100G 网卡 rx_packets 与 rx_bytes 统计问题
删除迅雷看看文件夹右键菜单的卸载残留
postgres uuid_ generate_ v1() does not exist
Open platform and its technical architecture
基于UnityGameFramework框架的临时数据节点使用
基于UnityGameFramework框架的AssetBundle打包
程序启动顺序引发的血案之 dpdk 进程死锁
Apache POI hssf操作Excel
性能测试工具JMeter & Jprofiler 的安装
Unity关于IsPointerOverGameObject接口真机失效问题