|
From: Luc S. <lu...@sa...> - 2006-02-25 01:37:27
|
On Fri, Feb 24, 2006 at 04:55:18PM -0500, Gabriel A. Devenyi wrote: > uvccapture is really setup just to create JPEGs by using the MJPEG frames. > Since its built on the luvcview core, the YUYV capture is present in the > code, but I've not implemented a method to get it out. I'll dig through and > see if I can add a YUYV dump, but I'm not even sure of the file formatting, > so I'll have to do a little research. At the very least I'll disallow The format is very simple. For each pixel you have two bytes (even: Y and U) or (odd: U and V). So for an image of 4x4, you have 32 bytes 0: YU YV YU YV 8: YU YV YU YV 16: YU YV YU YV 24: YU YV YU YV This is very simple but i've not (yet) found a good algorithm when resizing and converting to other colorspace. You see vertical line. One line will be blue, the other line will be green. Luc |