0001 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
0002
0003 .. _V4L2-PIX-FMT-SRGGB8:
0004 .. _v4l2-pix-fmt-sbggr8:
0005 .. _v4l2-pix-fmt-sgbrg8:
0006 .. _v4l2-pix-fmt-sgrbg8:
0007
0008 ***************************************************************************************************************************
0009 V4L2_PIX_FMT_SRGGB8 ('RGGB'), V4L2_PIX_FMT_SGRBG8 ('GRBG'), V4L2_PIX_FMT_SGBRG8 ('GBRG'), V4L2_PIX_FMT_SBGGR8 ('BA81'),
0010 ***************************************************************************************************************************
0011
0012
0013 ===================
0014 8-bit Bayer formats
0015 ===================
0016
0017 Description
0018 ===========
0019
0020 These four pixel formats are raw sRGB / Bayer formats with 8 bits per
0021 sample. Each sample is stored in a byte. Each n-pixel row contains n/2
0022 green samples and n/2 blue or red samples, with alternating red and
0023 blue rows. They are conventionally described as GRGR... BGBG...,
0024 RGRG... GBGB..., etc. Below is an example of a small V4L2_PIX_FMT_SBGGR8 image:
0025
0026 **Byte Order.**
0027 Each cell is one byte.
0028
0029
0030
0031
0032 .. flat-table::
0033 :header-rows: 0
0034 :stub-columns: 0
0035
0036 * - start + 0:
0037 - B\ :sub:`00`
0038 - G\ :sub:`01`
0039 - B\ :sub:`02`
0040 - G\ :sub:`03`
0041 * - start + 4:
0042 - G\ :sub:`10`
0043 - R\ :sub:`11`
0044 - G\ :sub:`12`
0045 - R\ :sub:`13`
0046 * - start + 8:
0047 - B\ :sub:`20`
0048 - G\ :sub:`21`
0049 - B\ :sub:`22`
0050 - G\ :sub:`23`
0051 * - start + 12:
0052 - G\ :sub:`30`
0053 - R\ :sub:`31`
0054 - G\ :sub:`32`
0055 - R\ :sub:`33`