~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/userspace-api/media/v4l/pixfmt-srggb12p.rst

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
  2 
  3 .. _V4L2-PIX-FMT-SRGGB12P:
  4 .. _v4l2-pix-fmt-sbggr12p:
  5 .. _v4l2-pix-fmt-sgbrg12p:
  6 .. _v4l2-pix-fmt-sgrbg12p:
  7 
  8 *******************************************************************************************************************************
  9 V4L2_PIX_FMT_SRGGB12P ('pRCC'), V4L2_PIX_FMT_SGRBG12P ('pgCC'), V4L2_PIX_FMT_SGBRG12P ('pGCC'), V4L2_PIX_FMT_SBGGR12P ('pBCC'),
 10 *******************************************************************************************************************************
 11 
 12 
 13 12-bit packed Bayer formats
 14 ---------------------------
 15 
 16 
 17 Description
 18 ===========
 19 
 20 These four pixel formats are packed raw sRGB / Bayer formats with 12
 21 bits per colour. Every two consecutive samples are packed into three
 22 bytes. Each of the first two bytes contain the 8 high order bits of
 23 the pixels, and the third byte contains the four least significants
 24 bits of each pixel, in the same order.
 25 
 26 Each n-pixel row contains n/2 green samples and n/2 blue or red
 27 samples, with alternating green-red and green-blue rows. They are
 28 conventionally described as GRGR... BGBG..., RGRG... GBGB..., etc.
 29 Below is an example of a small V4L2_PIX_FMT_SBGGR12P image:
 30 
 31 **Byte Order.**
 32 Each cell is one byte.
 33 
 34 .. tabularcolumns:: |p{2.2cm}|p{1.2cm}|p{1.2cm}|p{3.1cm}|p{1.2cm}|p{1.2cm}|p{6.4cm}|
 35 
 36 
 37 .. flat-table::
 38     :header-rows:  0
 39     :stub-columns: 0
 40     :widths:       2 1 1 1 1 1 1
 41 
 42 
 43     -  -  start + 0:
 44        -  B\ :sub:`00high`
 45        -  G\ :sub:`01high`
 46        -  G\ :sub:`01low`\ (bits 7--4)
 47 
 48           B\ :sub:`00low`\ (bits 3--0)
 49        -  B\ :sub:`02high`
 50        -  G\ :sub:`03high`
 51        -  G\ :sub:`03low`\ (bits 7--4)
 52 
 53           B\ :sub:`02low`\ (bits 3--0)
 54 
 55     -  -  start + 6:
 56        -  G\ :sub:`10high`
 57        -  R\ :sub:`11high`
 58        -  R\ :sub:`11low`\ (bits 7--4)
 59 
 60           G\ :sub:`10low`\ (bits 3--0)
 61        -  G\ :sub:`12high`
 62        -  R\ :sub:`13high`
 63        -  R\ :sub:`13low`\ (bits 7--4)
 64 
 65           G\ :sub:`12low`\ (bits 3--0)
 66     -  -  start + 12:
 67        -  B\ :sub:`20high`
 68        -  G\ :sub:`21high`
 69        -  G\ :sub:`21low`\ (bits 7--4)
 70 
 71           B\ :sub:`20low`\ (bits 3--0)
 72        -  B\ :sub:`22high`
 73        -  G\ :sub:`23high`
 74        -  G\ :sub:`23low`\ (bits 7--4)
 75 
 76           B\ :sub:`22low`\ (bits 3--0)
 77     -  -  start + 18:
 78        -  G\ :sub:`30high`
 79        -  R\ :sub:`31high`
 80        -  R\ :sub:`31low`\ (bits 7--4)
 81 
 82           G\ :sub:`30low`\ (bits 3--0)
 83        -  G\ :sub:`32high`
 84        -  R\ :sub:`33high`
 85        -  R\ :sub:`33low`\ (bits 7--4)
 86 
 87           G\ :sub:`32low`\ (bits 3--0)

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php