Commit | Line | Data |
---|---|---|
5377d91f MH |
1 | .. -*- coding: utf-8; mode: rst -*- |
2 | ||
3 | .. _V4L2-PIX-FMT-SRGGB8: | |
96c59bfb SA |
4 | .. _v4l2-pix-fmt-sbggr8: |
5 | .. _v4l2-pix-fmt-sgbrg8: | |
6 | .. _v4l2-pix-fmt-sgrbg8: | |
5377d91f | 7 | |
96c59bfb SA |
8 | *************************************************************************************************************************** |
9 | V4L2_PIX_FMT_SRGGB8 ('RGGB'), V4L2_PIX_FMT_SGRBG8 ('GRBG'), V4L2_PIX_FMT_SGBRG8 ('GBRG'), V4L2_PIX_FMT_SBGGR8 ('BA81'), | |
10 | *************************************************************************************************************************** | |
5377d91f | 11 | |
5377d91f | 12 | |
96c59bfb | 13 | 8-bit Bayer formats |
5377d91f MH |
14 | |
15 | ||
16 | Description | |
17 | =========== | |
18 | ||
96c59bfb SA |
19 | These four pixel formats are raw sRGB / Bayer formats with 8 bits per |
20 | sample. Each sample is stored in a byte. Each n-pixel row contains n/2 | |
21 | green samples and n/2 blue or red samples, with alternating red and | |
22 | blue rows. They are conventionally described as GRGR... BGBG..., | |
23 | RGRG... GBGB..., etc. Below is an example of one of these formats: | |
5377d91f | 24 | |
056d2ee6 | 25 | **Byte Order.** |
5377d91f MH |
26 | Each cell is one byte. |
27 | ||
28 | ||
29 | ||
5bd4bb78 | 30 | |
5377d91f MH |
31 | .. flat-table:: |
32 | :header-rows: 0 | |
33 | :stub-columns: 0 | |
5377d91f MH |
34 | |
35 | ||
36 | - .. row 1 | |
37 | ||
38 | - start + 0: | |
39 | ||
96c59bfb | 40 | - B\ :sub:`00` |
5377d91f MH |
41 | |
42 | - G\ :sub:`01` | |
43 | ||
96c59bfb | 44 | - B\ :sub:`02` |
5377d91f MH |
45 | |
46 | - G\ :sub:`03` | |
47 | ||
48 | - .. row 2 | |
49 | ||
50 | - start + 4: | |
51 | ||
52 | - G\ :sub:`10` | |
53 | ||
96c59bfb | 54 | - R\ :sub:`11` |
5377d91f MH |
55 | |
56 | - G\ :sub:`12` | |
57 | ||
96c59bfb | 58 | - R\ :sub:`13` |
5377d91f MH |
59 | |
60 | - .. row 3 | |
61 | ||
62 | - start + 8: | |
63 | ||
96c59bfb | 64 | - B\ :sub:`20` |
5377d91f MH |
65 | |
66 | - G\ :sub:`21` | |
67 | ||
96c59bfb | 68 | - B\ :sub:`22` |
5377d91f MH |
69 | |
70 | - G\ :sub:`23` | |
71 | ||
72 | - .. row 4 | |
73 | ||
74 | - start + 12: | |
75 | ||
76 | - G\ :sub:`30` | |
77 | ||
96c59bfb | 78 | - R\ :sub:`31` |
5377d91f MH |
79 | |
80 | - G\ :sub:`32` | |
81 | ||
96c59bfb | 82 | - R\ :sub:`33` |