1*059b1c5bSMauro Carvalho Chehab.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 254f38fcaSMauro Carvalho Chehab 354f38fcaSMauro Carvalho Chehab.. _V4L2-SDR-FMT-PCU16BE: 454f38fcaSMauro Carvalho Chehab 554f38fcaSMauro Carvalho Chehab****************************** 654f38fcaSMauro Carvalho ChehabV4L2_SDR_FMT_PCU16BE ('PC16') 754f38fcaSMauro Carvalho Chehab****************************** 854f38fcaSMauro Carvalho Chehab 954f38fcaSMauro Carvalho ChehabPlanar complex unsigned 16-bit big endian IQ sample 1054f38fcaSMauro Carvalho Chehab 1154f38fcaSMauro Carvalho ChehabDescription 1254f38fcaSMauro Carvalho Chehab=========== 1354f38fcaSMauro Carvalho Chehab 1454f38fcaSMauro Carvalho ChehabThis format contains a sequence of complex number samples. Each complex 1554f38fcaSMauro Carvalho Chehabnumber consist of two parts called In-phase and Quadrature (IQ). Both I 1654f38fcaSMauro Carvalho Chehaband Q are represented as a 16 bit unsigned big endian number stored in 1754f38fcaSMauro Carvalho Chehab32 bit space. The remaining unused bits within the 32 bit space will be 1854f38fcaSMauro Carvalho Chehabpadded with 0. I value starts first and Q value starts at an offset 1954f38fcaSMauro Carvalho Chehabequalling half of the buffer size (i.e.) offset = buffersize/2. Out of 2054f38fcaSMauro Carvalho Chehabthe 16 bits, bit 15:2 (14 bit) is data and bit 1:0 (2 bit) can be any 2154f38fcaSMauro Carvalho Chehabvalue. 2254f38fcaSMauro Carvalho Chehab 2354f38fcaSMauro Carvalho Chehab**Byte Order.** 2454f38fcaSMauro Carvalho ChehabEach cell is one byte. 2554f38fcaSMauro Carvalho Chehab 2654f38fcaSMauro Carvalho Chehab.. flat-table:: 2754f38fcaSMauro Carvalho Chehab :header-rows: 1 2854f38fcaSMauro Carvalho Chehab :stub-columns: 0 2954f38fcaSMauro Carvalho Chehab 3054f38fcaSMauro Carvalho Chehab * - Offset: 3154f38fcaSMauro Carvalho Chehab - Byte B0 3254f38fcaSMauro Carvalho Chehab - Byte B1 3354f38fcaSMauro Carvalho Chehab - Byte B2 3454f38fcaSMauro Carvalho Chehab - Byte B3 3554f38fcaSMauro Carvalho Chehab * - start + 0: 3654f38fcaSMauro Carvalho Chehab - I'\ :sub:`0[13:6]` 3754f38fcaSMauro Carvalho Chehab - I'\ :sub:`0[5:0]; B1[1:0]=pad` 3854f38fcaSMauro Carvalho Chehab - pad 3954f38fcaSMauro Carvalho Chehab - pad 4054f38fcaSMauro Carvalho Chehab * - start + 4: 4154f38fcaSMauro Carvalho Chehab - I'\ :sub:`1[13:6]` 4254f38fcaSMauro Carvalho Chehab - I'\ :sub:`1[5:0]; B1[1:0]=pad` 4354f38fcaSMauro Carvalho Chehab - pad 4454f38fcaSMauro Carvalho Chehab - pad 4554f38fcaSMauro Carvalho Chehab * - ... 4654f38fcaSMauro Carvalho Chehab * - start + offset: 4754f38fcaSMauro Carvalho Chehab - Q'\ :sub:`0[13:6]` 4854f38fcaSMauro Carvalho Chehab - Q'\ :sub:`0[5:0]; B1[1:0]=pad` 4954f38fcaSMauro Carvalho Chehab - pad 5054f38fcaSMauro Carvalho Chehab - pad 5154f38fcaSMauro Carvalho Chehab * - start + offset + 4: 5254f38fcaSMauro Carvalho Chehab - Q'\ :sub:`1[13:6]` 5354f38fcaSMauro Carvalho Chehab - Q'\ :sub:`1[5:0]; B1[1:0]=pad` 5454f38fcaSMauro Carvalho Chehab - pad 5554f38fcaSMauro Carvalho Chehab - pad 56