xref: /linux/Documentation/userspace-api/media/v4l/pixfmt-z16.rst (revision 95298d63c67673c654c08952672d016212b26054)
1.. Permission is granted to copy, distribute and/or modify this
2.. document under the terms of the GNU Free Documentation License,
3.. Version 1.1 or any later version published by the Free Software
4.. Foundation, with no Invariant Sections, no Front-Cover Texts
5.. and no Back-Cover Texts. A copy of the license is included at
6.. Documentation/userspace-api/media/fdl-appendix.rst.
7..
8.. TODO: replace it to GFDL-1.1-or-later WITH no-invariant-sections
9
10.. _V4L2-PIX-FMT-Z16:
11
12*************************
13V4L2_PIX_FMT_Z16 ('Z16 ')
14*************************
15
16
1716-bit depth data with distance values at each pixel
18
19
20Description
21===========
22
23This is a 16-bit format, representing depth data. Each pixel is a
24distance to the respective point in the image coordinates. Distance unit
25can vary and has to be negotiated with the device separately. Each pixel
26is stored in a 16-bit word in the little endian byte order.
27
28**Byte Order.**
29Each cell is one byte.
30
31
32
33
34.. flat-table::
35    :header-rows:  0
36    :stub-columns: 0
37
38    * - start + 0:
39      - Z\ :sub:`00low`
40      - Z\ :sub:`00high`
41      - Z\ :sub:`01low`
42      - Z\ :sub:`01high`
43      - Z\ :sub:`02low`
44      - Z\ :sub:`02high`
45      - Z\ :sub:`03low`
46      - Z\ :sub:`03high`
47    * - start + 8:
48      - Z\ :sub:`10low`
49      - Z\ :sub:`10high`
50      - Z\ :sub:`11low`
51      - Z\ :sub:`11high`
52      - Z\ :sub:`12low`
53      - Z\ :sub:`12high`
54      - Z\ :sub:`13low`
55      - Z\ :sub:`13high`
56    * - start + 16:
57      - Z\ :sub:`20low`
58      - Z\ :sub:`20high`
59      - Z\ :sub:`21low`
60      - Z\ :sub:`21high`
61      - Z\ :sub:`22low`
62      - Z\ :sub:`22high`
63      - Z\ :sub:`23low`
64      - Z\ :sub:`23high`
65    * - start + 24:
66      - Z\ :sub:`30low`
67      - Z\ :sub:`30high`
68      - Z\ :sub:`31low`
69      - Z\ :sub:`31high`
70      - Z\ :sub:`32low`
71      - Z\ :sub:`32high`
72      - Z\ :sub:`33low`
73      - Z\ :sub:`33high`
74