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