summaryrefslogtreecommitdiffstats
path: root/Documentation/media/uapi/v4l/pixfmt-cnf4.rst
diff options
context:
space:
mode:
authorSergey Dorodnicov <sergey.dorodnicov@intel.com>2018-09-12 02:42:06 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-12-03 13:42:34 -0500
commit92799ef7209bfd4c8eadb88c2c8f6fcba544b367 (patch)
treebc09c96024135ea83c469a835d148aca8079823b /Documentation/media/uapi/v4l/pixfmt-cnf4.rst
parentd55c6f51fe3f82e4565e831fcacb85d068b7a3a1 (diff)
downloadlinux-0-day-92799ef7209bfd4c8eadb88c2c8f6fcba544b367.tar.gz
linux-0-day-92799ef7209bfd4c8eadb88c2c8f6fcba544b367.tar.xz
media: v4l: Add 4bpp packed depth confidence format CNF4
Adding new fourcc CNF4 for 4 bit-per-pixel packed depth confidence information provided by Intel RealSense cameras. Every two consecutive pixels are packed into a single byte. Signed-off-by: Sergey Dorodnicov <sergey.dorodnicov@intel.com> Signed-off-by: Evgeni Raikhel <evgeni.raikhel@intel.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'Documentation/media/uapi/v4l/pixfmt-cnf4.rst')
-rw-r--r--Documentation/media/uapi/v4l/pixfmt-cnf4.rst31
1 files changed, 31 insertions, 0 deletions
diff --git a/Documentation/media/uapi/v4l/pixfmt-cnf4.rst b/Documentation/media/uapi/v4l/pixfmt-cnf4.rst
new file mode 100644
index 0000000000000..8f469290c3043
--- /dev/null
+++ b/Documentation/media/uapi/v4l/pixfmt-cnf4.rst
@@ -0,0 +1,31 @@
+.. -*- coding: utf-8; mode: rst -*-
+
+.. _V4L2-PIX-FMT-CNF4:
+
+******************************
+V4L2_PIX_FMT_CNF4 ('CNF4')
+******************************
+
+Depth sensor confidence information as a 4 bits per pixel packed array
+
+Description
+===========
+
+Proprietary format used by Intel RealSense Depth cameras containing depth
+confidence information in range 0-15 with 0 indicating that the sensor was
+unable to resolve any signal and 15 indicating maximum level of confidence for
+the specific sensor (actual error margins might change from sensor to sensor).
+
+Every two consecutive pixels are packed into a single byte.
+Bits 0-3 of byte n refer to confidence value of depth pixel 2*n,
+bits 4-7 to confidence value of depth pixel 2*n+1.
+
+**Bit-packed representation.**
+
+.. flat-table::
+ :header-rows: 0
+ :stub-columns: 0
+ :widths: 64 64
+
+ * - Y'\ :sub:`01[3:0]`\ (bits 7--4) Y'\ :sub:`00[3:0]`\ (bits 3--0)
+ - Y'\ :sub:`03[3:0]`\ (bits 7--4) Y'\ :sub:`02[3:0]`\ (bits 3--0)