Hi,
  I am trying to port some code I wrote for V4l to V4L2.
  What I am trying to do is "overlay" video in memory instead of to a
video card. This worked fine in V4L, I hope I can still pull such
tricks... My "good" reason to this is that I want to be able to analyse
the video in a "RTAI" realtime driver.

  Basically I have reserved "One G" of memory telling GRUB2 that there is
only 14G of memory in the system.

in my /etc/default/grub
# 14G
GRUB_CMDLINE_LINUX="mem=15032385536"

  I have a RTAI driver that I access this memory from, and a user space
application, they talk fine. (Yes all the covers are off the computer,
and no children are in the room.)

driver...
sd = (shared_data *) ioremap(ADDRESS,(unsigned long)sizeof(shared_data));

user..
sd = (shared_data *)mmap(0, sizeof(shared_data), PROT_READ|PROT_WRITE,
MAP_SHARED, MEM, ADDRESS);


  I believe my issue is in the VIDIOC_S_FBUF IOCTL call. I need the
"Physical base address of the frame buffer, the address of the pixel at
coordinates (0; 0)"

  fbuf.base = &(buf[0]);

  I have looked high and low, and have not found an example of using the
V4L2 "4.2. Video Overlay Interface".

  *************************
  Questions..

  Is this being done with V4L2?
  Any Idea how to pass the "Physical base address of the frame buffer" in
this situation?
  Any examples?
  Is this no longer possible?
  Is there another way to stream data continuously into memory? Ie without
constantly swapping buffers...

  Thanks
  Doug


--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to