kevin wrote: <snip> >My current problem is with allocating buffer space. I use kmalloc for a >small buffer (40 bytes) to get some info from the camera, and also used >kmalloc for a much larger buffer to store the raw data from the camera >(in the 320x240 mode, this buffer is ~77kbytes; data are in raw Bayer >form). Still OK, but now I have to get a buffer big enough to hold the >RGB data, since I don't think the video4linux routines are going to >convert the raw data (haven't really started on the v4l stuff yet; I >still need to clean up a few things on the video part of the driver). > <snip>
You can use the rvmalloc() function that is included in many V4L drivers. In ov511.c, I use it to allocate a few megs per camera. I never had any problem with it, except that in the 2.3.x kernels, some kernel resource would become exhausted after many allocate/free cycles. AFAIK, that is fixed now. -- Mark McClelland [EMAIL PROTECTED] _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
