Debian Codegraph @

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

raw
1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2 .. c:namespace:: V4L
3
4 .. _V4L2-PIX-FMT-SRGGB8:
5 .. _v4l2-pix-fmt-sbggr8:
6 .. _v4l2-pix-fmt-sgbrg8:
7 .. _v4l2-pix-fmt-sgrbg8:
8
9 ***************************************************************************************************************************
10 V4L2_PIX_FMT_SRGGB8 ('RGGB'), V4L2_PIX_FMT_SGRBG8 ('GRBG'), V4L2_PIX_FMT_SGBRG8 ('GBRG'), V4L2_PIX_FMT_SBGGR8 ('BA81'),
11 ***************************************************************************************************************************
12
13
14 ===================
15 8-bit Bayer formats
16 ===================
17
18 Description
19 ===========
20
21 These four pixel formats are raw sRGB / Bayer formats with 8 bits per
22 sample. Each sample is stored in a byte. Each n-pixel row contains n/2
23 green samples and n/2 blue or red samples, with alternating red and
24 blue rows. They are conventionally described as GRGR... BGBG...,
25 RGRG... GBGB..., etc. Below is an example of a small V4L2_PIX_FMT_SBGGR8 image:
26
27 **Byte Order.**
28 Each cell is one byte.
29
30
31
32
33 .. flat-table::
34 :header-rows: 0
35 :stub-columns: 0
36
37 * - start + 0:
38 - B\ :sub:`00`
39 - G\ :sub:`01`
40 - B\ :sub:`02`
41 - G\ :sub:`03`
42 * - start + 4:
43 - G\ :sub:`10`
44 - R\ :sub:`11`
45 - G\ :sub:`12`
46 - R\ :sub:`13`
47 * - start + 8:
48 - B\ :sub:`20`
49 - G\ :sub:`21`
50 - B\ :sub:`22`
51 - G\ :sub:`23`
52 * - start + 12:
53 - G\ :sub:`30`
54 - R\ :sub:`31`
55 - G\ :sub:`32`
56 - R\ :sub:`33`