1*059b1c5bSMauro Carvalho Chehab.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 254f38fcaSMauro Carvalho Chehab 354f38fcaSMauro Carvalho Chehab.. _V4L2-PIX-FMT-SRGGB8: 454f38fcaSMauro Carvalho Chehab.. _v4l2-pix-fmt-sbggr8: 554f38fcaSMauro Carvalho Chehab.. _v4l2-pix-fmt-sgbrg8: 654f38fcaSMauro Carvalho Chehab.. _v4l2-pix-fmt-sgrbg8: 754f38fcaSMauro Carvalho Chehab 854f38fcaSMauro Carvalho Chehab*************************************************************************************************************************** 954f38fcaSMauro Carvalho ChehabV4L2_PIX_FMT_SRGGB8 ('RGGB'), V4L2_PIX_FMT_SGRBG8 ('GRBG'), V4L2_PIX_FMT_SGBRG8 ('GBRG'), V4L2_PIX_FMT_SBGGR8 ('BA81'), 1054f38fcaSMauro Carvalho Chehab*************************************************************************************************************************** 1154f38fcaSMauro Carvalho Chehab 1254f38fcaSMauro Carvalho Chehab 1354f38fcaSMauro Carvalho Chehab8-bit Bayer formats 1454f38fcaSMauro Carvalho Chehab 1554f38fcaSMauro Carvalho Chehab 1654f38fcaSMauro Carvalho ChehabDescription 1754f38fcaSMauro Carvalho Chehab=========== 1854f38fcaSMauro Carvalho Chehab 1954f38fcaSMauro Carvalho ChehabThese four pixel formats are raw sRGB / Bayer formats with 8 bits per 2054f38fcaSMauro Carvalho Chehabsample. Each sample is stored in a byte. Each n-pixel row contains n/2 2154f38fcaSMauro Carvalho Chehabgreen samples and n/2 blue or red samples, with alternating red and 2254f38fcaSMauro Carvalho Chehabblue rows. They are conventionally described as GRGR... BGBG..., 2354f38fcaSMauro Carvalho ChehabRGRG... GBGB..., etc. Below is an example of a small V4L2_PIX_FMT_SBGGR8 image: 2454f38fcaSMauro Carvalho Chehab 2554f38fcaSMauro Carvalho Chehab**Byte Order.** 2654f38fcaSMauro Carvalho ChehabEach cell is one byte. 2754f38fcaSMauro Carvalho Chehab 2854f38fcaSMauro Carvalho Chehab 2954f38fcaSMauro Carvalho Chehab 3054f38fcaSMauro Carvalho Chehab 3154f38fcaSMauro Carvalho Chehab.. flat-table:: 3254f38fcaSMauro Carvalho Chehab :header-rows: 0 3354f38fcaSMauro Carvalho Chehab :stub-columns: 0 3454f38fcaSMauro Carvalho Chehab 3554f38fcaSMauro Carvalho Chehab * - start + 0: 3654f38fcaSMauro Carvalho Chehab - B\ :sub:`00` 3754f38fcaSMauro Carvalho Chehab - G\ :sub:`01` 3854f38fcaSMauro Carvalho Chehab - B\ :sub:`02` 3954f38fcaSMauro Carvalho Chehab - G\ :sub:`03` 4054f38fcaSMauro Carvalho Chehab * - start + 4: 4154f38fcaSMauro Carvalho Chehab - G\ :sub:`10` 4254f38fcaSMauro Carvalho Chehab - R\ :sub:`11` 4354f38fcaSMauro Carvalho Chehab - G\ :sub:`12` 4454f38fcaSMauro Carvalho Chehab - R\ :sub:`13` 4554f38fcaSMauro Carvalho Chehab * - start + 8: 4654f38fcaSMauro Carvalho Chehab - B\ :sub:`20` 4754f38fcaSMauro Carvalho Chehab - G\ :sub:`21` 4854f38fcaSMauro Carvalho Chehab - B\ :sub:`22` 4954f38fcaSMauro Carvalho Chehab - G\ :sub:`23` 5054f38fcaSMauro Carvalho Chehab * - start + 12: 5154f38fcaSMauro Carvalho Chehab - G\ :sub:`30` 5254f38fcaSMauro Carvalho Chehab - R\ :sub:`31` 5354f38fcaSMauro Carvalho Chehab - G\ :sub:`32` 5454f38fcaSMauro Carvalho Chehab - R\ :sub:`33` 55