File Index
Files and directories
Sign in
FILE

pixfmt-srggb14p.rst

File preview with syntax highlighting.

linux-6.19.14/Documentation/userspace-api/media/v4l/pixfmt-srggb14p.rst RESTRUCTUREDTEXT
  1.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
  2.. c:namespace:: V4L
  3
  4.. _V4L2-PIX-FMT-SRGGB14P:
  5.. _v4l2-pix-fmt-sbggr14p:
  6.. _v4l2-pix-fmt-sgbrg14p:
  7.. _v4l2-pix-fmt-sgrbg14p:
  8
  9*******************************************************************************************************************************
 10V4L2_PIX_FMT_SRGGB14P ('pREE'), V4L2_PIX_FMT_SGRBG14P ('pgEE'), V4L2_PIX_FMT_SGBRG14P ('pGEE'), V4L2_PIX_FMT_SBGGR14P ('pBEE'),
 11*******************************************************************************************************************************
 12
 13*man V4L2_PIX_FMT_SRGGB14P(2)*
 14
 15V4L2_PIX_FMT_SGRBG14P
 16V4L2_PIX_FMT_SGBRG14P
 17V4L2_PIX_FMT_SBGGR14P
 1814-bit packed Bayer formats
 19
 20
 21Description
 22===========
 23
 24These four pixel formats are packed raw sRGB / Bayer formats with 14
 25bits per colour. Every four consecutive samples are packed into seven
 26bytes. Each of the first four bytes contain the eight high order bits
 27of the pixels, and the three following bytes contains the six least
 28significant bits of each pixel, in the same order.
 29
 30Each n-pixel row contains n/2 green samples and n/2 blue or red samples,
 31with alternating green-red and green-blue rows. They are conventionally
 32described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example
 33of one of these formats:
 34
 35**Byte Order.**
 36Each cell is one byte.
 37
 38.. raw:: latex
 39
 40    \begingroup
 41    \footnotesize
 42    \setlength{\tabcolsep}{2pt}
 43
 44.. tabularcolumns:: |p{1.6cm}|p{1.0cm}|p{1.0cm}|p{1.0cm}|p{1.0cm}|p{3.5cm}|p{3.5cm}|p{3.5cm}|
 45
 46.. flat-table::
 47    :header-rows:  0
 48    :stub-columns: 0
 49    :widths:       2 1 1 1 1 3 3 3
 50
 51
 52    -  .. row 1
 53
 54       -  start + 0
 55
 56       -  B\ :sub:`00high`
 57
 58       -  G\ :sub:`01high`
 59
 60       -  B\ :sub:`02high`
 61
 62       -  G\ :sub:`03high`
 63
 64       -  G\ :sub:`01low bits 1--0`\ (bits 7--6)
 65
 66	  B\ :sub:`00low bits 5--0`\ (bits 5--0)
 67
 68       -  B\ :sub:`02low bits 3--0`\ (bits 7--4)
 69
 70	  G\ :sub:`01low bits 5--2`\ (bits 3--0)
 71
 72       -  G\ :sub:`03low bits 5--0`\ (bits 7--2)
 73
 74	  B\ :sub:`02low bits 5--4`\ (bits 1--0)
 75
 76    -  .. row 2
 77
 78       -  start + 7
 79
 80       -  G\ :sub:`10high`
 81
 82       -  R\ :sub:`11high`
 83
 84       -  G\ :sub:`12high`
 85
 86       -  R\ :sub:`13high`
 87
 88       -  R\ :sub:`11low bits 1--0`\ (bits 7--6)
 89
 90	  G\ :sub:`10low bits 5--0`\ (bits 5--0)
 91
 92       -  G\ :sub:`12low bits 3--0`\ (bits 7--4)
 93
 94	  R\ :sub:`11low bits 5--2`\ (bits 3--0)
 95
 96       -  R\ :sub:`13low bits 5--0`\ (bits 7--2)
 97
 98	  G\ :sub:`12low bits 5--4`\ (bits 1--0)
 99
100    -  .. row 3
101
102       -  start + 14
103
104       -  B\ :sub:`20high`
105
106       -  G\ :sub:`21high`
107
108       -  B\ :sub:`22high`
109
110       -  G\ :sub:`23high`
111
112       -  G\ :sub:`21low bits 1--0`\ (bits 7--6)
113
114	  B\ :sub:`20low bits 5--0`\ (bits 5--0)
115
116       -  B\ :sub:`22low bits 3--0`\ (bits 7--4)
117
118	  G\ :sub:`21low bits 5--2`\ (bits 3--0)
119
120       -  G\ :sub:`23low bits 5--0`\ (bits 7--2)
121
122	  B\ :sub:`22low bits 5--4`\ (bits 1--0)
123
124    -  .. row 4
125
126       -  start + 21
127
128       -  G\ :sub:`30high`
129
130       -  R\ :sub:`31high`
131
132       -  G\ :sub:`32high`
133
134       -  R\ :sub:`33high`
135
136       -  R\ :sub:`31low bits 1--0`\ (bits 7--6)
137	  G\ :sub:`30low bits 5--0`\ (bits 5--0)
138
139       -  G\ :sub:`32low bits 3--0`\ (bits 7--4)
140	  R\ :sub:`31low bits 5--2`\ (bits 3--0)
141
142       -  R\ :sub:`33low bits 5--0`\ (bits 7--2)
143	  G\ :sub:`32low bits 5--4`\ (bits 1--0)
144
145.. raw:: latex
146
147    \endgroup
148
~/ Read-only file preview.