lists.zerezo.com



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

v4l2_pix_format doubts



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@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list