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_SBGGR16 ('BA82')</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="V4L2_PIX_FMT_SBGGR8 ('BA81')" 17 HREF="r3735.htm"><LINK 18 REL="NEXT" 19 TITLE="YUV Formats" 20 HREF="x3891.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="r3735.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="x3891.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-SBGGR16" 74 ></A 75 >V4L2_PIX_FMT_SBGGR16 ('BA82')</H1 76 ><DIV 77 CLASS="REFNAMEDIV" 78 ><A 79 NAME="AEN3800" 80 ></A 81 ><H2 82 >Name</H2 83 ><CODE 84 CLASS="CONSTANT" 85 >V4L2_PIX_FMT_SBGGR16</CODE 86 > -- Bayer RGB format</DIV 87 ><DIV 88 CLASS="REFSECT1" 89 ><A 90 NAME="AEN3804" 91 ></A 92 ><H2 93 >Description</H2 94 ><P 95 >This format is similar to <A 96 HREF="r3735.htm" 97 ><CODE 98 CLASS="CONSTANT" 99 >V4L2_PIX_FMT_SBGGR8</CODE 100 ></A 101 >, except each pixel has 102 a depth of 16 bits. The least significant byte is stored at lower 103 memory addresses (little-endian). Note the actual sampling precision 104 may be lower than 16 bits, for example 10 bits per pixel with values 105 in range 0 to 1023.</P 106 ><DIV 107 CLASS="EXAMPLE" 108 ><A 109 NAME="AEN3809" 110 ></A 111 ><P 112 ><B 113 >Example 2-1. <CODE 114 CLASS="CONSTANT" 115 >V4L2_PIX_FMT_SBGGR16</CODE 116 > 4 × 4 117 pixel image</B 118 ></P 119 ><DIV 120 CLASS="FORMALPARA" 121 ><P 122 ><B 123 >Byte Order. </B 124 >Each cell is one byte. 125 <DIV 126 CLASS="INFORMALTABLE" 127 ><P 128 ></P 129 ><A 130 NAME="AEN3815" 131 ></A 132 ><TABLE 133 BORDER="0" 134 FRAME="void" 135 CLASS="CALSTABLE" 136 ><COL 137 WIDTH="2*" 138 ALIGN="LEFT"><COL><COL><COL><COL><TBODY 139 VALIGN="TOP" 140 ><TR 141 ><TD 142 >start + 0:</TD 143 ><TD 144 >B<SUB 145 >00low</SUB 146 ></TD 147 ><TD 148 >B<SUB 149 >00high</SUB 150 ></TD 151 ><TD 152 >G<SUB 153 >01low</SUB 154 ></TD 155 ><TD 156 >G<SUB 157 >01high</SUB 158 ></TD 159 ><TD 160 >B<SUB 161 >02low</SUB 162 ></TD 163 ><TD 164 >B<SUB 165 >02high</SUB 166 ></TD 167 ><TD 168 >G<SUB 169 >03low</SUB 170 ></TD 171 ><TD 172 >G<SUB 173 >03high</SUB 174 ></TD 175 ></TR 176 ><TR 177 ><TD 178 >start + 8:</TD 179 ><TD 180 >G<SUB 181 >10low</SUB 182 ></TD 183 ><TD 184 >G<SUB 185 >10high</SUB 186 ></TD 187 ><TD 188 >R<SUB 189 >11low</SUB 190 ></TD 191 ><TD 192 >R<SUB 193 >11high</SUB 194 ></TD 195 ><TD 196 >G<SUB 197 >12low</SUB 198 ></TD 199 ><TD 200 >G<SUB 201 >12high</SUB 202 ></TD 203 ><TD 204 >R<SUB 205 >13low</SUB 206 ></TD 207 ><TD 208 >R<SUB 209 >13high</SUB 210 ></TD 211 ></TR 212 ><TR 213 ><TD 214 >start + 16:</TD 215 ><TD 216 >B<SUB 217 >20low</SUB 218 ></TD 219 ><TD 220 >B<SUB 221 >20high</SUB 222 ></TD 223 ><TD 224 >G<SUB 225 >21low</SUB 226 ></TD 227 ><TD 228 >G<SUB 229 >21high</SUB 230 ></TD 231 ><TD 232 >B<SUB 233 >22low</SUB 234 ></TD 235 ><TD 236 >B<SUB 237 >22high</SUB 238 ></TD 239 ><TD 240 >G<SUB 241 >23low</SUB 242 ></TD 243 ><TD 244 >G<SUB 245 >23high</SUB 246 ></TD 247 ></TR 248 ><TR 249 ><TD 250 >start + 24:</TD 251 ><TD 252 >G<SUB 253 >30low</SUB 254 ></TD 255 ><TD 256 >G<SUB 257 >30high</SUB 258 ></TD 259 ><TD 260 >R<SUB 261 >31low</SUB 262 ></TD 263 ><TD 264 >R<SUB 265 >31high</SUB 266 ></TD 267 ><TD 268 >G<SUB 269 >32low</SUB 270 ></TD 271 ><TD 272 >G<SUB 273 >32high</SUB 274 ></TD 275 ><TD 276 >R<SUB 277 >33low</SUB 278 ></TD 279 ><TD 280 >R<SUB 281 >33high</SUB 282 ></TD 283 ></TR 284 ></TBODY 285 ></TABLE 286 ><P 287 ></P 288 ></DIV 289 > 290 </P 291 ></DIV 292 ></DIV 293 ></DIV 294 ><DIV 295 CLASS="NAVFOOTER" 296 ><HR 297 ALIGN="LEFT" 298 WIDTH="100%"><TABLE 299 SUMMARY="Footer navigation table" 300 WIDTH="100%" 301 BORDER="0" 302 CELLPADDING="0" 303 CELLSPACING="0" 304 ><TR 305 ><TD 306 WIDTH="33%" 307 ALIGN="left" 308 VALIGN="top" 309 ><A 310 HREF="r3735.htm" 311 ACCESSKEY="P" 312 >Prev</A 313 ></TD 314 ><TD 315 WIDTH="34%" 316 ALIGN="center" 317 VALIGN="top" 318 ><A 319 HREF="book1.htm" 320 ACCESSKEY="H" 321 >Home</A 322 ></TD 323 ><TD 324 WIDTH="33%" 325 ALIGN="right" 326 VALIGN="top" 327 ><A 328 HREF="x3891.htm" 329 ACCESSKEY="N" 330 >Next</A 331 ></TD 332 ></TR 333 ><TR 334 ><TD 335 WIDTH="33%" 336 ALIGN="left" 337 VALIGN="top" 338 >V4L2_PIX_FMT_SBGGR8 ('BA81')</TD 339 ><TD 340 WIDTH="34%" 341 ALIGN="center" 342 VALIGN="top" 343 ><A 344 HREF="x2490.htm" 345 ACCESSKEY="U" 346 >Up</A 347 ></TD 348 ><TD 349 WIDTH="33%" 350 ALIGN="right" 351 VALIGN="top" 352 >YUV Formats</TD 353 ></TR 354 ></TABLE 355 ></DIV 356 ></BODY 357 ></HTML 358 > 359