| b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | .. Permission is granted to copy, distribute and/or modify this |
| 2 | .. document under the terms of the GNU Free Documentation License, |
| 3 | .. Version 1.1 or any later version published by the Free Software |
| 4 | .. Foundation, with no Invariant Sections, no Front-Cover Texts |
| 5 | .. and no Back-Cover Texts. A copy of the license is included at |
| 6 | .. Documentation/media/uapi/fdl-appendix.rst. |
| 7 | .. |
| 8 | .. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections |
| 9 | |
| 10 | .. _V4L2-PIX-FMT-Y12: |
| 11 | |
| 12 | ************************* |
| 13 | V4L2_PIX_FMT_Y12 ('Y12 ') |
| 14 | ************************* |
| 15 | |
| 16 | |
| 17 | Grey-scale image |
| 18 | |
| 19 | |
| 20 | Description |
| 21 | =========== |
| 22 | |
| 23 | This is a grey-scale image with a depth of 12 bits per pixel. Pixels are |
| 24 | stored in 16-bit words with unused high bits padded with 0. The least |
| 25 | significant byte is stored at lower memory addresses (little-endian). |
| 26 | |
| 27 | **Byte Order.** |
| 28 | Each cell is one byte. |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | .. flat-table:: |
| 34 | :header-rows: 0 |
| 35 | :stub-columns: 0 |
| 36 | |
| 37 | * - start + 0: |
| 38 | - Y'\ :sub:`00low` |
| 39 | - Y'\ :sub:`00high` |
| 40 | - Y'\ :sub:`01low` |
| 41 | - Y'\ :sub:`01high` |
| 42 | - Y'\ :sub:`02low` |
| 43 | - Y'\ :sub:`02high` |
| 44 | - Y'\ :sub:`03low` |
| 45 | - Y'\ :sub:`03high` |
| 46 | * - start + 8: |
| 47 | - Y'\ :sub:`10low` |
| 48 | - Y'\ :sub:`10high` |
| 49 | - Y'\ :sub:`11low` |
| 50 | - Y'\ :sub:`11high` |
| 51 | - Y'\ :sub:`12low` |
| 52 | - Y'\ :sub:`12high` |
| 53 | - Y'\ :sub:`13low` |
| 54 | - Y'\ :sub:`13high` |
| 55 | * - start + 16: |
| 56 | - Y'\ :sub:`20low` |
| 57 | - Y'\ :sub:`20high` |
| 58 | - Y'\ :sub:`21low` |
| 59 | - Y'\ :sub:`21high` |
| 60 | - Y'\ :sub:`22low` |
| 61 | - Y'\ :sub:`22high` |
| 62 | - Y'\ :sub:`23low` |
| 63 | - Y'\ :sub:`23high` |
| 64 | * - start + 24: |
| 65 | - Y'\ :sub:`30low` |
| 66 | - Y'\ :sub:`30high` |
| 67 | - Y'\ :sub:`31low` |
| 68 | - Y'\ :sub:`31high` |
| 69 | - Y'\ :sub:`32low` |
| 70 | - Y'\ :sub:`32high` |
| 71 | - Y'\ :sub:`33low` |
| 72 | - Y'\ :sub:`33high` |