On Fri, 15 May 2009, Laurent Pinchart wrote: > Hi Guillaume, > > On Friday 15 May 2009 15:03:11 Guillaume wrote: [snip] > > My problem is, after the VIDIOC_S_FMT, the pixelformat field is set back to > > JPEG FORMAT (and the colorspace too) and so, I don't get raw data, but > > compressed jpeg data. > > > > I know that the VIDIOC_S_FMT try to change these fields but if the driver > > don't authorise them, it will put the originals back. > > > > But, I really need to get the uncompressed data of the captured picture, > > so is there by any chance, another solution to 'force' and capture the > > images in an Uncompressed format ? Or is it really set by the driver and so, > > no chance to have the raw ? > > It depends on the camera. ...and the driver. I don't know much about various _web_cameras and their drivers, but I could well imagine, that you're asking for an unsupported YUV variation, whereas some other format would be supported. Why don't you use VIDIOC_ENUM_FMT to list all supported formats? Or even look in the driver source - it's open:-) Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html