xref: /linux/Documentation/userspace-api/media/v4l/pixfmt-sdr-pcu16be.rst (revision 778b8ebe5192e7a7f00563a7456517dfa63e1d90)
1.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2.. c:namespace:: V4L
3
4.. _V4L2-SDR-FMT-PCU16BE:
5
6******************************
7V4L2_SDR_FMT_PCU16BE ('PC16')
8******************************
9
10Planar complex unsigned 16-bit big endian IQ sample
11
12Description
13===========
14
15This format contains a sequence of complex number samples. Each complex
16number consist of two parts called In-phase and Quadrature (IQ). Both I
17and Q are represented as a 16 bit unsigned big endian number stored in
1832 bit space. The remaining unused bits within the 32 bit space will be
19padded with 0. I value starts first and Q value starts at an offset
20equalling half of the buffer size (i.e.) offset = buffersize/2. Out of
21the 16 bits, bit 15:2 (14 bit) is data and bit 1:0 (2 bit) can be any
22value.
23
24**Byte Order.**
25Each cell is one byte.
26
27.. flat-table::
28    :header-rows:  1
29    :stub-columns: 0
30
31    * -  Offset:
32      -  Byte B0
33      -  Byte B1
34      -  Byte B2
35      -  Byte B3
36    * -  start + 0:
37      -  I'\ :sub:`0[13:6]`
38      -  I'\ :sub:`0[5:0]; B1[1:0]=pad`
39      -  pad
40      -  pad
41    * -  start + 4:
42      -  I'\ :sub:`1[13:6]`
43      -  I'\ :sub:`1[5:0]; B1[1:0]=pad`
44      -  pad
45      -  pad
46    * -  ...
47    * - start + offset:
48      -  Q'\ :sub:`0[13:6]`
49      -  Q'\ :sub:`0[5:0]; B1[1:0]=pad`
50      -  pad
51      -  pad
52    * - start + offset + 4:
53      -  Q'\ :sub:`1[13:6]`
54      -  Q'\ :sub:`1[5:0]; B1[1:0]=pad`
55      -  pad
56      -  pad
57