1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>V4L2_PIX_FMT_SRGGB10P ('pRAA'), V4L2_PIX_FMT_SGRBG10P ('pgAA'), V4L2_PIX_FMT_SGBRG10P ('pGAA'), V4L2_PIX_FMT_SBGGR10P ('pBAA'),</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="LINUX MEDIA INFRASTRUCTURE API"><link rel="up" href="pixfmt-rgb.html" title="RGB Formats"><link rel="prev" href="pixfmt-srggb10.html" title="V4L2_PIX_FMT_SRGGB10 ('RG10'), V4L2_PIX_FMT_SGRBG10 ('BA10'), V4L2_PIX_FMT_SGBRG10 ('GB10'), V4L2_PIX_FMT_SBGGR10 ('BG10'),"><link rel="next" href="re09.html" title="V4L2_PIX_FMT_SBGGR10ALAW8 ('aBA8'), V4L2_PIX_FMT_SGBRG10ALAW8 ('aGA8'), V4L2_PIX_FMT_SGRBG10ALAW8 ('agA8'), V4L2_PIX_FMT_SRGGB10ALAW8 ('aRA8'),"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">V4L2_PIX_FMT_SRGGB10P ('pRAA'),
2	 V4L2_PIX_FMT_SGRBG10P ('pgAA'),
3	 V4L2_PIX_FMT_SGBRG10P ('pGAA'),
4	 V4L2_PIX_FMT_SBGGR10P ('pBAA'),
5	 </th></tr><tr><td width="20%" align="left"><a accesskey="p" href="pixfmt-srggb10.html">Prev</a>&#160;</td><th width="60%" align="center">RGB Formats</th><td width="20%" align="right">&#160;<a accesskey="n" href="re09.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="pixfmt-srggb10p"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p><code class="constant">V4L2_PIX_FMT_SRGGB10P</code>, <code class="constant">V4L2_PIX_FMT_SGRBG10P</code>, <code class="constant">V4L2_PIX_FMT_SGBRG10P</code>, <code class="constant">V4L2_PIX_FMT_SBGGR10P</code> &#8212; 10-bit packed Bayer formats</p></div><div class="refsect1"><a name="idp1101439660"></a><h2>Description</h2><p>These four pixel formats are packed raw sRGB /
6	Bayer formats with 10 bits per colour. Every four consecutive
7	colour components are packed into 5 bytes. Each of the first 4
8	bytes contain the 8 high order bits of the pixels, and the
9	fifth byte contains the two least significants bits of each
10	pixel, in the same order.</p><p>Each n-pixel row contains n/2 green samples and n/2 blue
11	or red samples, with alternating green-red and green-blue
12	rows. They are conventionally described as GRGR... BGBG...,
13	RGRG... GBGB..., etc. Below is an example of one of these
14	formats:</p><div class="example"><a name="idp1101440964"></a><p class="title"><b>Example&#160;2.8.&#160;<code class="constant">V4L2_PIX_FMT_SBGGR10P</code> 4 &#215; 4
15      pixel image</b></p><div class="example-contents"><p><b>Byte Order.&#160;</b>Each cell is one byte.
16	  </p><div class="informaltable"><table border="1"><colgroup><col align="left"><col><col><col><col></colgroup><tbody valign="top"><tr><td align="left" valign="top">start&#160;+&#160;0:</td><td align="center" valign="top">B<sub>00high</sub></td><td align="center" valign="top">G<sub>01high</sub></td><td align="center" valign="top">B<sub>02high</sub></td><td align="center" valign="top">G<sub>03high</sub></td><td align="center" valign="top">B<sub>00low</sub>(bits 7--6)
17			 G<sub>01low</sub>(bits 5--4)
18			 B<sub>02low</sub>(bits 3--2)
19			 G<sub>03low</sub>(bits 1--0)
20		  </td></tr><tr><td align="left" valign="top">start&#160;+&#160;5:</td><td align="center" valign="top">G<sub>10high</sub></td><td align="center" valign="top">R<sub>11high</sub></td><td align="center" valign="top">G<sub>12high</sub></td><td align="center" valign="top">R<sub>13high</sub></td><td align="center" valign="top">G<sub>10low</sub>(bits 7--6)
21			 R<sub>11low</sub>(bits 5--4)
22			 G<sub>12low</sub>(bits 3--2)
23			 R<sub>13low</sub>(bits 1--0)
24		  </td></tr><tr><td align="left" valign="top">start&#160;+&#160;10:</td><td align="center" valign="top">B<sub>20high</sub></td><td align="center" valign="top">G<sub>21high</sub></td><td align="center" valign="top">B<sub>22high</sub></td><td align="center" valign="top">G<sub>23high</sub></td><td align="center" valign="top">B<sub>20low</sub>(bits 7--6)
25			 G<sub>21low</sub>(bits 5--4)
26			 B<sub>22low</sub>(bits 3--2)
27			 G<sub>23low</sub>(bits 1--0)
28		  </td></tr><tr><td align="left" valign="top">start&#160;+&#160;15:</td><td align="center" valign="top">G<sub>30high</sub></td><td align="center" valign="top">R<sub>31high</sub></td><td align="center" valign="top">G<sub>32high</sub></td><td align="center" valign="top">R<sub>33high</sub></td><td align="center" valign="top">G<sub>30low</sub>(bits 7--6)
29			 R<sub>31low</sub>(bits 5--4)
30			 G<sub>32low</sub>(bits 3--2)
31			 R<sub>33low</sub>(bits 1--0)
32		  </td></tr></tbody></table></div><p>
33	</p></div></div><br class="example-break"></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="pixfmt-srggb10.html">Prev</a>&#160;</td><td width="20%" align="center"><a accesskey="u" href="pixfmt-rgb.html">Up</a></td><td width="40%" align="right">&#160;<a accesskey="n" href="re09.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">V4L2_PIX_FMT_SRGGB10 ('RG10'),
34	 V4L2_PIX_FMT_SGRBG10 ('BA10'),
35	 V4L2_PIX_FMT_SGBRG10 ('GB10'),
36	 V4L2_PIX_FMT_SBGGR10 ('BG10'),
37	 &#160;</td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top">&#160;
38	      V4L2_PIX_FMT_SBGGR10ALAW8 ('aBA8'),
39	      V4L2_PIX_FMT_SGBRG10ALAW8 ('aGA8'),
40	      V4L2_PIX_FMT_SGRBG10ALAW8 ('agA8'),
41	      V4L2_PIX_FMT_SRGGB10ALAW8 ('aRA8'),
42	    </td></tr></table></div></body></html>
43