size of raw bayer data
what should be the size of a raw bayer data from the driver. for 640x480 = i get 640x480x2. Shouldnt i get more? It shoule be more than yuv422/rgb565 -- Regards, S. N. Veda -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: size of raw bayer data
Hi, 2011/8/13 Veda N ved...@gmail.com: 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 ? Regards, Paulo -- Regards, S. N. Veda -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: size of raw bayer data
On Sat, Aug 13, 2011 at 11:56 PM, Paulo Assis pj.as...@gmail.com wrote: Hi, 2011/8/13 Veda N ved...@gmail.com: 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 Shouldnt it be more? raw data is supposed to be large in size when compared to processed data pixel size. Regards, Paulo -- Regards, S. N. Veda -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html -- Regards, S. N. Veda -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: size of raw bayer data
On Sun, Aug 14, 2011 at 12:37:10AM +0530, Veda N wrote: On Sat, Aug 13, 2011 at 11:56 PM, Paulo Assis pj.as...@gmail.com wrote: Hi, 2011/8/13 Veda N ved...@gmail.com: 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 sakari.ai...@iki.fi -- To unsubscribe from this list: send the line unsubscribe linux-media in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html