| 1 |
.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later |
| 2 |
.. c:namespace:: V4L |
| 3 |
|
| 4 |
.. _V4L2-PIX-FMT-SRGGB16: |
| 5 |
.. _v4l2-pix-fmt-sbggr16: |
| 6 |
.. _v4l2-pix-fmt-sgbrg16: |
| 7 |
.. _v4l2-pix-fmt-sgrbg16: |
| 8 |
|
| 9 |
|
| 10 |
*************************************************************************************************************************** |
| 11 |
V4L2_PIX_FMT_SRGGB16 ('RG16'), V4L2_PIX_FMT_SGRBG16 ('GR16'), V4L2_PIX_FMT_SGBRG16 ('GB16'), V4L2_PIX_FMT_SBGGR16 ('BYR2'), |
| 12 |
*************************************************************************************************************************** |
| 13 |
|
| 14 |
|
| 15 |
==================== |
| 16 |
16-bit Bayer formats |
| 17 |
==================== |
| 18 |
|
| 19 |
|
| 20 |
Description |
| 21 |
=========== |
| 22 |
|
| 23 |
These four pixel formats are raw sRGB / Bayer formats with 16 bits per |
| 24 |
sample. Each sample is stored in a 16-bit word. Each n-pixel row contains |
| 25 |
n/2 green samples and n/2 blue or red samples, with alternating red and blue |
| 26 |
rows. Bytes are stored in memory in little endian order. They are |
| 27 |
conventionally described as GRGR... BGBG..., RGRG... GBGB..., etc. Below is |
| 28 |
an example of a small V4L2_PIX_FMT_SBGGR16 image: |
| 29 |
|
| 30 |
**Byte Order.** |
| 31 |
Each cell is one byte. |
| 32 |
|
| 33 |
.. flat-table:: |
| 34 |
:header-rows: 0 |
| 35 |
:stub-columns: 0 |
| 36 |
|
| 37 |
* - start + 0: |
| 38 |
- B\ :sub:`00low` |
| 39 |
- B\ :sub:`00high` |
| 40 |
- G\ :sub:`01low` |
| 41 |
- G\ :sub:`01high` |
| 42 |
- B\ :sub:`02low` |
| 43 |
- B\ :sub:`02high` |
| 44 |
- G\ :sub:`03low` |
| 45 |
- G\ :sub:`03high` |
| 46 |
* - start + 8: |
| 47 |
- G\ :sub:`10low` |
| 48 |
- G\ :sub:`10high` |
| 49 |
- R\ :sub:`11low` |
| 50 |
- R\ :sub:`11high` |
| 51 |
- G\ :sub:`12low` |
| 52 |
- G\ :sub:`12high` |
| 53 |
- R\ :sub:`13low` |
| 54 |
- R\ :sub:`13high` |
| 55 |
* - start + 16: |
| 56 |
- B\ :sub:`20low` |
| 57 |
- B\ :sub:`20high` |
| 58 |
- G\ :sub:`21low` |
| 59 |
- G\ :sub:`21high` |
| 60 |
- B\ :sub:`22low` |
| 61 |
- B\ :sub:`22high` |
| 62 |
- G\ :sub:`23low` |
| 63 |
- G\ :sub:`23high` |
| 64 |
* - start + 24: |
| 65 |
- G\ :sub:`30low` |
| 66 |
- G\ :sub:`30high` |
| 67 |
- R\ :sub:`31low` |
| 68 |
- R\ :sub:`31high` |
| 69 |
- G\ :sub:`32low` |
| 70 |
- G\ :sub:`32high` |
| 71 |
- R\ :sub:`33low` |
| 72 |
- R\ :sub:`33high` |