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.
7..
8.. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
9
10.. _V4L2-PIX-FMT-SRGGB14:
11.. _v4l2-pix-fmt-sbggr14:
12.. _v4l2-pix-fmt-sgbrg14:
13.. _v4l2-pix-fmt-sgrbg14:
14
15
16***************************************************************************************************************************
17V4L2_PIX_FMT_SRGGB14 ('RG14'), V4L2_PIX_FMT_SGRBG14 ('GR14'), V4L2_PIX_FMT_SGBRG14 ('GB14'), V4L2_PIX_FMT_SBGGR14 ('BG14'),
18***************************************************************************************************************************
19
20
2114-bit Bayer formats expanded to 16 bits
22
23
24Description
25===========
26
27These four pixel formats are raw sRGB / Bayer formats with 14 bits per
28colour. Each sample is stored in a 16-bit word, with two unused high
29bits filled with zeros. Each n-pixel row contains n/2 green samples
30and n/2 blue or red samples, with alternating red and blue rows. Bytes
31are stored in memory in little endian order. They are conventionally
32described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an
33example of a small V4L2_PIX_FMT_SBGGR14 image:
34
35**Byte Order.**
36Each cell is one byte, the two most significant bits in the high bytes are
37zero.
38
39
40
41.. flat-table::
42    :header-rows:  0
43    :stub-columns: 0
44    :widths:       2 1 1 1 1 1 1 1 1
45
46
47    * - start + 0:
48      - B\ :sub:`00low`
49      - B\ :sub:`00high`
50      - G\ :sub:`01low`
51      - G\ :sub:`01high`
52      - B\ :sub:`02low`
53      - B\ :sub:`02high`
54      - G\ :sub:`03low`
55      - G\ :sub:`03high`
56    * - start + 8:
57      - G\ :sub:`10low`
58      - G\ :sub:`10high`
59      - R\ :sub:`11low`
60      - R\ :sub:`11high`
61      - G\ :sub:`12low`
62      - G\ :sub:`12high`
63      - R\ :sub:`13low`
64      - R\ :sub:`13high`
65    * - start + 16:
66      - B\ :sub:`20low`
67      - B\ :sub:`20high`
68      - G\ :sub:`21low`
69      - G\ :sub:`21high`
70      - B\ :sub:`22low`
71      - B\ :sub:`22high`
72      - G\ :sub:`23low`
73      - G\ :sub:`23high`
74    * - start + 24:
75      - G\ :sub:`30low`
76      - G\ :sub:`30high`
77      - R\ :sub:`31low`
78      - R\ :sub:`31high`
79      - G\ :sub:`32low`
80      - G\ :sub:`32high`
81      - R\ :sub:`33low`
82      - R\ :sub:`33high`
83