Commit | Line | Data |
---|---|---|
5377d91f MH |
1 | .. -*- coding: utf-8; mode: rst -*- |
2 | ||
3 | .. _V4L2-PIX-FMT-SRGGB10P: | |
9aff73d2 MCC |
4 | .. _v4l2-pix-fmt-sbggr10p: |
5 | .. _v4l2-pix-fmt-sgbrg10p: | |
6 | .. _v4l2-pix-fmt-sgrbg10p: | |
5377d91f MH |
7 | |
8 | ******************************************************************************************************************************* | |
9 | V4L2_PIX_FMT_SRGGB10P ('pRAA'), V4L2_PIX_FMT_SGRBG10P ('pgAA'), V4L2_PIX_FMT_SGBRG10P ('pGAA'), V4L2_PIX_FMT_SBGGR10P ('pBAA'), | |
10 | ******************************************************************************************************************************* | |
11 | ||
5377d91f MH |
12 | |
13 | V4L2_PIX_FMT_SGRBG10P | |
14 | V4L2_PIX_FMT_SGBRG10P | |
15 | V4L2_PIX_FMT_SBGGR10P | |
16 | 10-bit packed Bayer formats | |
17 | ||
18 | ||
19 | Description | |
20 | =========== | |
21 | ||
22 | These four pixel formats are packed raw sRGB / Bayer formats with 10 | |
88646d37 SA |
23 | bits per sample. Every four consecutive samples are packed into 5 |
24 | bytes. Each of the first 4 bytes contain the 8 high order bits | |
25 | of the pixels, and the 5th byte contains the 2 least significants | |
26 | bits of each pixel, in the same order. | |
5377d91f MH |
27 | |
28 | Each n-pixel row contains n/2 green samples and n/2 blue or red samples, | |
29 | with alternating green-red and green-blue rows. They are conventionally | |
30 | described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example | |
31 | of one of these formats: | |
32 | ||
056d2ee6 | 33 | **Byte Order.** |
5377d91f MH |
34 | Each cell is one byte. |
35 | ||
48109237 | 36 | .. raw:: latex |
5377d91f | 37 | |
48109237 | 38 | \newline\newline\begin{adjustbox}{width=\columnwidth} |
5377d91f | 39 | |
48109237 | 40 | .. tabularcolumns:: |p{2.0cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{1.3cm}|p{10.9cm}| |
5bd4bb78 | 41 | |
5377d91f MH |
42 | .. flat-table:: |
43 | :header-rows: 0 | |
44 | :stub-columns: 0 | |
48109237 | 45 | :widths: 12 8 8 8 8 68 |
5377d91f MH |
46 | |
47 | - .. row 1 | |
48 | ||
49 | - start + 0: | |
50 | ||
51 | - B\ :sub:`00high` | |
52 | ||
53 | - G\ :sub:`01high` | |
54 | ||
55 | - B\ :sub:`02high` | |
56 | ||
57 | - G\ :sub:`03high` | |
58 | ||
72e8138c SA |
59 | - G\ :sub:`03low`\ (bits 7--6) B\ :sub:`02low`\ (bits 5--4) |
60 | G\ :sub:`01low`\ (bits 3--2) B\ :sub:`00low`\ (bits 1--0) | |
5377d91f MH |
61 | |
62 | - .. row 2 | |
63 | ||
64 | - start + 5: | |
65 | ||
66 | - G\ :sub:`10high` | |
67 | ||
68 | - R\ :sub:`11high` | |
69 | ||
70 | - G\ :sub:`12high` | |
71 | ||
72 | - R\ :sub:`13high` | |
73 | ||
72e8138c SA |
74 | - R\ :sub:`13low`\ (bits 7--6) G\ :sub:`12low`\ (bits 5--4) |
75 | R\ :sub:`11low`\ (bits 3--2) G\ :sub:`10low`\ (bits 1--0) | |
5377d91f MH |
76 | |
77 | - .. row 3 | |
78 | ||
79 | - start + 10: | |
80 | ||
81 | - B\ :sub:`20high` | |
82 | ||
83 | - G\ :sub:`21high` | |
84 | ||
85 | - B\ :sub:`22high` | |
86 | ||
87 | - G\ :sub:`23high` | |
88 | ||
72e8138c SA |
89 | - G\ :sub:`23low`\ (bits 7--6) B\ :sub:`22low`\ (bits 5--4) |
90 | G\ :sub:`21low`\ (bits 3--2) B\ :sub:`20low`\ (bits 1--0) | |
5377d91f MH |
91 | |
92 | - .. row 4 | |
93 | ||
94 | - start + 15: | |
95 | ||
96 | - G\ :sub:`30high` | |
97 | ||
98 | - R\ :sub:`31high` | |
99 | ||
100 | - G\ :sub:`32high` | |
101 | ||
102 | - R\ :sub:`33high` | |
103 | ||
72e8138c SA |
104 | - R\ :sub:`33low`\ (bits 7--6) G\ :sub:`32low`\ (bits 5--4) |
105 | R\ :sub:`31low`\ (bits 3--2) G\ :sub:`30low`\ (bits 1--0) | |
48109237 MCC |
106 | |
107 | .. raw:: latex | |
108 | ||
109 | \end{adjustbox}\newline\newline |