thinkoco / c5soc_opencl

DE1SOC DE10-NANO DE10-Standard OpenCL hardware that support VGA and desktop. And Some applications such as usb camera YUYV to RGB , Sobel and so on.
Apache License 2.0
90 stars 39 forks source link

Looking for an example of how to take video from USB camera and put it into memory #25

Open kutenai opened 4 years ago

kutenai commented 4 years ago

My goal is to take the USB video and process it using OpenCL. In order to do this, I must take the USB camera input and put the frames into memory, where the VIP core can then access it.

My first goal would be to make a simple project without a linux GUI so that I can send the USB video direct to HDMI.

USB Video -> Software moves to Memory using AXI (Not sure how to do this... ) -> Frame reader from memory, to clock video output to HDMI

I just don't know how to do the software step, and was hoping someone could offer an example, or at least tips for getting started.

thinkoco commented 4 years ago

@kutenai late reply,

  1. you can remove the altvipfb diver modprobe in /etc/rc.local ( c5soc_opencl_lxde_fpga_reconfigurable.img)
  2. using the memory mapping (/dev/mem), you can map the vip core address to user space, then you can acess to vip core in opencl host. also, it may refor to the framebuffer reader ip spec for details. I haven't done this before.