0001 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
0002
0003 .. _V4L2-PIX-FMT-SRGGB14:
0004 .. _v4l2-pix-fmt-sbggr14:
0005 .. _v4l2-pix-fmt-sgbrg14:
0006 .. _v4l2-pix-fmt-sgrbg14:
0007
0008
0009 ***************************************************************************************************************************
0010 V4L2_PIX_FMT_SRGGB14 ('RG14'), V4L2_PIX_FMT_SGRBG14 ('GR14'), V4L2_PIX_FMT_SGBRG14 ('GB14'), V4L2_PIX_FMT_SBGGR14 ('BG14'),
0011 ***************************************************************************************************************************
0012
0013
0014 ========================================
0015 14-bit Bayer formats expanded to 16 bits
0016 ========================================
0017
0018
0019 Description
0020 ===========
0021
0022 These four pixel formats are raw sRGB / Bayer formats with 14 bits per
0023 colour. Each sample is stored in a 16-bit word, with two unused high
0024 bits filled with zeros. Each n-pixel row contains n/2 green samples
0025 and n/2 blue or red samples, with alternating red and blue rows. Bytes
0026 are stored in memory in little endian order. They are conventionally
0027 described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an
0028 example of a small V4L2_PIX_FMT_SBGGR14 image:
0029
0030 **Byte Order.**
0031 Each cell is one byte, the two most significant bits in the high bytes are
0032 zero.
0033
0034
0035
0036 .. flat-table::
0037 :header-rows: 0
0038 :stub-columns: 0
0039 :widths: 2 1 1 1 1 1 1 1 1
0040
0041
0042 * - start + 0:
0043 - B\ :sub:`00low`
0044 - B\ :sub:`00high`
0045 - G\ :sub:`01low`
0046 - G\ :sub:`01high`
0047 - B\ :sub:`02low`
0048 - B\ :sub:`02high`
0049 - G\ :sub:`03low`
0050 - G\ :sub:`03high`
0051 * - start + 8:
0052 - G\ :sub:`10low`
0053 - G\ :sub:`10high`
0054 - R\ :sub:`11low`
0055 - R\ :sub:`11high`
0056 - G\ :sub:`12low`
0057 - G\ :sub:`12high`
0058 - R\ :sub:`13low`
0059 - R\ :sub:`13high`
0060 * - start + 16:
0061 - B\ :sub:`20low`
0062 - B\ :sub:`20high`
0063 - G\ :sub:`21low`
0064 - G\ :sub:`21high`
0065 - B\ :sub:`22low`
0066 - B\ :sub:`22high`
0067 - G\ :sub:`23low`
0068 - G\ :sub:`23high`
0069 * - start + 24:
0070 - G\ :sub:`30low`
0071 - G\ :sub:`30high`
0072 - R\ :sub:`31low`
0073 - R\ :sub:`31high`
0074 - G\ :sub:`32low`
0075 - G\ :sub:`32high`
0076 - R\ :sub:`33low`
0077 - R\ :sub:`33high`