18c2ecf20Sopenharmony_ci.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 28c2ecf20Sopenharmony_ci 38c2ecf20Sopenharmony_ci.. _V4L2-PIX-FMT-UYVY: 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci************************** 68c2ecf20Sopenharmony_ciV4L2_PIX_FMT_UYVY ('UYVY') 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 - Cb\ :sub:`00` 328c2ecf20Sopenharmony_ci - Y'\ :sub:`00` 338c2ecf20Sopenharmony_ci - Cr\ :sub:`00` 348c2ecf20Sopenharmony_ci - Y'\ :sub:`01` 358c2ecf20Sopenharmony_ci - Cb\ :sub:`01` 368c2ecf20Sopenharmony_ci - Y'\ :sub:`02` 378c2ecf20Sopenharmony_ci - Cr\ :sub:`01` 388c2ecf20Sopenharmony_ci - Y'\ :sub:`03` 398c2ecf20Sopenharmony_ci * - start + 8: 408c2ecf20Sopenharmony_ci - Cb\ :sub:`10` 418c2ecf20Sopenharmony_ci - Y'\ :sub:`10` 428c2ecf20Sopenharmony_ci - Cr\ :sub:`10` 438c2ecf20Sopenharmony_ci - Y'\ :sub:`11` 448c2ecf20Sopenharmony_ci - Cb\ :sub:`11` 458c2ecf20Sopenharmony_ci - Y'\ :sub:`12` 468c2ecf20Sopenharmony_ci - Cr\ :sub:`11` 478c2ecf20Sopenharmony_ci - Y'\ :sub:`13` 488c2ecf20Sopenharmony_ci * - start + 16: 498c2ecf20Sopenharmony_ci - Cb\ :sub:`20` 508c2ecf20Sopenharmony_ci - Y'\ :sub:`20` 518c2ecf20Sopenharmony_ci - Cr\ :sub:`20` 528c2ecf20Sopenharmony_ci - Y'\ :sub:`21` 538c2ecf20Sopenharmony_ci - Cb\ :sub:`21` 548c2ecf20Sopenharmony_ci - Y'\ :sub:`22` 558c2ecf20Sopenharmony_ci - Cr\ :sub:`21` 568c2ecf20Sopenharmony_ci - Y'\ :sub:`23` 578c2ecf20Sopenharmony_ci * - start + 24: 588c2ecf20Sopenharmony_ci - Cb\ :sub:`30` 598c2ecf20Sopenharmony_ci - Y'\ :sub:`30` 608c2ecf20Sopenharmony_ci - Cr\ :sub:`30` 618c2ecf20Sopenharmony_ci - Y'\ :sub:`31` 628c2ecf20Sopenharmony_ci - Cb\ :sub:`31` 638c2ecf20Sopenharmony_ci - Y'\ :sub:`32` 648c2ecf20Sopenharmony_ci - Cr\ :sub:`31` 658c2ecf20Sopenharmony_ci - Y'\ :sub:`33` 668c2ecf20Sopenharmony_ci 678c2ecf20Sopenharmony_ci 688c2ecf20Sopenharmony_ci**Color Sample Location:** 698c2ecf20Sopenharmony_ci 708c2ecf20Sopenharmony_ci 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ci.. flat-table:: 738c2ecf20Sopenharmony_ci :header-rows: 0 748c2ecf20Sopenharmony_ci :stub-columns: 0 758c2ecf20Sopenharmony_ci 768c2ecf20Sopenharmony_ci * - 778c2ecf20Sopenharmony_ci - 0 788c2ecf20Sopenharmony_ci - 798c2ecf20Sopenharmony_ci - 1 808c2ecf20Sopenharmony_ci - 2 818c2ecf20Sopenharmony_ci - 828c2ecf20Sopenharmony_ci - 3 838c2ecf20Sopenharmony_ci * - 0 848c2ecf20Sopenharmony_ci - Y 858c2ecf20Sopenharmony_ci - C 868c2ecf20Sopenharmony_ci - Y 878c2ecf20Sopenharmony_ci - Y 888c2ecf20Sopenharmony_ci - C 898c2ecf20Sopenharmony_ci - Y 908c2ecf20Sopenharmony_ci * - 1 918c2ecf20Sopenharmony_ci - Y 928c2ecf20Sopenharmony_ci - C 938c2ecf20Sopenharmony_ci - Y 948c2ecf20Sopenharmony_ci - Y 958c2ecf20Sopenharmony_ci - C 968c2ecf20Sopenharmony_ci - Y 978c2ecf20Sopenharmony_ci * - 2 988c2ecf20Sopenharmony_ci - Y 998c2ecf20Sopenharmony_ci - C 1008c2ecf20Sopenharmony_ci - Y 1018c2ecf20Sopenharmony_ci - Y 1028c2ecf20Sopenharmony_ci - C 1038c2ecf20Sopenharmony_ci - Y 1048c2ecf20Sopenharmony_ci * - 3 1058c2ecf20Sopenharmony_ci - Y 1068c2ecf20Sopenharmony_ci - C 1078c2ecf20Sopenharmony_ci - Y 1088c2ecf20Sopenharmony_ci - Y 1098c2ecf20Sopenharmony_ci - C 1108c2ecf20Sopenharmony_ci - Y 111