Merge branch 'docs-next' of git://git.lwn.net/linux into patchwork
[cascardo/linux.git] / Documentation / media / uapi / v4l / pixfmt-sbggr16.rst
1 .. -*- coding: utf-8; mode: rst -*-
2
3 .. _V4L2-PIX-FMT-SBGGR16:
4
5 *****************************
6 V4L2_PIX_FMT_SBGGR16 ('BYR2')
7 *****************************
8
9 Bayer RGB format
10
11
12 Description
13 ===========
14
15 This format is similar to
16 :ref:`V4L2_PIX_FMT_SBGGR8 <V4L2-PIX-FMT-SBGGR8>`, except each pixel
17 has a depth of 16 bits. The least significant byte is stored at lower
18 memory addresses (little-endian).
19
20 .. note::
21
22     The actual sampling precision may be lower than 16 bits,
23     for example 10 bits per pixel with values in tange 0 to 1023.
24
25 **Byte Order.**
26 Each cell is one byte.
27
28 .. flat-table::
29     :header-rows:  0
30     :stub-columns: 0
31
32     -  .. row 1
33
34        -  start + 0:
35
36        -  B\ :sub:`00low`
37
38        -  B\ :sub:`00high`
39
40        -  G\ :sub:`01low`
41
42        -  G\ :sub:`01high`
43
44        -  B\ :sub:`02low`
45
46        -  B\ :sub:`02high`
47
48        -  G\ :sub:`03low`
49
50        -  G\ :sub:`03high`
51
52     -  .. row 2
53
54        -  start + 8:
55
56        -  G\ :sub:`10low`
57
58        -  G\ :sub:`10high`
59
60        -  R\ :sub:`11low`
61
62        -  R\ :sub:`11high`
63
64        -  G\ :sub:`12low`
65
66        -  G\ :sub:`12high`
67
68        -  R\ :sub:`13low`
69
70        -  R\ :sub:`13high`
71
72     -  .. row 3
73
74        -  start + 16:
75
76        -  B\ :sub:`20low`
77
78        -  B\ :sub:`20high`
79
80        -  G\ :sub:`21low`
81
82        -  G\ :sub:`21high`
83
84        -  B\ :sub:`22low`
85
86        -  B\ :sub:`22high`
87
88        -  G\ :sub:`23low`
89
90        -  G\ :sub:`23high`
91
92     -  .. row 4
93
94        -  start + 24:
95
96        -  G\ :sub:`30low`
97
98        -  G\ :sub:`30high`
99
100        -  R\ :sub:`31low`
101
102        -  R\ :sub:`31high`
103
104        -  G\ :sub:`32low`
105
106        -  G\ :sub:`32high`
107
108        -  R\ :sub:`33low`
109
110        -  R\ :sub:`33high`