doc-rst: linux_tv DocBook to reST migration (docs-next)
[deliverable/linux.git] / Documentation / linux_tv / media / v4l / pixfmt-srggb10.rst
CommitLineData
5377d91f
MH
1.. -*- coding: utf-8; mode: rst -*-
2
3.. _V4L2-PIX-FMT-SRGGB10:
4
5***************************************************************************************************************************
6V4L2_PIX_FMT_SRGGB10 ('RG10'), V4L2_PIX_FMT_SGRBG10 ('BA10'), V4L2_PIX_FMT_SGBRG10 ('GB10'), V4L2_PIX_FMT_SBGGR10 ('BG10'),
7***************************************************************************************************************************
8
9*man V4L2_PIX_FMT_SRGGB10(2)*
10
11V4L2_PIX_FMT_SGRBG10
12V4L2_PIX_FMT_SGBRG10
13V4L2_PIX_FMT_SBGGR10
1410-bit Bayer formats expanded to 16 bits
15
16
17Description
18===========
19
20These four pixel formats are raw sRGB / Bayer formats with 10 bits per
21colour. Each colour component is stored in a 16-bit word, with 6 unused
22high bits filled with zeros. Each n-pixel row contains n/2 green samples
23and n/2 blue or red samples, with alternating red and blue rows. Bytes
24are stored in memory in little endian order. They are conventionally
25described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example
26of one of these formats
27
28**Byte Order..**
29
30Each cell is one byte, high 6 bits in high bytes are 0.
31
32
33
34.. flat-table::
35 :header-rows: 0
36 :stub-columns: 0
37 :widths: 2 1 1 1 1 1 1 1 1
38
39
40 - .. row 1
41
42 - start + 0:
43
44 - B\ :sub:`00low`
45
46 - B\ :sub:`00high`
47
48 - G\ :sub:`01low`
49
50 - G\ :sub:`01high`
51
52 - B\ :sub:`02low`
53
54 - B\ :sub:`02high`
55
56 - G\ :sub:`03low`
57
58 - G\ :sub:`03high`
59
60 - .. row 2
61
62 - start + 8:
63
64 - G\ :sub:`10low`
65
66 - G\ :sub:`10high`
67
68 - R\ :sub:`11low`
69
70 - R\ :sub:`11high`
71
72 - G\ :sub:`12low`
73
74 - G\ :sub:`12high`
75
76 - R\ :sub:`13low`
77
78 - R\ :sub:`13high`
79
80 - .. row 3
81
82 - start + 16:
83
84 - B\ :sub:`20low`
85
86 - B\ :sub:`20high`
87
88 - G\ :sub:`21low`
89
90 - G\ :sub:`21high`
91
92 - B\ :sub:`22low`
93
94 - B\ :sub:`22high`
95
96 - G\ :sub:`23low`
97
98 - G\ :sub:`23high`
99
100 - .. row 4
101
102 - start + 24:
103
104 - G\ :sub:`30low`
105
106 - G\ :sub:`30high`
107
108 - R\ :sub:`31low`
109
110 - R\ :sub:`31high`
111
112 - G\ :sub:`32low`
113
114 - G\ :sub:`32high`
115
116 - R\ :sub:`33low`
117
118 - R\ :sub:`33high`
119
120
121
122
123.. ------------------------------------------------------------------------------
124.. This file was automatically converted from DocBook-XML with the dbxml
125.. library (https://github.com/return42/sphkerneldoc). The origin XML comes
126.. from the linux kernel, refer to:
127..
128.. * https://github.com/torvalds/linux/tree/master/Documentation/DocBook
129.. ------------------------------------------------------------------------------
This page took 0.029127 seconds and 5 git commands to generate.