1<html><head><meta http-equiv="Content-Type" content="text/html; charset=ANSI_X3.4-1968"><title>V4L2_PIX_FMT_SRGGB10 ('RG10'), V4L2_PIX_FMT_SGRBG10 ('BA10'), V4L2_PIX_FMT_SGBRG10 ('GB10'), V4L2_PIX_FMT_SBGGR10 ('BG10'),</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="V4L2-PIX-FMT-SBGGR16.html" title="V4L2_PIX_FMT_SBGGR16 ('BYR2')"><link rel="next" href="pixfmt-srggb10p.html" title="V4L2_PIX_FMT_SRGGB10P ('pRAA'), V4L2_PIX_FMT_SGRBG10P ('pgAA'), V4L2_PIX_FMT_SGBRG10P ('pGAA'), V4L2_PIX_FMT_SBGGR10P ('pBAA'),"></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_SRGGB10 ('RG10'), 2 V4L2_PIX_FMT_SGRBG10 ('BA10'), 3 V4L2_PIX_FMT_SGBRG10 ('GB10'), 4 V4L2_PIX_FMT_SBGGR10 ('BG10'), 5 </th></tr><tr><td width="20%" align="left"><a accesskey="p" href="V4L2-PIX-FMT-SBGGR16.html">Prev</a> </td><th width="60%" align="center">RGB Formats</th><td width="20%" align="right"> <a accesskey="n" href="pixfmt-srggb10p.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="pixfmt-srggb10"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p><code class="constant">V4L2_PIX_FMT_SRGGB10</code>, <code class="constant">V4L2_PIX_FMT_SGRBG10</code>, <code class="constant">V4L2_PIX_FMT_SGBRG10</code>, <code class="constant">V4L2_PIX_FMT_SBGGR10</code> — 10-bit Bayer formats expanded to 16 bits</p></div><div class="refsect1"><a name="idp1101347340"></a><h2>Description</h2><p>These four pixel formats are raw sRGB / Bayer formats with 610 bits per colour. Each colour component is stored in a 16-bit word, with 6 7unused high bits filled with zeros. Each n-pixel row contains n/2 green samples 8and n/2 blue or red samples, with alternating red and blue rows. Bytes are 9stored in memory in little endian order. They are conventionally described 10as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example of one of these 11formats</p><div class="example"><a name="idp1101399476"></a><p class="title"><b>Example 2.7. <code class="constant">V4L2_PIX_FMT_SBGGR10</code> 4 × 4 12pixel image</b></p><div class="example-contents"><p><b>Byte Order. </b>Each cell is one byte, high 6 bits in high bytes are 0. 13 </p><div class="informaltable"><table border="0"><colgroup><col align="left"><col><col><col><col></colgroup><tbody valign="top"><tr><td align="left" valign="top">start + 0:</td><td align="center" valign="top">B<sub>00low</sub></td><td align="center" valign="top">B<sub>00high</sub></td><td align="center" valign="top">G<sub>01low</sub></td><td align="center" valign="top">G<sub>01high</sub></td><td align="center" valign="top">B<sub>02low</sub></td><td align="center" valign="top">B<sub>02high</sub></td><td align="center" valign="top">G<sub>03low</sub></td><td align="center" valign="top">G<sub>03high</sub></td></tr><tr><td align="left" valign="top">start + 8:</td><td align="center" valign="top">G<sub>10low</sub></td><td align="center" valign="top">G<sub>10high</sub></td><td align="center" valign="top">R<sub>11low</sub></td><td align="center" valign="top">R<sub>11high</sub></td><td align="center" valign="top">G<sub>12low</sub></td><td align="center" valign="top">G<sub>12high</sub></td><td align="center" valign="top">R<sub>13low</sub></td><td align="center" valign="top">R<sub>13high</sub></td></tr><tr><td align="left" valign="top">start + 16:</td><td align="center" valign="top">B<sub>20low</sub></td><td align="center" valign="top">B<sub>20high</sub></td><td align="center" valign="top">G<sub>21low</sub></td><td align="center" valign="top">G<sub>21high</sub></td><td align="center" valign="top">B<sub>22low</sub></td><td align="center" valign="top">B<sub>22high</sub></td><td align="center" valign="top">G<sub>23low</sub></td><td align="center" valign="top">G<sub>23high</sub></td></tr><tr><td align="left" valign="top">start + 24:</td><td align="center" valign="top">G<sub>30low</sub></td><td align="center" valign="top">G<sub>30high</sub></td><td align="center" valign="top">R<sub>31low</sub></td><td align="center" valign="top">R<sub>31high</sub></td><td align="center" valign="top">G<sub>32low</sub></td><td align="center" valign="top">G<sub>32high</sub></td><td align="center" valign="top">R<sub>33low</sub></td><td align="center" valign="top">R<sub>33high</sub></td></tr></tbody></table></div><p> 14 </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="V4L2-PIX-FMT-SBGGR16.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="pixfmt-rgb.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="pixfmt-srggb10p.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">V4L2_PIX_FMT_SBGGR16 ('BYR2') </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> V4L2_PIX_FMT_SRGGB10P ('pRAA'), 15 V4L2_PIX_FMT_SGRBG10P ('pgAA'), 16 V4L2_PIX_FMT_SGBRG10P ('pGAA'), 17 V4L2_PIX_FMT_SBGGR10P ('pBAA'), 18 </td></tr></table></div></body></html> 19