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