18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci.. _V4L2-PIX-FMT-SRGGB10P: 48c2ecf20Sopenharmony_ci.. _v4l2-pix-fmt-sbggr10p: 58c2ecf20Sopenharmony_ci.. _v4l2-pix-fmt-sgbrg10p: 68c2ecf20Sopenharmony_ci.. _v4l2-pix-fmt-sgrbg10p: 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci******************************************************************************************************************************* 98c2ecf20Sopenharmony_ciV4L2_PIX_FMT_SRGGB10P ('pRAA'), V4L2_PIX_FMT_SGRBG10P ('pgAA'), V4L2_PIX_FMT_SGBRG10P ('pGAA'), V4L2_PIX_FMT_SBGGR10P ('pBAA'), 108c2ecf20Sopenharmony_ci******************************************************************************************************************************* 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ciV4L2_PIX_FMT_SGRBG10P 148c2ecf20Sopenharmony_ciV4L2_PIX_FMT_SGBRG10P 158c2ecf20Sopenharmony_ciV4L2_PIX_FMT_SBGGR10P 168c2ecf20Sopenharmony_ci10-bit packed Bayer formats 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciDescription 208c2ecf20Sopenharmony_ci=========== 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ciThese four pixel formats are packed raw sRGB / Bayer formats with 10 238c2ecf20Sopenharmony_cibits per sample. Every four consecutive samples are packed into 5 248c2ecf20Sopenharmony_cibytes. Each of the first 4 bytes contain the 8 high order bits 258c2ecf20Sopenharmony_ciof the pixels, and the 5th byte contains the 2 least significants 268c2ecf20Sopenharmony_cibits of each pixel, in the same order. 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ciEach n-pixel row contains n/2 green samples and n/2 blue or red samples, 298c2ecf20Sopenharmony_ciwith alternating green-red and green-blue rows. They are conventionally 308c2ecf20Sopenharmony_cidescribed as GRGR... BGBG..., RGRG... GBGB..., etc. Below is an example 318c2ecf20Sopenharmony_ciof a small V4L2_PIX_FMT_SBGGR10P image: 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci**Byte Order.** 348c2ecf20Sopenharmony_ciEach cell is one byte. 358c2ecf20Sopenharmony_ci 368c2ecf20Sopenharmony_ci.. tabularcolumns:: |p{2.4cm}|p{1.4cm}|p{1.2cm}|p{1.2cm}|p{1.2cm}|p{6.4cm}| 378c2ecf20Sopenharmony_ci 388c2ecf20Sopenharmony_ci.. flat-table:: 398c2ecf20Sopenharmony_ci :header-rows: 0 408c2ecf20Sopenharmony_ci :stub-columns: 0 418c2ecf20Sopenharmony_ci :widths: 12 8 8 8 8 68 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci * - start + 0: 448c2ecf20Sopenharmony_ci - B\ :sub:`00high` 458c2ecf20Sopenharmony_ci - G\ :sub:`01high` 468c2ecf20Sopenharmony_ci - B\ :sub:`02high` 478c2ecf20Sopenharmony_ci - G\ :sub:`03high` 488c2ecf20Sopenharmony_ci - G\ :sub:`03low`\ (bits 7--6) B\ :sub:`02low`\ (bits 5--4) 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci G\ :sub:`01low`\ (bits 3--2) B\ :sub:`00low`\ (bits 1--0) 518c2ecf20Sopenharmony_ci * - start + 5: 528c2ecf20Sopenharmony_ci - G\ :sub:`10high` 538c2ecf20Sopenharmony_ci - R\ :sub:`11high` 548c2ecf20Sopenharmony_ci - G\ :sub:`12high` 558c2ecf20Sopenharmony_ci - R\ :sub:`13high` 568c2ecf20Sopenharmony_ci - R\ :sub:`13low`\ (bits 7--6) G\ :sub:`12low`\ (bits 5--4) 578c2ecf20Sopenharmony_ci 588c2ecf20Sopenharmony_ci R\ :sub:`11low`\ (bits 3--2) G\ :sub:`10low`\ (bits 1--0) 598c2ecf20Sopenharmony_ci * - start + 10: 608c2ecf20Sopenharmony_ci - B\ :sub:`20high` 618c2ecf20Sopenharmony_ci - G\ :sub:`21high` 628c2ecf20Sopenharmony_ci - B\ :sub:`22high` 638c2ecf20Sopenharmony_ci - G\ :sub:`23high` 648c2ecf20Sopenharmony_ci - G\ :sub:`23low`\ (bits 7--6) B\ :sub:`22low`\ (bits 5--4) 658c2ecf20Sopenharmony_ci 668c2ecf20Sopenharmony_ci G\ :sub:`21low`\ (bits 3--2) B\ :sub:`20low`\ (bits 1--0) 678c2ecf20Sopenharmony_ci * - start + 15: 688c2ecf20Sopenharmony_ci - G\ :sub:`30high` 698c2ecf20Sopenharmony_ci - R\ :sub:`31high` 708c2ecf20Sopenharmony_ci - G\ :sub:`32high` 718c2ecf20Sopenharmony_ci - R\ :sub:`33high` 728c2ecf20Sopenharmony_ci - R\ :sub:`33low`\ (bits 7--6) G\ :sub:`32low`\ (bits 5--4) 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ci R\ :sub:`31low`\ (bits 3--2) G\ :sub:`30low`\ (bits 1--0) 75