* size of raw bayer data
@ 2011-08-13 18:01 Veda N
2011-08-13 18:26 ` Paulo Assis
0 siblings, 1 reply; 4+ messages in thread
From: Veda N @ 2011-08-13 18:01 UTC (permalink / raw)
To: linux-media
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: size of raw bayer data
2011-08-13 18:01 size of raw bayer data Veda N
@ 2011-08-13 18:26 ` Paulo Assis
2011-08-13 19:07 ` Veda N
0 siblings, 1 reply; 4+ messages in thread
From: Paulo Assis @ 2011-08-13 18:26 UTC (permalink / raw)
To: Veda N; +Cc: linux-media
Hi,
2011/8/13 Veda N <veda74@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 majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: size of raw bayer data
2011-08-13 18:26 ` Paulo Assis
@ 2011-08-13 19:07 ` Veda N
2011-08-13 20:59 ` Sakari Ailus
0 siblings, 1 reply; 4+ messages in thread
From: Veda N @ 2011-08-13 19:07 UTC (permalink / raw)
To: Paulo Assis; +Cc: linux-media
On Sat, Aug 13, 2011 at 11:56 PM, Paulo Assis <pj.assis@gmail.com> wrote:
> Hi,
>
> 2011/8/13 Veda N <veda74@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 majordomo@vger.kernel.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>
--
Regards,
S. N. Veda
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: size of raw bayer data
2011-08-13 19:07 ` Veda N
@ 2011-08-13 20:59 ` Sakari Ailus
0 siblings, 0 replies; 4+ messages in thread
From: Sakari Ailus @ 2011-08-13 20:59 UTC (permalink / raw)
To: Veda N; +Cc: Paulo Assis, linux-media
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.assis@gmail.com> wrote:
> > Hi,
> >
> > 2011/8/13 Veda N <veda74@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.ailus@iki.fi
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-08-13 20:59 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-13 18:01 size of raw bayer data Veda N
2011-08-13 18:26 ` Paulo Assis
2011-08-13 19:07 ` Veda N
2011-08-13 20:59 ` Sakari Ailus
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.