On Sun, Aug 14, 2011 at 12:37:10AM +0530, Veda N wrote: > On Sat, Aug 13, 2011 at 11:56 PM, Paulo Assis <[email protected]> wrote: > > Hi, > > > > 2011/8/13 Veda N <[email protected]>: > >> what should be the size of a raw bayer data from the driver. > >> > >> for 640x480 = i get 640x480x2. > > > > Is this in bytes? > > > >> > >> Shouldnt i get more? It shoule be more than yuv422/rgb565 > >> > > > > No, that depends on the pixel size, so for 8 bit pixel you should get > > 640x480 bytes, for 12 bit you should get 640x480x3/2 and so on. > > > > 640x480x2 is equivalent to a 16 bit pixel, this is a bit unusual I > > think, the most common is 8 bit pixel, what device/driver are you > > using ? > > If it is V4L2_PIX_FMT_SGRBG10 - it is 10 bits/color. > If it is V4L2_PIX_FMT_SGRBG8 - it is 8 bits/color
These formats are byte aligned. > Shouldnt it be more? raw data is supposed to be large in size when > compared to processed data pixel size. No. At VGA size you still have as many pixels as you can guess but any single pixel is either red, green or blue. -- Sakari Ailus [email protected] -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
