18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci.. _V4L2-PIX-FMT-YVYU: 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci************************** 68c2ecf20Sopenharmony_ciV4L2_PIX_FMT_YVYU ('YVYU') 78c2ecf20Sopenharmony_ci************************** 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciVariation of ``V4L2_PIX_FMT_YUYV`` with different order of samples in 118c2ecf20Sopenharmony_cimemory 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ciDescription 158c2ecf20Sopenharmony_ci=========== 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciIn this format each four bytes is two pixels. Each four bytes is two 188c2ecf20Sopenharmony_ciY's, a Cb and a Cr. Each Y goes to one of the pixels, and the Cb and Cr 198c2ecf20Sopenharmony_cibelong to both pixels. As you can see, the Cr and Cb components have 208c2ecf20Sopenharmony_cihalf the horizontal resolution of the Y component. 218c2ecf20Sopenharmony_ci 228c2ecf20Sopenharmony_ci**Byte Order.** 238c2ecf20Sopenharmony_ciEach cell is one byte. 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci.. flat-table:: 278c2ecf20Sopenharmony_ci :header-rows: 0 288c2ecf20Sopenharmony_ci :stub-columns: 0 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci * - start + 0: 318c2ecf20Sopenharmony_ci - Y'\ :sub:`00` 328c2ecf20Sopenharmony_ci - Cr\ :sub:`00` 338c2ecf20Sopenharmony_ci - Y'\ :sub:`01` 348c2ecf20Sopenharmony_ci - Cb\ :sub:`00` 358c2ecf20Sopenharmony_ci - Y'\ :sub:`02` 368c2ecf20Sopenharmony_ci - Cr\ :sub:`01` 378c2ecf20Sopenharmony_ci - Y'\ :sub:`03` 388c2ecf20Sopenharmony_ci - Cb\ :sub:`01` 398c2ecf20Sopenharmony_ci * - start + 8: 408c2ecf20Sopenharmony_ci - Y'\ :sub:`10` 418c2ecf20Sopenharmony_ci - Cr\ :sub:`10` 428c2ecf20Sopenharmony_ci - Y'\ :sub:`11` 438c2ecf20Sopenharmony_ci - Cb\ :sub:`10` 448c2ecf20Sopenharmony_ci - Y'\ :sub:`12` 458c2ecf20Sopenharmony_ci - Cr\ :sub:`11` 468c2ecf20Sopenharmony_ci - Y'\ :sub:`13` 478c2ecf20Sopenharmony_ci - Cb\ :sub:`11` 488c2ecf20Sopenharmony_ci * - start + 16: 498c2ecf20Sopenharmony_ci - Y'\ :sub:`20` 508c2ecf20Sopenharmony_ci - Cr\ :sub:`20` 518c2ecf20Sopenharmony_ci - Y'\ :sub:`21` 528c2ecf20Sopenharmony_ci - Cb\ :sub:`20` 538c2ecf20Sopenharmony_ci - Y'\ :sub:`22` 548c2ecf20Sopenharmony_ci - Cr\ :sub:`21` 558c2ecf20Sopenharmony_ci - Y'\ :sub:`23` 568c2ecf20Sopenharmony_ci - Cb\ :sub:`21` 578c2ecf20Sopenharmony_ci * - start + 24: 588c2ecf20Sopenharmony_ci - Y'\ :sub:`30` 598c2ecf20Sopenharmony_ci - Cr\ :sub:`30` 608c2ecf20Sopenharmony_ci - Y'\ :sub:`31` 618c2ecf20Sopenharmony_ci - Cb\ :sub:`30` 628c2ecf20Sopenharmony_ci - Y'\ :sub:`32` 638c2ecf20Sopenharmony_ci - Cr\ :sub:`31` 648c2ecf20Sopenharmony_ci - Y'\ :sub:`33` 658c2ecf20Sopenharmony_ci - Cb\ :sub:`31` 668c2ecf20Sopenharmony_ci 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ci**Color Sample Location:** 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ci.. flat-table:: 718c2ecf20Sopenharmony_ci :header-rows: 0 728c2ecf20Sopenharmony_ci :stub-columns: 0 738c2ecf20Sopenharmony_ci 748c2ecf20Sopenharmony_ci * - 758c2ecf20Sopenharmony_ci - 0 768c2ecf20Sopenharmony_ci - 778c2ecf20Sopenharmony_ci - 1 788c2ecf20Sopenharmony_ci - 2 798c2ecf20Sopenharmony_ci - 808c2ecf20Sopenharmony_ci - 3 818c2ecf20Sopenharmony_ci * - 0 828c2ecf20Sopenharmony_ci - Y 838c2ecf20Sopenharmony_ci - C 848c2ecf20Sopenharmony_ci - Y 858c2ecf20Sopenharmony_ci - Y 868c2ecf20Sopenharmony_ci - C 878c2ecf20Sopenharmony_ci - Y 888c2ecf20Sopenharmony_ci * - 1 898c2ecf20Sopenharmony_ci - Y 908c2ecf20Sopenharmony_ci - C 918c2ecf20Sopenharmony_ci - Y 928c2ecf20Sopenharmony_ci - Y 938c2ecf20Sopenharmony_ci - C 948c2ecf20Sopenharmony_ci - Y 958c2ecf20Sopenharmony_ci * - 2 968c2ecf20Sopenharmony_ci - Y 978c2ecf20Sopenharmony_ci - C 988c2ecf20Sopenharmony_ci - Y 998c2ecf20Sopenharmony_ci - Y 1008c2ecf20Sopenharmony_ci - C 1018c2ecf20Sopenharmony_ci - Y 1028c2ecf20Sopenharmony_ci * - 3 1038c2ecf20Sopenharmony_ci - Y 1048c2ecf20Sopenharmony_ci - C 1058c2ecf20Sopenharmony_ci - Y 1068c2ecf20Sopenharmony_ci - Y 1078c2ecf20Sopenharmony_ci - C 1088c2ecf20Sopenharmony_ci - Y 109