]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - Documentation/linux_tv/media/v4l/pixfmt-srggb10p.rst
doc-rst: fix some badly converted references
[mirror_ubuntu-bionic-kernel.git] / Documentation / linux_tv / media / v4l / pixfmt-srggb10p.rst
CommitLineData
5377d91f
MH
1.. -*- coding: utf-8; mode: rst -*-
2
3.. _V4L2-PIX-FMT-SRGGB10P:
4
5*******************************************************************************************************************************
6V4L2_PIX_FMT_SRGGB10P ('pRAA'), V4L2_PIX_FMT_SGRBG10P ('pgAA'), V4L2_PIX_FMT_SGBRG10P ('pGAA'), V4L2_PIX_FMT_SBGGR10P ('pBAA'),
7*******************************************************************************************************************************
8
9*man V4L2_PIX_FMT_SRGGB10P(2)*
10
11V4L2_PIX_FMT_SGRBG10P
12V4L2_PIX_FMT_SGBRG10P
13V4L2_PIX_FMT_SBGGR10P
1410-bit packed Bayer formats
15
16
17Description
18===========
19
20These four pixel formats are packed raw sRGB / Bayer formats with 10
21bits per colour. Every four consecutive colour components are packed
22into 5 bytes. Each of the first 4 bytes contain the 8 high order bits of
23the pixels, and the fifth byte contains the two least significants bits
24of each pixel, in the same order.
25
26Each n-pixel row contains n/2 green samples and n/2 blue or red samples,
27with alternating green-red and green-blue rows. 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.
33
34
35
36.. flat-table::
37 :header-rows: 0
38 :stub-columns: 0
39 :widths: 2 1 1 1 1 1
40
41
42 - .. row 1
43
44 - start + 0:
45
46 - B\ :sub:`00high`
47
48 - G\ :sub:`01high`
49
50 - B\ :sub:`02high`
51
52 - G\ :sub:`03high`
53
54 - B\ :sub:`00low`\ (bits 7--6) G\ :sub:`01low`\ (bits 5--4)
0579e6e3 55 B\ :sub:`02low`\ (bits 3--2) G\ :sub:`03low`\ (bits 1--0)
5377d91f
MH
56
57 - .. row 2
58
59 - start + 5:
60
61 - G\ :sub:`10high`
62
63 - R\ :sub:`11high`
64
65 - G\ :sub:`12high`
66
67 - R\ :sub:`13high`
68
69 - G\ :sub:`10low`\ (bits 7--6) R\ :sub:`11low`\ (bits 5--4)
0579e6e3 70 G\ :sub:`12low`\ (bits 3--2) R\ :sub:`13low`\ (bits 1--0)
5377d91f
MH
71
72 - .. row 3
73
74 - start + 10:
75
76 - B\ :sub:`20high`
77
78 - G\ :sub:`21high`
79
80 - B\ :sub:`22high`
81
82 - G\ :sub:`23high`
83
84 - B\ :sub:`20low`\ (bits 7--6) G\ :sub:`21low`\ (bits 5--4)
0579e6e3 85 B\ :sub:`22low`\ (bits 3--2) G\ :sub:`23low`\ (bits 1--0)
5377d91f
MH
86
87 - .. row 4
88
89 - start + 15:
90
91 - G\ :sub:`30high`
92
93 - R\ :sub:`31high`
94
95 - G\ :sub:`32high`
96
97 - R\ :sub:`33high`
98
99 - G\ :sub:`30low`\ (bits 7--6) R\ :sub:`31low`\ (bits 5--4)
0579e6e3 100 G\ :sub:`32low`\ (bits 3--2) R\ :sub:`33low`\ (bits 1--0)