Back to home page

OSCL-LXR

 
 

    


0001 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
0002 
0003 .. _V4L2-PIX-FMT-SRGGB10P:
0004 .. _v4l2-pix-fmt-sbggr10p:
0005 .. _v4l2-pix-fmt-sgbrg10p:
0006 .. _v4l2-pix-fmt-sgrbg10p:
0007 
0008 *******************************************************************************************************************************
0009 V4L2_PIX_FMT_SRGGB10P ('pRAA'), V4L2_PIX_FMT_SGRBG10P ('pgAA'), V4L2_PIX_FMT_SGBRG10P ('pGAA'), V4L2_PIX_FMT_SBGGR10P ('pBAA'),
0010 *******************************************************************************************************************************
0011 
0012 
0013 V4L2_PIX_FMT_SGRBG10P
0014 V4L2_PIX_FMT_SGBRG10P
0015 V4L2_PIX_FMT_SBGGR10P
0016 10-bit packed Bayer formats
0017 
0018 
0019 Description
0020 ===========
0021 
0022 These four pixel formats are packed raw sRGB / Bayer formats with 10
0023 bits per sample. Every four consecutive samples are packed into 5
0024 bytes. Each of the first 4 bytes contain the 8 high order bits
0025 of the pixels, and the 5th byte contains the 2 least significants
0026 bits of each pixel, in the same order.
0027 
0028 Each n-pixel row contains n/2 green samples and n/2 blue or red samples,
0029 with alternating green-red and green-blue rows. They are conventionally
0030 described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example
0031 of a small V4L2_PIX_FMT_SBGGR10P image:
0032 
0033 **Byte Order.**
0034 Each cell is one byte.
0035 
0036 .. tabularcolumns:: |p{2.4cm}|p{1.4cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{9.3cm}|
0037 
0038 .. flat-table::
0039     :header-rows:  0
0040     :stub-columns: 0
0041     :widths: 12 8 8 8 8 68
0042 
0043     * - start + 0:
0044       - B\ :sub:`00high`
0045       - G\ :sub:`01high`
0046       - B\ :sub:`02high`
0047       - G\ :sub:`03high`
0048       - G\ :sub:`03low`\ (bits 7--6) B\ :sub:`02low`\ (bits 5--4)
0049 
0050         G\ :sub:`01low`\ (bits 3--2) B\ :sub:`00low`\ (bits 1--0)
0051     * - start + 5:
0052       - G\ :sub:`10high`
0053       - R\ :sub:`11high`
0054       - G\ :sub:`12high`
0055       - R\ :sub:`13high`
0056       - R\ :sub:`13low`\ (bits 7--6) G\ :sub:`12low`\ (bits 5--4)
0057 
0058         R\ :sub:`11low`\ (bits 3--2) G\ :sub:`10low`\ (bits 1--0)
0059     * - start + 10:
0060       - B\ :sub:`20high`
0061       - G\ :sub:`21high`
0062       - B\ :sub:`22high`
0063       - G\ :sub:`23high`
0064       - G\ :sub:`23low`\ (bits 7--6) B\ :sub:`22low`\ (bits 5--4)
0065 
0066         G\ :sub:`21low`\ (bits 3--2) B\ :sub:`20low`\ (bits 1--0)
0067     * - start + 15:
0068       - G\ :sub:`30high`
0069       - R\ :sub:`31high`
0070       - G\ :sub:`32high`
0071       - R\ :sub:`33high`
0072       - R\ :sub:`33low`\ (bits 7--6) G\ :sub:`32low`\ (bits 5--4)
0073 
0074         R\ :sub:`31low`\ (bits 3--2) G\ :sub:`30low`\ (bits 1--0)