Home | History | Annotate | Download | only in spec
      1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
      2 <HTML
      3 ><HEAD
      4 ><TITLE
      5 >V4L2_PIX_FMT_SBGGR8 ('BA81')</TITLE
      6 ><META
      7 NAME="GENERATOR"
      8 CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
      9 REL="HOME"
     10 TITLE="Video for Linux Two API Specification"
     11 HREF="book1.htm"><LINK
     12 REL="UP"
     13 TITLE="RGB Formats"
     14 HREF="x2490.htm"><LINK
     15 REL="PREVIOUS"
     16 TITLE="Packed RGB formats"
     17 HREF="r2492.htm"><LINK
     18 REL="NEXT"
     19 TITLE="V4L2_PIX_FMT_SBGGR16 ('BA82')"
     20 HREF="r3796.htm"></HEAD
     21 ><BODY
     22 CLASS="REFENTRY"
     23 BGCOLOR="#FFFFFF"
     24 TEXT="#000000"
     25 LINK="#0000FF"
     26 VLINK="#840084"
     27 ALINK="#0000FF"
     28 ><DIV
     29 CLASS="NAVHEADER"
     30 ><TABLE
     31 SUMMARY="Header navigation table"
     32 WIDTH="100%"
     33 BORDER="0"
     34 CELLPADDING="0"
     35 CELLSPACING="0"
     36 ><TR
     37 ><TH
     38 COLSPAN="3"
     39 ALIGN="center"
     40 >Video for Linux Two API Specification: Revision 0.24</TH
     41 ></TR
     42 ><TR
     43 ><TD
     44 WIDTH="10%"
     45 ALIGN="left"
     46 VALIGN="bottom"
     47 ><A
     48 HREF="r2492.htm"
     49 ACCESSKEY="P"
     50 >Prev</A
     51 ></TD
     52 ><TD
     53 WIDTH="80%"
     54 ALIGN="center"
     55 VALIGN="bottom"
     56 ></TD
     57 ><TD
     58 WIDTH="10%"
     59 ALIGN="right"
     60 VALIGN="bottom"
     61 ><A
     62 HREF="r3796.htm"
     63 ACCESSKEY="N"
     64 >Next</A
     65 ></TD
     66 ></TR
     67 ></TABLE
     68 ><HR
     69 ALIGN="LEFT"
     70 WIDTH="100%"></DIV
     71 ><H1
     72 ><A
     73 NAME="V4L2-PIX-FMT-SBGGR8"
     74 ></A
     75 >V4L2_PIX_FMT_SBGGR8 ('BA81')</H1
     76 ><DIV
     77 CLASS="REFNAMEDIV"
     78 ><A
     79 NAME="AEN3739"
     80 ></A
     81 ><H2
     82 >Name</H2
     83 ><CODE
     84 CLASS="CONSTANT"
     85 >V4L2_PIX_FMT_SBGGR8</CODE
     86 >&nbsp;--&nbsp;Bayer RGB format</DIV
     87 ><DIV
     88 CLASS="REFSECT1"
     89 ><A
     90 NAME="AEN3743"
     91 ></A
     92 ><H2
     93 >Description</H2
     94 ><P
     95 >This is commonly the native format of digital cameras,
     96 reflecting the arrangement of sensors on the CCD device. Only one red,
     97 green or blue value is given for each pixel. Missing components must
     98 be interpolated from neighbouring pixels. From left to right the first
     99 row consists of a blue and green value, the second row of a green and
    100 red value. This scheme repeats to the right and down for every two
    101 columns and rows.</P
    102 ><DIV
    103 CLASS="EXAMPLE"
    104 ><A
    105 NAME="AEN3746"
    106 ></A
    107 ><P
    108 ><B
    109 >Example 2-1. <CODE
    110 CLASS="CONSTANT"
    111 >V4L2_PIX_FMT_SBGGR8</CODE
    112 > 4 &times; 4
    113 pixel image</B
    114 ></P
    115 ><DIV
    116 CLASS="FORMALPARA"
    117 ><P
    118 ><B
    119 >Byte Order. </B
    120 >Each cell is one byte.
    121               <DIV
    122 CLASS="INFORMALTABLE"
    123 ><P
    124 ></P
    125 ><A
    126 NAME="AEN3752"
    127 ></A
    128 ><TABLE
    129 BORDER="0"
    130 FRAME="void"
    131 CLASS="CALSTABLE"
    132 ><COL
    133 WIDTH="2*"
    134 ALIGN="LEFT"><COL><COL><COL><COL><TBODY
    135 VALIGN="TOP"
    136 ><TR
    137 ><TD
    138 >start&nbsp;+&nbsp;0:</TD
    139 ><TD
    140 >B<SUB
    141 >00</SUB
    142 ></TD
    143 ><TD
    144 >G<SUB
    145 >01</SUB
    146 ></TD
    147 ><TD
    148 >B<SUB
    149 >02</SUB
    150 ></TD
    151 ><TD
    152 >G<SUB
    153 >03</SUB
    154 ></TD
    155 ></TR
    156 ><TR
    157 ><TD
    158 >start&nbsp;+&nbsp;4:</TD
    159 ><TD
    160 >G<SUB
    161 >10</SUB
    162 ></TD
    163 ><TD
    164 >R<SUB
    165 >11</SUB
    166 ></TD
    167 ><TD
    168 >G<SUB
    169 >12</SUB
    170 ></TD
    171 ><TD
    172 >R<SUB
    173 >13</SUB
    174 ></TD
    175 ></TR
    176 ><TR
    177 ><TD
    178 >start&nbsp;+&nbsp;8:</TD
    179 ><TD
    180 >B<SUB
    181 >20</SUB
    182 ></TD
    183 ><TD
    184 >G<SUB
    185 >21</SUB
    186 ></TD
    187 ><TD
    188 >B<SUB
    189 >22</SUB
    190 ></TD
    191 ><TD
    192 >G<SUB
    193 >23</SUB
    194 ></TD
    195 ></TR
    196 ><TR
    197 ><TD
    198 >start&nbsp;+&nbsp;12:</TD
    199 ><TD
    200 >G<SUB
    201 >30</SUB
    202 ></TD
    203 ><TD
    204 >R<SUB
    205 >31</SUB
    206 ></TD
    207 ><TD
    208 >G<SUB
    209 >32</SUB
    210 ></TD
    211 ><TD
    212 >R<SUB
    213 >33</SUB
    214 ></TD
    215 ></TR
    216 ></TBODY
    217 ></TABLE
    218 ><P
    219 ></P
    220 ></DIV
    221 >
    222             </P
    223 ></DIV
    224 ></DIV
    225 ></DIV
    226 ><DIV
    227 CLASS="NAVFOOTER"
    228 ><HR
    229 ALIGN="LEFT"
    230 WIDTH="100%"><TABLE
    231 SUMMARY="Footer navigation table"
    232 WIDTH="100%"
    233 BORDER="0"
    234 CELLPADDING="0"
    235 CELLSPACING="0"
    236 ><TR
    237 ><TD
    238 WIDTH="33%"
    239 ALIGN="left"
    240 VALIGN="top"
    241 ><A
    242 HREF="r2492.htm"
    243 ACCESSKEY="P"
    244 >Prev</A
    245 ></TD
    246 ><TD
    247 WIDTH="34%"
    248 ALIGN="center"
    249 VALIGN="top"
    250 ><A
    251 HREF="book1.htm"
    252 ACCESSKEY="H"
    253 >Home</A
    254 ></TD
    255 ><TD
    256 WIDTH="33%"
    257 ALIGN="right"
    258 VALIGN="top"
    259 ><A
    260 HREF="r3796.htm"
    261 ACCESSKEY="N"
    262 >Next</A
    263 ></TD
    264 ></TR
    265 ><TR
    266 ><TD
    267 WIDTH="33%"
    268 ALIGN="left"
    269 VALIGN="top"
    270 >Packed RGB formats</TD
    271 ><TD
    272 WIDTH="34%"
    273 ALIGN="center"
    274 VALIGN="top"
    275 ><A
    276 HREF="x2490.htm"
    277 ACCESSKEY="U"
    278 >Up</A
    279 ></TD
    280 ><TD
    281 WIDTH="33%"
    282 ALIGN="right"
    283 VALIGN="top"
    284 >V4L2_PIX_FMT_SBGGR16 ('BA82')</TD
    285 ></TR
    286 ></TABLE
    287 ></DIV
    288 ></BODY
    289 ></HTML
    290 >
    291