xref: /linux/Documentation/userspace-api/media/v4l/pixfmt-z16.rst (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1.. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later
2
3.. _V4L2-PIX-FMT-Z16:
4
5*************************
6V4L2_PIX_FMT_Z16 ('Z16 ')
7*************************
8
9
1016-bit depth data with distance values at each pixel
11
12
13Description
14===========
15
16This is a 16-bit format, representing depth data. Each pixel is a
17distance to the respective point in the image coordinates. Distance unit
18can vary and has to be negotiated with the device separately. Each pixel
19is stored in a 16-bit word in the little endian byte order.
20
21**Byte Order.**
22Each cell is one byte.
23
24
25
26
27.. flat-table::
28    :header-rows:  0
29    :stub-columns: 0
30
31    * - start + 0:
32      - Z\ :sub:`00low`
33      - Z\ :sub:`00high`
34      - Z\ :sub:`01low`
35      - Z\ :sub:`01high`
36      - Z\ :sub:`02low`
37      - Z\ :sub:`02high`
38      - Z\ :sub:`03low`
39      - Z\ :sub:`03high`
40    * - start + 8:
41      - Z\ :sub:`10low`
42      - Z\ :sub:`10high`
43      - Z\ :sub:`11low`
44      - Z\ :sub:`11high`
45      - Z\ :sub:`12low`
46      - Z\ :sub:`12high`
47      - Z\ :sub:`13low`
48      - Z\ :sub:`13high`
49    * - start + 16:
50      - Z\ :sub:`20low`
51      - Z\ :sub:`20high`
52      - Z\ :sub:`21low`
53      - Z\ :sub:`21high`
54      - Z\ :sub:`22low`
55      - Z\ :sub:`22high`
56      - Z\ :sub:`23low`
57      - Z\ :sub:`23high`
58    * - start + 24:
59      - Z\ :sub:`30low`
60      - Z\ :sub:`30high`
61      - Z\ :sub:`31low`
62      - Z\ :sub:`31high`
63      - Z\ :sub:`32low`
64      - Z\ :sub:`32high`
65      - Z\ :sub:`33low`
66      - Z\ :sub:`33high`
67