18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci.. _V4L2-PIX-FMT-SRGGB8: 48c2ecf20Sopenharmony_ci.. _v4l2-pix-fmt-sbggr8: 58c2ecf20Sopenharmony_ci.. _v4l2-pix-fmt-sgbrg8: 68c2ecf20Sopenharmony_ci.. _v4l2-pix-fmt-sgrbg8: 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci*************************************************************************************************************************** 98c2ecf20Sopenharmony_ciV4L2_PIX_FMT_SRGGB8 ('RGGB'), V4L2_PIX_FMT_SGRBG8 ('GRBG'), V4L2_PIX_FMT_SGBRG8 ('GBRG'), V4L2_PIX_FMT_SBGGR8 ('BA81'), 108c2ecf20Sopenharmony_ci*************************************************************************************************************************** 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci8-bit Bayer formats 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci 168c2ecf20Sopenharmony_ciDescription 178c2ecf20Sopenharmony_ci=========== 188c2ecf20Sopenharmony_ci 198c2ecf20Sopenharmony_ciThese four pixel formats are raw sRGB / Bayer formats with 8 bits per 208c2ecf20Sopenharmony_cisample. Each sample is stored in a byte. Each n-pixel row contains n/2 218c2ecf20Sopenharmony_cigreen samples and n/2 blue or red samples, with alternating red and 228c2ecf20Sopenharmony_ciblue rows. They are conventionally described as GRGR... BGBG..., 238c2ecf20Sopenharmony_ciRGRG... GBGB..., etc. Below is an example of a small V4L2_PIX_FMT_SBGGR8 image: 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci**Byte Order.** 268c2ecf20Sopenharmony_ciEach cell is one byte. 278c2ecf20Sopenharmony_ci 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci.. flat-table:: 328c2ecf20Sopenharmony_ci :header-rows: 0 338c2ecf20Sopenharmony_ci :stub-columns: 0 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci * - start + 0: 368c2ecf20Sopenharmony_ci - B\ :sub:`00` 378c2ecf20Sopenharmony_ci - G\ :sub:`01` 388c2ecf20Sopenharmony_ci - B\ :sub:`02` 398c2ecf20Sopenharmony_ci - G\ :sub:`03` 408c2ecf20Sopenharmony_ci * - start + 4: 418c2ecf20Sopenharmony_ci - G\ :sub:`10` 428c2ecf20Sopenharmony_ci - R\ :sub:`11` 438c2ecf20Sopenharmony_ci - G\ :sub:`12` 448c2ecf20Sopenharmony_ci - R\ :sub:`13` 458c2ecf20Sopenharmony_ci * - start + 8: 468c2ecf20Sopenharmony_ci - B\ :sub:`20` 478c2ecf20Sopenharmony_ci - G\ :sub:`21` 488c2ecf20Sopenharmony_ci - B\ :sub:`22` 498c2ecf20Sopenharmony_ci - G\ :sub:`23` 508c2ecf20Sopenharmony_ci * - start + 12: 518c2ecf20Sopenharmony_ci - G\ :sub:`30` 528c2ecf20Sopenharmony_ci - R\ :sub:`31` 538c2ecf20Sopenharmony_ci - G\ :sub:`32` 548c2ecf20Sopenharmony_ci - R\ :sub:`33` 55