Merge tag 'xtensa-20161005' of git://github.com/jcmvbkbc/linux-xtensa
[sfrench/cifs-2.6.git] / Documentation / media / uapi / v4l / pixfmt-srggb10p.rst
1 .. -*- coding: utf-8; mode: rst -*-
2
3 .. _V4L2-PIX-FMT-SRGGB10P:
4 .. _v4l2-pix-fmt-sbggr10p:
5 .. _v4l2-pix-fmt-sgbrg10p:
6 .. _v4l2-pix-fmt-sgrbg10p:
7
8 *******************************************************************************************************************************
9 V4L2_PIX_FMT_SRGGB10P ('pRAA'), V4L2_PIX_FMT_SGRBG10P ('pgAA'), V4L2_PIX_FMT_SGBRG10P ('pGAA'), V4L2_PIX_FMT_SBGGR10P ('pBAA'),
10 *******************************************************************************************************************************
11
12 *man V4L2_PIX_FMT_SRGGB10P(2)*
13
14 V4L2_PIX_FMT_SGRBG10P
15 V4L2_PIX_FMT_SGBRG10P
16 V4L2_PIX_FMT_SBGGR10P
17 10-bit packed Bayer formats
18
19
20 Description
21 ===========
22
23 These four pixel formats are packed raw sRGB / Bayer formats with 10
24 bits per colour. Every four consecutive colour components are packed
25 into 5 bytes. Each of the first 4 bytes contain the 8 high order bits of
26 the pixels, and the fifth byte contains the two least significants bits
27 of each pixel, in the same order.
28
29 Each n-pixel row contains n/2 green samples and n/2 blue or red samples,
30 with alternating green-red and green-blue rows. They are conventionally
31 described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example
32 of one of these formats:
33
34 **Byte Order.**
35 Each cell is one byte.
36
37
38
39 .. flat-table::
40     :header-rows:  0
41     :stub-columns: 0
42     :widths:       2 1 1 1 1 1
43
44
45     -  .. row 1
46
47        -  start + 0:
48
49        -  B\ :sub:`00high`
50
51        -  G\ :sub:`01high`
52
53        -  B\ :sub:`02high`
54
55        -  G\ :sub:`03high`
56
57        -  B\ :sub:`00low`\ (bits 7--6) G\ :sub:`01low`\ (bits 5--4)
58           B\ :sub:`02low`\ (bits 3--2) G\ :sub:`03low`\ (bits 1--0)
59
60     -  .. row 2
61
62        -  start + 5:
63
64        -  G\ :sub:`10high`
65
66        -  R\ :sub:`11high`
67
68        -  G\ :sub:`12high`
69
70        -  R\ :sub:`13high`
71
72        -  G\ :sub:`10low`\ (bits 7--6) R\ :sub:`11low`\ (bits 5--4)
73           G\ :sub:`12low`\ (bits 3--2) R\ :sub:`13low`\ (bits 1--0)
74
75     -  .. row 3
76
77        -  start + 10:
78
79        -  B\ :sub:`20high`
80
81        -  G\ :sub:`21high`
82
83        -  B\ :sub:`22high`
84
85        -  G\ :sub:`23high`
86
87        -  B\ :sub:`20low`\ (bits 7--6) G\ :sub:`21low`\ (bits 5--4)
88           B\ :sub:`22low`\ (bits 3--2) G\ :sub:`23low`\ (bits 1--0)
89
90     -  .. row 4
91
92        -  start + 15:
93
94        -  G\ :sub:`30high`
95
96        -  R\ :sub:`31high`
97
98        -  G\ :sub:`32high`
99
100        -  R\ :sub:`33high`
101
102        -  G\ :sub:`30low`\ (bits 7--6) R\ :sub:`31low`\ (bits 5--4)
103           G\ :sub:`32low`\ (bits 3--2) R\ :sub:`33low`\ (bits 1--0)