# V4L2_PIX_FMT_Z16 ('Z16 ')

_Peios Kernel / Userspace interfaces / System and device interfaces / Video4Linux_

> 16-bit depth data with distance values at each pixel

<a id="rst-v4l2-pix-fmt-z16-z16"></a>
<a id="rst-v4l2-pix-fmt-z16"></a>

<!-- SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later -->

<!-- c:namespace: V4L -->

16-bit depth data with distance values at each pixel

<a id="rst-description"></a>

## Description

This is a 16-bit format, representing depth data. Each pixel is a distance to the respective point in the image coordinates. Distance unit can vary and has to be negotiated with the device separately. Each pixel is stored in a 16-bit word in the little endian byte order.

**Byte Order.** Each cell is one byte.


<table>
<tbody>
<tr>
<td>


start + 0:

</td>
<td>


Z<sub>00low</sub>

</td>
<td>


Z<sub>00high</sub>

</td>
<td>


Z<sub>01low</sub>

</td>
<td>


Z<sub>01high</sub>

</td>
<td>


Z<sub>02low</sub>

</td>
<td>


Z<sub>02high</sub>

</td>
<td>


Z<sub>03low</sub>

</td>
<td>


Z<sub>03high</sub>

</td>
</tr>
<tr>
<td>


start + 8:

</td>
<td>


Z<sub>10low</sub>

</td>
<td>


Z<sub>10high</sub>

</td>
<td>


Z<sub>11low</sub>

</td>
<td>


Z<sub>11high</sub>

</td>
<td>


Z<sub>12low</sub>

</td>
<td>


Z<sub>12high</sub>

</td>
<td>


Z<sub>13low</sub>

</td>
<td>


Z<sub>13high</sub>

</td>
</tr>
<tr>
<td>


start + 16:

</td>
<td>


Z<sub>20low</sub>

</td>
<td>


Z<sub>20high</sub>

</td>
<td>


Z<sub>21low</sub>

</td>
<td>


Z<sub>21high</sub>

</td>
<td>


Z<sub>22low</sub>

</td>
<td>


Z<sub>22high</sub>

</td>
<td>


Z<sub>23low</sub>

</td>
<td>


Z<sub>23high</sub>

</td>
</tr>
<tr>
<td>


start + 24:

</td>
<td>


Z<sub>30low</sub>

</td>
<td>


Z<sub>30high</sub>

</td>
<td>


Z<sub>31low</sub>

</td>
<td>


Z<sub>31high</sub>

</td>
<td>


Z<sub>32low</sub>

</td>
<td>


Z<sub>32high</sub>

</td>
<td>


Z<sub>33low</sub>

</td>
<td>


Z<sub>33high</sub>

</td>
</tr>
</tbody>
</table>
