1 .. Permission is granted to copy, distribute and/or modify this
2 .. document under the terms of the GNU Free Documentation License,
3 .. Version 1.1 or any later version published by the Free Software
4 .. Foundation, with no Invariant Sections, no Front-Cover Texts
5 .. and no Back-Cover Texts. A copy of the license is included at
6 .. Documentation/userspace-api/media/fdl-appendix.rst.
8 .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
10 .. _v4l2-pix-fmt-ipu3-sbggr10:
11 .. _v4l2-pix-fmt-ipu3-sgbrg10:
12 .. _v4l2-pix-fmt-ipu3-sgrbg10:
13 .. _v4l2-pix-fmt-ipu3-srggb10:
15 **********************************************************************************************************************************************
16 V4L2_PIX_FMT_IPU3_SBGGR10 ('ip3b'), V4L2_PIX_FMT_IPU3_SGBRG10 ('ip3g'), V4L2_PIX_FMT_IPU3_SGRBG10 ('ip3G'), V4L2_PIX_FMT_IPU3_SRGGB10 ('ip3r')
17 **********************************************************************************************************************************************
24 These four pixel formats are used by Intel IPU3 driver, they are raw
25 sRGB / Bayer formats with 10 bits per sample with every 25 pixels packed
26 to 32 bytes leaving 6 most significant bits padding in the last byte.
27 The format is little endian.
29 In other respects this format is similar to :ref:`V4L2-PIX-FMT-SRGGB10`.
30 Below is an example of a small image in V4L2_PIX_FMT_IPU3_SBGGR10 format.
33 Each cell is one byte.
35 .. tabularcolumns:: |p{0.8cm}|p{4.0cm}|p{4.0cm}|p{4.0cm}|p{4.0cm}|
41 - G\ :sub:`0001low`\ (bits 7--2)
43 B\ :sub:`0000high`\ (bits 1--0)
44 - B\ :sub:`0002low`\ (bits 7--4)
46 G\ :sub:`0001high`\ (bits 3--0)
47 - G\ :sub:`0003low`\ (bits 7--6)
49 B\ :sub:`0002high`\ (bits 5--0)
53 - G\ :sub:`0005low`\ (bits 7--2)
55 B\ :sub:`0004high`\ (bits 1--0)
56 - B\ :sub:`0006low`\ (bits 7--4)
58 G\ :sub:`0005high`\ (bits 3--0)
60 - G\ :sub:`0007low`\ (bits 7--6)
62 B\ :sub:`0006high`\ (bits 5--0)
65 - G\ :sub:`0009low`\ (bits 7--2)
67 B\ :sub:`0008high`\ (bits 1--0)
69 - B\ :sub:`0010low`\ (bits 7--4)
71 G\ :sub:`0009high`\ (bits 3--0)
72 - G\ :sub:`0011low`\ (bits 7--6)
74 B\ :sub:`0010high`\ (bits 5--0)
78 - G\ :sub:`0013low`\ (bits 7--2)
80 B\ :sub:`0012high`\ (bits 1--0)
81 - B\ :sub:`0014low`\ (bits 7--4)
83 G\ :sub:`0013high`\ (bits 3--0)
84 - G\ :sub:`0015low`\ (bits 7--6)
86 B\ :sub:`0014high`\ (bits 5--0)
90 - G\ :sub:`0017low`\ (bits 7--2)
92 B\ :sub:`0016high`\ (bits 1--0)
93 - B\ :sub:`0018low`\ (bits 7--4)
95 G\ :sub:`0017high`\ (bits 3--0)
96 - G\ :sub:`0019low`\ (bits 7--6)
98 B\ :sub:`0018high`\ (bits 5--0)
102 - G\ :sub:`0021low`\ (bits 7--2)
104 B\ :sub:`0020high`\ (bits 1--0)
105 - B\ :sub:`0022low`\ (bits 7--4)
107 G\ :sub:`0021high`\ (bits 3--0)
109 - G\ :sub:`0023low`\ (bits 7--6)
111 B\ :sub:`0022high`\ (bits 5--0)
114 - B\ :sub:`0024high`\ (bits 1--0)
117 - R\ :sub:`0101low`\ (bits 7--2)
119 G\ :sub:`0100high`\ (bits 1--0)
120 - G\ :sub:`0102low`\ (bits 7--4)
122 R\ :sub:`0101high`\ (bits 3--0)
123 - R\ :sub:`0103low`\ (bits 7--6)
125 G\ :sub:`0102high`\ (bits 5--0)
129 - R\ :sub:`0105low`\ (bits 7--2)
131 G\ :sub:`0104high`\ (bits 1--0)
132 - G\ :sub:`0106low`\ (bits 7--4)
134 R\ :sub:`0105high`\ (bits 3--0)
136 - R\ :sub:`0107low`\ (bits 7--6)
138 G\ :sub:`0106high`\ (bits 5--0)
141 - R\ :sub:`0109low`\ (bits 7--2)
143 G\ :sub:`0108high`\ (bits 1--0)
145 - G\ :sub:`0110low`\ (bits 7--4)
147 R\ :sub:`0109high`\ (bits 3--0)
148 - R\ :sub:`0111low`\ (bits 7--6)
150 G\ :sub:`0110high`\ (bits 5--0)
154 - R\ :sub:`0113low`\ (bits 7--2)
156 G\ :sub:`0112high`\ (bits 1--0)
157 - G\ :sub:`0114low`\ (bits 7--4)
159 R\ :sub:`0113high`\ (bits 3--0)
160 - R\ :sub:`0115low`\ (bits 7--6)
162 G\ :sub:`0114high`\ (bits 5--0)
166 - R\ :sub:`0117low`\ (bits 7--2)
168 G\ :sub:`0116high`\ (bits 1--0)
169 - G\ :sub:`0118low`\ (bits 7--4)
171 R\ :sub:`0117high`\ (bits 3--0)
172 - R\ :sub:`0119low`\ (bits 7--6)
174 G\ :sub:`0118high`\ (bits 5--0)
178 - R\ :sub:`0121low`\ (bits 7--2)
180 G\ :sub:`0120high`\ (bits 1--0)
181 - G\ :sub:`0122low`\ (bits 7--4)
183 R\ :sub:`0121high`\ (bits 3--0)
185 - R\ :sub:`0123low`\ (bits 7--6)
187 G\ :sub:`0122high`\ (bits 5--0)
190 - G\ :sub:`0124high`\ (bits 1--0)
193 - G\ :sub:`0201low`\ (bits 7--2)
195 B\ :sub:`0200high`\ (bits 1--0)
196 - B\ :sub:`0202low`\ (bits 7--4)
198 G\ :sub:`0201high`\ (bits 3--0)
199 - G\ :sub:`0203low`\ (bits 7--6)
201 B\ :sub:`0202high`\ (bits 5--0)
205 - G\ :sub:`0205low`\ (bits 7--2)
207 B\ :sub:`0204high`\ (bits 1--0)
208 - B\ :sub:`0206low`\ (bits 7--4)
210 G\ :sub:`0205high`\ (bits 3--0)
212 - G\ :sub:`0207low`\ (bits 7--6)
214 B\ :sub:`0206high`\ (bits 5--0)
217 - G\ :sub:`0209low`\ (bits 7--2)
219 B\ :sub:`0208high`\ (bits 1--0)
221 - B\ :sub:`0210low`\ (bits 7--4)
223 G\ :sub:`0209high`\ (bits 3--0)
224 - G\ :sub:`0211low`\ (bits 7--6)
226 B\ :sub:`0210high`\ (bits 5--0)
230 - G\ :sub:`0213low`\ (bits 7--2)
232 B\ :sub:`0212high`\ (bits 1--0)
233 - B\ :sub:`0214low`\ (bits 7--4)
235 G\ :sub:`0213high`\ (bits 3--0)
236 - G\ :sub:`0215low`\ (bits 7--6)
238 B\ :sub:`0214high`\ (bits 5--0)
242 - G\ :sub:`0217low`\ (bits 7--2)
244 B\ :sub:`0216high`\ (bits 1--0)
245 - B\ :sub:`0218low`\ (bits 7--4)
247 G\ :sub:`0217high`\ (bits 3--0)
248 - G\ :sub:`0219low`\ (bits 7--6)
250 B\ :sub:`0218high`\ (bits 5--0)
254 - G\ :sub:`0221low`\ (bits 7--2)
256 B\ :sub:`0220high`\ (bits 1--0)
257 - B\ :sub:`0222low`\ (bits 7--4)
259 G\ :sub:`0221high`\ (bits 3--0)
261 - G\ :sub:`0223low`\ (bits 7--6)
263 B\ :sub:`0222high`\ (bits 5--0)
266 - B\ :sub:`0224high`\ (bits 1--0)
269 - R\ :sub:`0301low`\ (bits 7--2)
271 G\ :sub:`0300high`\ (bits 1--0)
272 - G\ :sub:`0302low`\ (bits 7--4)
274 R\ :sub:`0301high`\ (bits 3--0)
275 - R\ :sub:`0303low`\ (bits 7--6)
277 G\ :sub:`0302high`\ (bits 5--0)
281 - R\ :sub:`0305low`\ (bits 7--2)
283 G\ :sub:`0304high`\ (bits 1--0)
284 - G\ :sub:`0306low`\ (bits 7--4)
286 R\ :sub:`0305high`\ (bits 3--0)
288 - R\ :sub:`0307low`\ (bits 7--6)
290 G\ :sub:`0306high`\ (bits 5--0)
293 - R\ :sub:`0309low`\ (bits 7--2)
295 G\ :sub:`0308high`\ (bits 1--0)
297 - G\ :sub:`0310low`\ (bits 7--4)
299 R\ :sub:`0309high`\ (bits 3--0)
300 - R\ :sub:`0311low`\ (bits 7--6)
302 G\ :sub:`0310high`\ (bits 5--0)
306 - R\ :sub:`0313low`\ (bits 7--2)
308 G\ :sub:`0312high`\ (bits 1--0)
309 - G\ :sub:`0314low`\ (bits 7--4)
311 R\ :sub:`0313high`\ (bits 3--0)
312 - R\ :sub:`0315low`\ (bits 7--6)
314 G\ :sub:`0314high`\ (bits 5--0)
318 - R\ :sub:`0317low`\ (bits 7--2)
320 G\ :sub:`0316high`\ (bits 1--0)
321 - G\ :sub:`0318low`\ (bits 7--4)
323 R\ :sub:`0317high`\ (bits 3--0)
324 - R\ :sub:`0319low`\ (bits 7--6)
326 G\ :sub:`0318high`\ (bits 5--0)
330 - R\ :sub:`0321low`\ (bits 7--2)
332 G\ :sub:`0320high`\ (bits 1--0)
333 - G\ :sub:`0322low`\ (bits 7--4)
335 R\ :sub:`0321high`\ (bits 3--0)
337 - R\ :sub:`0323low`\ (bits 7--6)
339 G\ :sub:`0322high`\ (bits 5--0)
342 - G\ :sub:`0324high`\ (bits 1--0)