Back to home page

OSCL-LXR

 
 

    


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