Debian Codegraph @

Documentation/userspace-api/media/v4l/pixfmt-srggb10p.rst

raw
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: V4L
3
4 .. _V4L2-PIX-FMT-SRGGB10P:
5 .. _v4l2-pix-fmt-sbggr10p:
6 .. _v4l2-pix-fmt-sgbrg10p:
7 .. _v4l2-pix-fmt-sgrbg10p:
8
9 *******************************************************************************************************************************
10 V4L2_PIX_FMT_SRGGB10P ('pRAA'), V4L2_PIX_FMT_SGRBG10P ('pgAA'), V4L2_PIX_FMT_SGBRG10P ('pGAA'), V4L2_PIX_FMT_SBGGR10P ('pBAA'),
11 *******************************************************************************************************************************
12
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 sample. Every four consecutive samples are packed into 5
25 bytes. Each of the first 4 bytes contain the 8 high order bits
26 of the pixels, and the 5th byte contains the 2 least significants
27 bits 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 a small V4L2_PIX_FMT_SBGGR10P image:
33
34 **Byte Order.**
35 Each cell is one byte.
36
37 .. tabularcolumns:: |p{2.4cm}|p{1.4cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{9.3cm}|
38
39 .. flat-table::
40 :header-rows: 0
41 :stub-columns: 0
42 :widths: 12 8 8 8 8 68
43
44 * - start + 0:
45 - B\ :sub:`00high`
46 - G\ :sub:`01high`
47 - B\ :sub:`02high`
48 - G\ :sub:`03high`
49 - G\ :sub:`03low`\ (bits 7--6) B\ :sub:`02low`\ (bits 5--4)
50
51 G\ :sub:`01low`\ (bits 3--2) B\ :sub:`00low`\ (bits 1--0)
52 * - start + 5:
53 - G\ :sub:`10high`
54 - R\ :sub:`11high`
55 - G\ :sub:`12high`
56 - R\ :sub:`13high`
57 - R\ :sub:`13low`\ (bits 7--6) G\ :sub:`12low`\ (bits 5--4)
58
59 R\ :sub:`11low`\ (bits 3--2) G\ :sub:`10low`\ (bits 1--0)
60 * - start + 10:
61 - B\ :sub:`20high`
62 - G\ :sub:`21high`
63 - B\ :sub:`22high`
64 - G\ :sub:`23high`
65 - G\ :sub:`23low`\ (bits 7--6) B\ :sub:`22low`\ (bits 5--4)
66
67 G\ :sub:`21low`\ (bits 3--2) B\ :sub:`20low`\ (bits 1--0)
68 * - start + 15:
69 - G\ :sub:`30high`
70 - R\ :sub:`31high`
71 - G\ :sub:`32high`
72 - R\ :sub:`33high`
73 - R\ :sub:`33low`\ (bits 7--6) G\ :sub:`32low`\ (bits 5--4)
74
75 R\ :sub:`31low`\ (bits 3--2) G\ :sub:`30low`\ (bits 1--0)