1059b1c5bSMauro 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 13*e89dbb12SMauro Carvalho Chehab=================== 1454f38fcaSMauro Carvalho Chehab8-bit Bayer formats 15*e89dbb12SMauro Carvalho Chehab=================== 1654f38fcaSMauro Carvalho Chehab 1754f38fcaSMauro Carvalho ChehabDescription 1854f38fcaSMauro Carvalho Chehab=========== 1954f38fcaSMauro Carvalho Chehab 2054f38fcaSMauro Carvalho ChehabThese four pixel formats are raw sRGB / Bayer formats with 8 bits per 2154f38fcaSMauro Carvalho Chehabsample. Each sample is stored in a byte. Each n-pixel row contains n/2 2254f38fcaSMauro Carvalho Chehabgreen samples and n/2 blue or red samples, with alternating red and 2354f38fcaSMauro Carvalho Chehabblue rows. They are conventionally described as GRGR... BGBG..., 2454f38fcaSMauro Carvalho ChehabRGRG... GBGB..., etc. Below is an example of a small V4L2_PIX_FMT_SBGGR8 image: 2554f38fcaSMauro Carvalho Chehab 2654f38fcaSMauro Carvalho Chehab**Byte Order.** 2754f38fcaSMauro Carvalho ChehabEach cell is one byte. 2854f38fcaSMauro Carvalho Chehab 2954f38fcaSMauro Carvalho Chehab 3054f38fcaSMauro Carvalho Chehab 3154f38fcaSMauro Carvalho Chehab 3254f38fcaSMauro Carvalho Chehab.. flat-table:: 3354f38fcaSMauro Carvalho Chehab :header-rows: 0 3454f38fcaSMauro Carvalho Chehab :stub-columns: 0 3554f38fcaSMauro Carvalho Chehab 3654f38fcaSMauro Carvalho Chehab * - start + 0: 3754f38fcaSMauro Carvalho Chehab - B\ :sub:`00` 3854f38fcaSMauro Carvalho Chehab - G\ :sub:`01` 3954f38fcaSMauro Carvalho Chehab - B\ :sub:`02` 4054f38fcaSMauro Carvalho Chehab - G\ :sub:`03` 4154f38fcaSMauro Carvalho Chehab * - start + 4: 4254f38fcaSMauro Carvalho Chehab - G\ :sub:`10` 4354f38fcaSMauro Carvalho Chehab - R\ :sub:`11` 4454f38fcaSMauro Carvalho Chehab - G\ :sub:`12` 4554f38fcaSMauro Carvalho Chehab - R\ :sub:`13` 4654f38fcaSMauro Carvalho Chehab * - start + 8: 4754f38fcaSMauro Carvalho Chehab - B\ :sub:`20` 4854f38fcaSMauro Carvalho Chehab - G\ :sub:`21` 4954f38fcaSMauro Carvalho Chehab - B\ :sub:`22` 5054f38fcaSMauro Carvalho Chehab - G\ :sub:`23` 5154f38fcaSMauro Carvalho Chehab * - start + 12: 5254f38fcaSMauro Carvalho Chehab - G\ :sub:`30` 5354f38fcaSMauro Carvalho Chehab - R\ :sub:`31` 5454f38fcaSMauro Carvalho Chehab - G\ :sub:`32` 5554f38fcaSMauro Carvalho Chehab - R\ :sub:`33` 56