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