i.MX6 video capture to GPU buffer

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

i.MX6 video capture to GPU buffer

1,539 次查看
markmerritt
Contributor I

Is there an existing mechanism to capture video (V4L) frames directly into a buffer which can also be directly accessed (without additional copies) by OpenCL?

I have explored the use of V4L2_MEMORY_USERPTR buffers for the camera access, but this functionality does not appear to be working [dequeued buffers do not match those which were enqueued]. The example provided in https://community.freescale.com/thread/359579 fails when run with the "-u" option, on 3.10.17-1.0.2_ga

标签 (2)
0 项奖励
回复
1 回复

900 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Mark,

Unfortunately there is no any implementation for buffer sharing between v4L and OpenCL for vivante GPU driver. Just from top of my head, I guess one implementation could be done importing the DMABUFF to OCL memory object with clCreateBuffer.

Similar approached have been implemented but in this case for GPU Frame buffer and OpenCV.

Computer Vision on i.MX Processors: Onboard Camera - V4L wrapper with Yocto Project

Regards

0 项奖励
回复