Line 347:
Line 347:
==== Tightly aligned image format ====
==== Tightly aligned image format ====
The data format saved by mv_raspicam is the data format on the MIPS bus, with no empty bit padding between pixels.
The data format saved by mv_raspicam is the data format on the MIPS bus, with no empty bit padding between pixels.
−
+
[[File:Packed raw data layer.png|center|thumb|1200x1200px|Packed raw data layer]]
−
As an example, in the 12bit Y data format, two pixels are saved in 3 bytes.
+
<br />
−
{| class="wikitable"
−
! colspan="8" |Byte3
−
! colspan="8" |Byte2
−
! colspan="8" |Byte1
−
|-
−
|bit7
−
|bit6
−
|bit5
−
|bit4
−
|bit3
−
| bit2
−
|bit1
−
|bit0
−
|bit7
−
|bit6
−
|bit5
−
|bit4
−
|bit3
−
|bit2
−
|bit1
−
|bit0
−
|bit7
−
|bit6
−
|bit5
−
|bit4
−
|bit3
−
|bit2
−
|bit1
−
|bit0
−
|-
−
| colspan="12" |Pixel N+1 data
−
| colspan="12" |Pixel N data
−
|}
==== Image size ====
==== Image size ====