0001 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
0002
0003 .. _V4L2-SDR-FMT-PCU20BE:
0004
0005 ******************************
0006 V4L2_SDR_FMT_PCU20BE ('PC20')
0007 ******************************
0008
0009 Planar complex unsigned 20-bit big endian IQ sample
0010
0011 Description
0012 ===========
0013
0014 This format contains a sequence of complex number samples. Each complex
0015 number consist of two parts called In-phase and Quadrature (IQ). Both I
0016 and Q are represented as a 20 bit unsigned big endian number stored in
0017 32 bit space. The remaining unused bits within the 32 bit space will be
0018 padded with 0. I value starts first and Q value starts at an offset
0019 equalling half of the buffer size (i.e.) offset = buffersize/2. Out of
0020 the 20 bits, bit 19:2 (18 bit) is data and bit 1:0 (2 bit) can be any
0021 value.
0022
0023 **Byte Order.**
0024 Each cell is one byte.
0025
0026 .. flat-table::
0027 :header-rows: 1
0028 :stub-columns: 0
0029
0030 * - Offset:
0031 - Byte B0
0032 - Byte B1
0033 - Byte B2
0034 - Byte B3
0035 * - start + 0:
0036 - I'\ :sub:`0[19:12]`
0037 - I'\ :sub:`0[11:4]`
0038 - I'\ :sub:`0[3:0]; B2[3:0]=pad`
0039 - pad
0040 * - start + 4:
0041 - I'\ :sub:`1[19:12]`
0042 - I'\ :sub:`1[11:4]`
0043 - I'\ :sub:`1[3:0]; B2[3:0]=pad`
0044 - pad
0045 * - ...
0046 * - start + offset:
0047 - Q'\ :sub:`0[19:12]`
0048 - Q'\ :sub:`0[11:4]`
0049 - Q'\ :sub:`0[3:0]; B2[3:0]=pad`
0050 - pad
0051 * - start + offset + 4:
0052 - Q'\ :sub:`1[19:12]`
0053 - Q'\ :sub:`1[11:4]`
0054 - Q'\ :sub:`1[3:0]; B2[3:0]=pad`
0055 - pad