1.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 2 3.. _V4L2-PIX-FMT-YUYV: 4 5************************** 6V4L2_PIX_FMT_YUYV ('YUYV') 7************************** 8 9 10Packed format with ½ horizontal chroma resolution, also known as YUV 114:2:2 12 13 14Description 15=========== 16 17In this format each four bytes is two pixels. Each four bytes is two 18Y's, a Cb and a Cr. Each Y goes to one of the pixels, and the Cb and Cr 19belong to both pixels. As you can see, the Cr and Cb components have 20half the horizontal resolution of the Y component. ``V4L2_PIX_FMT_YUYV`` 21is known in the Windows environment as YUY2. 22 23**Byte Order.** 24Each cell is one byte. 25 26 27 28 29.. flat-table:: 30 :header-rows: 0 31 :stub-columns: 0 32 33 * - start + 0: 34 - Y'\ :sub:`00` 35 - Cb\ :sub:`00` 36 - Y'\ :sub:`01` 37 - Cr\ :sub:`00` 38 - Y'\ :sub:`02` 39 - Cb\ :sub:`01` 40 - Y'\ :sub:`03` 41 - Cr\ :sub:`01` 42 * - start + 8: 43 - Y'\ :sub:`10` 44 - Cb\ :sub:`10` 45 - Y'\ :sub:`11` 46 - Cr\ :sub:`10` 47 - Y'\ :sub:`12` 48 - Cb\ :sub:`11` 49 - Y'\ :sub:`13` 50 - Cr\ :sub:`11` 51 * - start + 16: 52 - Y'\ :sub:`20` 53 - Cb\ :sub:`20` 54 - Y'\ :sub:`21` 55 - Cr\ :sub:`20` 56 - Y'\ :sub:`22` 57 - Cb\ :sub:`21` 58 - Y'\ :sub:`23` 59 - Cr\ :sub:`21` 60 * - start + 24: 61 - Y'\ :sub:`30` 62 - Cb\ :sub:`30` 63 - Y'\ :sub:`31` 64 - Cr\ :sub:`30` 65 - Y'\ :sub:`32` 66 - Cb\ :sub:`31` 67 - Y'\ :sub:`33` 68 - Cr\ :sub:`31` 69 70 71**Color Sample Location:** 72 73 74 75.. flat-table:: 76 :header-rows: 0 77 :stub-columns: 0 78 79 * - 80 - 0 81 - 82 - 1 83 - 84 - 2 85 - 86 - 3 87 * - 0 88 - Y 89 - C 90 - Y 91 - 92 - Y 93 - C 94 - Y 95 * - 1 96 - Y 97 - C 98 - Y 99 - 100 - Y 101 - C 102 - Y 103 * - 2 104 - Y 105 - C 106 - Y 107 - 108 - Y 109 - C 110 - Y 111 * - 3 112 - Y 113 - C 114 - Y 115 - 116 - Y 117 - C 118 - Y 119