Affan Ahmed wrote: >Hello, > I have the ov511 driver installed on a RH7.2 linux. I have been able >to succesfully loop back the captured images of my HawkEye UC310 >camera. > How ever when ever i want to set the brightness or contrast or depth >of the capture picture it always is returning -1. I am appending a >portion of the code for clarification > > struct video_picture pic; > > pic.palette = VIDEO_PALETTE_YUV420; > pic.depth = 24; > <snip>
I think the problem is that VIDEO_PALETTE_YUV420 doesn't correspond to a depth of 24. The depth should be set to 12. Incidentally, does anybody know why the "depth" field exists? Is it for unusual formats, e.g. YUV 4:2:0 with 4 bits of Y and 2 bits of UV per pixel? It just seems like needless complication of the API to me. -- Mark McClelland [EMAIL PROTECTED] ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users
