Hi, On Fri, 2003-10-03 at 13:20, Anoop G Prabhu wrote: > With the bigphysarea > patch I can grab with V4L(VIDIOCMCAPTURE ...), but I get BGR instead of > RGB with both RGB24 and RGB32 palettes. > > Is there any way of getting RGB24 directly, without having to convert > from BGR to RGB?
Yes, with some driver hackery. In zoran_device.c, line 429, you'll see: if (format->palette != VIDEO_PALETTE_YUV422) reg |= ZR36057_VFESPFR_LittleEndian; Change that to: reg |= ZR36057_VFESPFR_LittleEndian; I.e., remove the "if" part, and all RGB formats will be BGR now. Please remember that overlay will be buggered. It's much easier to change your conversion function to handle RGB instead of BGR, since the driver *is* doing the right thing here. > Another, albeit smaller problem: VIDIOCSWIN fails when I try to set > 384x288 from my code after insmod-ing zr36067 directly, but it works if > I run xawtv before I run my app. Run v4l-conf first. Ronald -- Ronald Bultje <[EMAIL PROTECTED]> Linux Video/Multimedia developer ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users