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
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