RV1126 MIPI CSI-2调试24bit RGB888格式输入
创始人
2024-06-03 08:44:24
0

RV1126 MIPI CSI-2调试24bit RGB888格式输入,FPGA将DVP输入的1280X800的RGB888,24bit图像数据,转换为MIPI CSI发送给RV1126。RV1126通过MIPI 接收FPGA发送来的图像。通过V4L2抓图保存。

1:RV1126 MIPI初始化。

格式为MEDIA_BUS_FMT_RGB888_1X24,分辨率1280X800。修改DTS,和内核驱动文件。修改后,注册成功。

- entity 17: rockchip-mipi-csi2 (5 pads, 17 links)

type V4L2 subdev subtype Unknown flags 0

device node name /dev/v4l-subdev1

pad0: Sink

[ 44.780200] rockchi [fmt:RGB888_1X24/1280x800 pfield:none

crop.bounds:(0-,0)/1280x800

crop:(0,0)/m1280x800]

<- "rockchip-mipi-dphiy-rx":1 [ENABLED]

2:FPGA程序,修改适配MEDIA_BUS_FMT_RGB888_1X24。

3:联调。抓图

[root@RV1126_RV1109:/]# v4l2-ctl -d /dev/video0 --set-fmt-video=width=1280,heigh

t=800,pixelformat=RGB3 \--stream-mmap=3 \--stream-skip=3 \--stream-to=/tmp/cif88

  1. out \--stream-count=1 \--stream-poll

[root@RV1126_RV1109:/tmp]# ls -l

total 3232

drwxr-xr-x 2 avahi avahi 40 Aug 4 09:30 avahi-autoipd

-rw-r--r-- 1 root root 3072000 Aug 4 09:31 cif888.out

-rw-r--r-- 1 root root 66024 Aug 4 09:30 cl_viv_vx_ext.h

drwxr-xr-x 2 root root 60 Aug 4 09:30 dbus

-rw-r--r-- 1 root root 0 Aug 4 09:30 dnsmasq.leases

---------- 1 root root 6 Aug 4 09:30 loglevel

-rw-r--r-- 1 root root 153389 Aug 4 09:31 messages

-rw-r--r-- 1 root root 1349 Aug 4 09:30 mountall.log

drwxr-xr-x 7 root root 180 Aug 4 09:30 nginx

-rw-r--r-- 1 root root 55 Aug 4 09:30 resolv.conf

drwxr-xr-x 2 root root 60 Aug 4 09:30 subsys

drwx------ 2 root root 40 Aug 4 09:30 tmp.e06cHtr2Mn

抓图成功。

<<<[ 97.558413] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

[ 97.600634] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

<[ 97.685103] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

[ 97.727362] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

<[ 97.811841] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

[ 97.854048] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

<[ 97.938526] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

[ 97.980739] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

<[ 98.065280] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

[ 98.107590] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

<[ 98.191902] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

[ 98.234113] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

<[ 98.318589] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

[ 98.360868] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

<[ 98.445295] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

[ 98.487487] rkcif_mipi_lvds: not active buffer, skip current frame, mipi/lvds stream[0]

< 23.68 fps, dropped buffers: 14

连续抓图

4:读取图像

adb读取图像,打开显示效果。

相关内容

热门资讯

监控摄像头接入GB28181平... 流程简介将监控摄像头的视频在网站和APP中直播,要解决的几个问题是:1&...
Windows10添加群晖磁盘... 在使用群晖NAS时,我们需要通过本地映射的方式把NAS映射成本地的一块磁盘使用。 通过...
protocol buffer... 目录 目录 什么是protocol buffer 1.protobuf 1.1安装  1.2使用...
Fluent中创建监测点 1 概述某些仿真问题,需要创建监测点,用于获取空间定点的数据࿰...
educoder数据结构与算法...                                                   ...
MySQL下载和安装(Wind... 前言:刚换了一台电脑,里面所有东西都需要重新配置,习惯了所...
MFC文件操作  MFC提供了一个文件操作的基类CFile,这个类提供了一个没有缓存的二进制格式的磁盘...
在Word、WPS中插入AxM... 引言 我最近需要写一些文章,在排版时发现AxMath插入的公式竟然会导致行间距异常&#...
有效的括号 一、题目 给定一个只包括 '(',')','{','}'...
【Ctfer训练计划】——(三... 作者名:Demo不是emo  主页面链接:主页传送门 创作初心ÿ...