i.MX6 video capture to GPU buffer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX6 video capture to GPU buffer

1,017 Views
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

Labels (2)
0 Kudos
1 Reply

378 Views
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 Kudos