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);
}
}
但采集失败了
建议