1 <refentry id="V4L2-PIX-FMT-SRGGB8">
3 <refentrytitle>V4L2_PIX_FMT_SRGGB8 ('RGGB')</refentrytitle>
7 <refname><constant>V4L2_PIX_FMT_SRGGB8</constant></refname>
8 <refpurpose>Bayer RGB format</refpurpose>
11 <title>Description</title>
13 <para>This is commonly the native format of digital cameras,
14 reflecting the arrangement of sensors on the CCD device. Only one red,
15 green or blue value is given for each pixel. Missing components must
16 be interpolated from neighbouring pixels. From left to right the first
17 row consists of a red and green value, the second row of a green and
18 blue value. This scheme repeats to the right and down for every two
19 columns and rows.</para>
22 <title><constant>V4L2_PIX_FMT_SRGGB8</constant> 4 × 4
26 <title>Byte Order.</title>
27 <para>Each cell is one byte.
28 <informaltable frame="none">
29 <tgroup cols="5" align="center">
30 <colspec align="left" colwidth="2*" />
33 <entry>start + 0:</entry>
34 <entry>R<subscript>00</subscript></entry>
35 <entry>G<subscript>01</subscript></entry>
36 <entry>R<subscript>02</subscript></entry>
37 <entry>G<subscript>03</subscript></entry>
40 <entry>start + 4:</entry>
41 <entry>G<subscript>10</subscript></entry>
42 <entry>B<subscript>11</subscript></entry>
43 <entry>G<subscript>12</subscript></entry>
44 <entry>B<subscript>13</subscript></entry>
47 <entry>start + 8:</entry>
48 <entry>R<subscript>20</subscript></entry>
49 <entry>G<subscript>21</subscript></entry>
50 <entry>R<subscript>22</subscript></entry>
51 <entry>G<subscript>23</subscript></entry>
54 <entry>start + 12:</entry>
55 <entry>G<subscript>30</subscript></entry>
56 <entry>B<subscript>31</subscript></entry>
57 <entry>G<subscript>32</subscript></entry>
58 <entry>B<subscript>33</subscript></entry>