• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
7NAME="GENERATOR"
8CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
9REL="HOME"
10TITLE="Video for Linux Two API Specification"
11HREF="book1.htm"><LINK
12REL="UP"
13TITLE="RGB Formats"
14HREF="x2490.htm"><LINK
15REL="PREVIOUS"
16TITLE="Packed RGB formats"
17HREF="r2492.htm"><LINK
18REL="NEXT"
19TITLE="V4L2_PIX_FMT_SBGGR16 ('BA82')"
20HREF="r3796.htm"></HEAD
21><BODY
22CLASS="REFENTRY"
23BGCOLOR="#FFFFFF"
24TEXT="#000000"
25LINK="#0000FF"
26VLINK="#840084"
27ALINK="#0000FF"
28><DIV
29CLASS="NAVHEADER"
30><TABLE
31SUMMARY="Header navigation table"
32WIDTH="100%"
33BORDER="0"
34CELLPADDING="0"
35CELLSPACING="0"
36><TR
37><TH
38COLSPAN="3"
39ALIGN="center"
40>Video for Linux Two API Specification: Revision 0.24</TH
41></TR
42><TR
43><TD
44WIDTH="10%"
45ALIGN="left"
46VALIGN="bottom"
47><A
48HREF="r2492.htm"
49ACCESSKEY="P"
50>Prev</A
51></TD
52><TD
53WIDTH="80%"
54ALIGN="center"
55VALIGN="bottom"
56></TD
57><TD
58WIDTH="10%"
59ALIGN="right"
60VALIGN="bottom"
61><A
62HREF="r3796.htm"
63ACCESSKEY="N"
64>Next</A
65></TD
66></TR
67></TABLE
68><HR
69ALIGN="LEFT"
70WIDTH="100%"></DIV
71><H1
72><A
73NAME="V4L2-PIX-FMT-SBGGR8"
74></A
75>V4L2_PIX_FMT_SBGGR8 ('BA81')</H1
76><DIV
77CLASS="REFNAMEDIV"
78><A
79NAME="AEN3739"
80></A
81><H2
82>Name</H2
83><CODE
84CLASS="CONSTANT"
85>V4L2_PIX_FMT_SBGGR8</CODE
86>&nbsp;--&nbsp;Bayer RGB format</DIV
87><DIV
88CLASS="REFSECT1"
89><A
90NAME="AEN3743"
91></A
92><H2
93>Description</H2
94><P
95>This is commonly the native format of digital cameras,
96reflecting the arrangement of sensors on the CCD device. Only one red,
97green or blue value is given for each pixel. Missing components must
98be interpolated from neighbouring pixels. From left to right the first
99row consists of a blue and green value, the second row of a green and
100red value. This scheme repeats to the right and down for every two
101columns and rows.</P
102><DIV
103CLASS="EXAMPLE"
104><A
105NAME="AEN3746"
106></A
107><P
108><B
109>Example 2-1. <CODE
110CLASS="CONSTANT"
111>V4L2_PIX_FMT_SBGGR8</CODE
112> 4 &times; 4
113pixel image</B
114></P
115><DIV
116CLASS="FORMALPARA"
117><P
118><B
119>Byte Order. </B
120>Each cell is one byte.
121              <DIV
122CLASS="INFORMALTABLE"
123><P
124></P
125><A
126NAME="AEN3752"
127></A
128><TABLE
129BORDER="0"
130FRAME="void"
131CLASS="CALSTABLE"
132><COL
133WIDTH="2*"
134ALIGN="LEFT"><COL><COL><COL><COL><TBODY
135VALIGN="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
227CLASS="NAVFOOTER"
228><HR
229ALIGN="LEFT"
230WIDTH="100%"><TABLE
231SUMMARY="Footer navigation table"
232WIDTH="100%"
233BORDER="0"
234CELLPADDING="0"
235CELLSPACING="0"
236><TR
237><TD
238WIDTH="33%"
239ALIGN="left"
240VALIGN="top"
241><A
242HREF="r2492.htm"
243ACCESSKEY="P"
244>Prev</A
245></TD
246><TD
247WIDTH="34%"
248ALIGN="center"
249VALIGN="top"
250><A
251HREF="book1.htm"
252ACCESSKEY="H"
253>Home</A
254></TD
255><TD
256WIDTH="33%"
257ALIGN="right"
258VALIGN="top"
259><A
260HREF="r3796.htm"
261ACCESSKEY="N"
262>Next</A
263></TD
264></TR
265><TR
266><TD
267WIDTH="33%"
268ALIGN="left"
269VALIGN="top"
270>Packed RGB formats</TD
271><TD
272WIDTH="34%"
273ALIGN="center"
274VALIGN="top"
275><A
276HREF="x2490.htm"
277ACCESSKEY="U"
278>Up</A
279></TD
280><TD
281WIDTH="33%"
282ALIGN="right"
283VALIGN="top"
284>V4L2_PIX_FMT_SBGGR16 ('BA82')</TD
285></TR
286></TABLE
287></DIV
288></BODY
289></HTML
290>
291