Nvidia Agx Xavier平台采集相机embedded data调试记录

本文记录了在Nvidia Jetson Xavier平台上,使用JetPack 4.4进行相机传感器数据采集的调试过程。通过修改vi5_fops.c、分析v4l-ctl日志、调整dts配置以及尝试提高时钟频率来解决embedded_metadata_height问题。在分析中发现,VI不能同时接收yuv422_8和元数据,可能存在帧丢失和短帧错误,需要进一步优化传感器驱动。
摘要由CSDN通过智能技术生成

1. 前言

硬件: Jetson Xavier

软件: JetPack 4.4-R32.4.3

想把传感器嵌入的数据采集到xavier。

使用的相机有一个ISP,输出YUV,并在Mipi数据中嵌入一行传感器metadata。

可以使用vi5_ fops.c在mipi中获取metadata吗?

        可以

.vi5_ fops.c 是否支持获取YUV摄像头内嵌的传感器数据?

        支持

2. 修改vi5_fops.c

在vi5_fops.c的vi5_capture_dequeue()中添加了以下代码。

   void* frame_buffer = vb2_plane_vaddr(&(vb->vb2_buf), 0);
        if(frame_buffer != NULL) {
                if(chan->vi->emb_buf_addr != NULL){
                        //emb_buf_size = 4096
                        memcpy(frame_buffer,chan->vi->emb_buf_addr,chan->vi->emb_buf_size);
                }
        }

但采集失败了

建议

TP2915 is a video D/A solution for converting HD digital video signal into the analog domain that is suitable for transmission over single coaxial or twist-pair cable over long reach. The major application is the Automotive interconnect between HD display and HD camera systems or any other applications require robust and low cost transmission of HD video. TP2915 generates the analog video signal complying with HD Transport Video Interface (HD-TVI) format. It is one form of the HD composite video format that is widely adopted in the industry. TP2915 can support a variety of video resolution digital video input standards in 422 or 444 formats over 8, 16 or 24-bit interface with the embedded synchronization (EAV/SAV) header or explicit sync signals. It also accepts 24-bit RGB input with external sync signals. It has the built-in sync extraction logic to obtain the sync information inside the video stream. The video resolutions supported range from SD (NT/PAL) to UHD. TP2915 contains a versatile video timing generator that is programmable for all standards supported and other non-standard video formats. It has programmable clip/shift/scale function to proper condition the input video signal for further processing. It also has an optional 2x over-sampling filters built-in to support higher output sample rate. Over-sampling can relax the external analog filter requirement. TP2915 supports selectable current mode and voltage mode output as well as internal programmable analog reconstruction filter. The built-in data slicer help minimize glue circuits. The signal amplitude of the DAC output can be set by external current setting resistor. It also has built-in color bar test pattern generator for easy testing and adjustment. TP2915 has built-in clock jitter reduction circuit based on local crystal clock to ensure the output signal performance.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

free-xx

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值