Back to home page

OSCL-LXR

 
 

    


0001 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
0002 
0003 .. _V4L2-SDR-FMT-PCU16BE:
0004 
0005 ******************************
0006 V4L2_SDR_FMT_PCU16BE ('PC16')
0007 ******************************
0008 
0009 Planar complex unsigned 16-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 16 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 16 bits, bit 15:2 (14 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[13:6]`
0037       -  I'\ :sub:`0[5:0]; B1[1:0]=pad`
0038       -  pad
0039       -  pad
0040     * -  start + 4:
0041       -  I'\ :sub:`1[13:6]`
0042       -  I'\ :sub:`1[5:0]; B1[1:0]=pad`
0043       -  pad
0044       -  pad
0045     * -  ...
0046     * - start + offset:
0047       -  Q'\ :sub:`0[13:6]`
0048       -  Q'\ :sub:`0[5:0]; B1[1:0]=pad`
0049       -  pad
0050       -  pad
0051     * - start + offset + 4:
0052       -  Q'\ :sub:`1[13:6]`
0053       -  Q'\ :sub:`1[5:0]; B1[1:0]=pad`
0054       -  pad
0055       -  pad