Commit | Line | Data |
---|---|---|
82559ac0 MCC |
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/media/uapi/fdl-appendix.rst. | |
7 | .. | |
8 | .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections | |
9 | ||
5377d91f | 10 | .. _V4L2-PIX-FMT-SRGGB10: |
9aff73d2 MCC |
11 | .. _v4l2-pix-fmt-sbggr10: |
12 | .. _v4l2-pix-fmt-sgbrg10: | |
13 | .. _v4l2-pix-fmt-sgrbg10: | |
5377d91f MH |
14 | |
15 | *************************************************************************************************************************** | |
16 | V4L2_PIX_FMT_SRGGB10 ('RG10'), V4L2_PIX_FMT_SGRBG10 ('BA10'), V4L2_PIX_FMT_SGBRG10 ('GB10'), V4L2_PIX_FMT_SBGGR10 ('BG10'), | |
17 | *************************************************************************************************************************** | |
18 | ||
5377d91f MH |
19 | |
20 | V4L2_PIX_FMT_SGRBG10 | |
21 | V4L2_PIX_FMT_SGBRG10 | |
22 | V4L2_PIX_FMT_SBGGR10 | |
23 | 10-bit Bayer formats expanded to 16 bits | |
24 | ||
25 | ||
26 | Description | |
27 | =========== | |
28 | ||
29 | These four pixel formats are raw sRGB / Bayer formats with 10 bits per | |
88646d37 SA |
30 | sample. Each sample is stored in a 16-bit word, with 6 unused |
31 | high bits filled with zeros. Each n-pixel row contains n/2 green samples and | |
32 | n/2 blue or red samples, with alternating red and blue rows. Bytes are | |
33 | stored in memory in little endian order. They are conventionally described | |
34 | as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example of one of | |
35 | these formats: | |
5377d91f | 36 | |
056d2ee6 | 37 | **Byte Order.** |
88646d37 SA |
38 | Each cell is one byte, the 6 most significant bits in the high bytes |
39 | are 0. | |
5377d91f MH |
40 | |
41 | ||
42 | ||
5bd4bb78 | 43 | |
5377d91f MH |
44 | .. flat-table:: |
45 | :header-rows: 0 | |
46 | :stub-columns: 0 | |
5377d91f | 47 | |
c2b66caf LP |
48 | * - start + 0: |
49 | - B\ :sub:`00low` | |
50 | - B\ :sub:`00high` | |
51 | - G\ :sub:`01low` | |
52 | - G\ :sub:`01high` | |
53 | - B\ :sub:`02low` | |
54 | - B\ :sub:`02high` | |
55 | - G\ :sub:`03low` | |
56 | - G\ :sub:`03high` | |
57 | * - start + 8: | |
58 | - G\ :sub:`10low` | |
59 | - G\ :sub:`10high` | |
60 | - R\ :sub:`11low` | |
61 | - R\ :sub:`11high` | |
62 | - G\ :sub:`12low` | |
63 | - G\ :sub:`12high` | |
64 | - R\ :sub:`13low` | |
65 | - R\ :sub:`13high` | |
66 | * - start + 16: | |
67 | - B\ :sub:`20low` | |
68 | - B\ :sub:`20high` | |
69 | - G\ :sub:`21low` | |
70 | - G\ :sub:`21high` | |
71 | - B\ :sub:`22low` | |
72 | - B\ :sub:`22high` | |
73 | - G\ :sub:`23low` | |
74 | - G\ :sub:`23high` | |
75 | * - start + 24: | |
76 | - G\ :sub:`30low` | |
77 | - G\ :sub:`30high` | |
78 | - R\ :sub:`31low` | |
79 | - R\ :sub:`31high` | |
80 | - G\ :sub:`32low` | |
81 | - G\ :sub:`32high` | |
82 | - R\ :sub:`33low` | |
83 | - R\ :sub:`33high` |