You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
我把v4l2 expbuf得到的dmabuf导入的缓存池报错:
mpp[3436]: mpp_log: allocator_ext_dma_import The ext_dma is not used for userptr
mpp[3436]: mpp_buffer: mpp_buffer_create failed to create buffer with size 3133440
是我的代码有问题吗?
BufInfo保存了v4l2导出dmabuf的信息
Activity
cht851 commentedon Jan 20, 2025
要把外部缓冲区导入mpp缓存池,外部缓冲区只能是drm申请的buffer吗
HermanChen commentedon Jan 20, 2025
看 camera_source.c 里的例子,要加加一个 export fd 的过程
cht851 commentedon Jan 20, 2025
我加了也报错
mpp[3436]: mpp_log: allocator_ext_dma_import The ext_dma is not used for userptr
mpp[3436]: mpp_buffer: mpp_buffer_create failed to create buffer with size 3133440
是为什么呢?导出fd代码如下:
` struct v4l2_buffer buf;
struct v4l2_plane planes;
memset(&buf, 0, sizeof(struct v4l2_buffer));
memset(&planes, 0, sizeof(struct v4l2_plane));
buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
buf.memory = V4L2_MEMORY_MMAP;
buf.m.planes = &planes;
buf.length = 1;
struct v4l2_exportbuffer expbuf;
memset(&expbuf, 0, sizeof(expbuf));
expbuf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;
`