public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* v4l2_pix_format doubts
@ 2008-06-17  9:05 Veda N
  2008-06-17  9:24 ` Daniel Glöckner
  2008-06-17  9:33 ` Xuesong Yang
  0 siblings, 2 replies; 11+ messages in thread
From: Veda N @ 2008-06-17  9:05 UTC (permalink / raw)
  To: video4linux-list

I am trying to fill the structure v4l2_pix_format in the camera driver.

The v4l2_pix_format has the following variables to fill
  a) bytesperline
  b) width
  c) height
  4) pixelformat

 My datasheet says the size of each pixel is 12 bits per color channel.

 Hence for RGB will be 36bits.

 I wanted to know if the same hold true for YUV data.

In that case i was confused how to fill the bytesperline, width and
height field.

Can anyone help on this?

For 640x480 pixels what should be the value i should fill.

I am confused because for most drivers they take as 2 bytes per pixel.


Where are in my case i think it would be 36bits per pixel. am i wrong?



Regards,
vedan

--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request@redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2008-06-18 18:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-17  9:05 v4l2_pix_format doubts Veda N
2008-06-17  9:24 ` Daniel Glöckner
2008-06-17  9:39   ` Veda N
2008-06-17  9:45     ` Daniel Glöckner
2008-06-17 10:22       ` Veda N
2008-06-17 10:46         ` Daniel Glöckner
2008-06-17 15:15           ` Veda N
2008-06-17 17:24             ` Daniel Glöckner
2008-06-18 15:15               ` Veda N
2008-06-18 18:07                 ` Daniel Glöckner
2008-06-17  9:33 ` Xuesong Yang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox