Hi all,

I wrote some capture code and tested it out on Ubuntu 8.10 (kernel 
2.6.27.11). My Dynex 1.3 MP camera supports memory mapping and works 
just fine on my Ubuntu box. However, I have cross-compiled the UVC 
driver for my Gumstix (the target platform for capture - kernel is 
2.6.21) and though I was able to successfully install the driver, my 
capture code doesn't seem to work. I've traced the problem to to ioctl 
call with VIDIOC_QUERYBUF. On my box, that function call returns a 
buffer length of width * height * 2 (format is YUYV, so this is right). 
On my Gumstix, it returns width * height + 589 (the 589 is the same 
regardless of the frame size).

Is there any reason why this would be happening? I appear to be 
unfamilar with the behavior of VIDIOC_QUERYBUF, but it looks like it 
ought to be pretty straightforward.

Oh, I should point out that calls to VIDIOCSPICT and VIDIOCGPICT on my 
Ubuntu box works just fine, but returns -1 for the Gumstix. This camera 
requires that I use some bizarre combinations of V4L1 and V4L2 code to 
access all of its functionality. I'm not sure what versions of the 
various V4L modules and camera drivers are.

Thanks in advance.

-Tom

-- 

Tom Moore
Member, Engineering Staff
Lockheed Martin Advanced Technology Laboratories
3 Executive Campus, Suite 600
Cherry Hill, NJ 08002
Phone: 856-792-9750
E-mail: [email protected]

_______________________________________________
Linux-uvc-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/linux-uvc-devel

Reply via email to