Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

media: uapi: Add meta formats for PiSP FE config and stats

Add two meta formats for PiSP FE: V4L2_META_FMT_RPI_FE_CFG and
V4L2_META_FMT_RPI_FE_STATS. The former is used to provide configuration
for the FE and the latter is used to read the statistics from the FE.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>

authored by

Tomi Valkeinen and committed by
Mauro Carvalho Chehab
6390834c a23b2b21

+44
+1
Documentation/userspace-api/media/v4l/meta-formats.rst
··· 16 16 metafmt-generic 17 17 metafmt-intel-ipu3 18 18 metafmt-pisp-be 19 + metafmt-pisp-fe 19 20 metafmt-rkisp1 20 21 metafmt-uvc 21 22 metafmt-vivid
+39
Documentation/userspace-api/media/v4l/metafmt-pisp-fe.rst
··· 1 + .. SPDX-License-Identifier: GPL-2.0 2 + 3 + .. _v4l2-meta-fmt-rpi-fe-cfg: 4 + 5 + ************************ 6 + V4L2_META_FMT_RPI_FE_CFG 7 + ************************ 8 + 9 + Raspberry Pi PiSP Front End configuration format 10 + ================================================ 11 + 12 + The Raspberry Pi PiSP Front End image signal processor is configured by 13 + userspace by providing a buffer of configuration parameters to the 14 + `rp1-cfe-fe-config` output video device node using the 15 + :c:type:`v4l2_meta_format` interface. 16 + 17 + The `Raspberry Pi PiSP technical specification 18 + <https://datasheets.raspberrypi.com/camera/raspberry-pi-image-signal-processor-specification.pdf>`_ 19 + provide detailed description of the Front End configuration and programming 20 + model. 21 + 22 + .. _v4l2-meta-fmt-rpi-fe-stats: 23 + 24 + ************************** 25 + V4L2_META_FMT_RPI_FE_STATS 26 + ************************** 27 + 28 + Raspberry Pi PiSP Front End statistics format 29 + ============================================= 30 + 31 + The Raspberry Pi PiSP Front End image signal processor provides statistics data 32 + by writing to a buffer provided via the `rp1-cfe-fe-stats` capture video device 33 + node using the 34 + :c:type:`v4l2_meta_format` interface. 35 + 36 + The `Raspberry Pi PiSP technical specification 37 + <https://datasheets.raspberrypi.com/camera/raspberry-pi-image-signal-processor-specification.pdf>`_ 38 + provide detailed description of the Front End configuration and programming 39 + model.
+2
drivers/media/v4l2-core/v4l2-ioctl.c
··· 1468 1468 case V4L2_PIX_FMT_Y212: descr = "12-bit YUYV Packed"; break; 1469 1469 case V4L2_PIX_FMT_Y216: descr = "16-bit YUYV Packed"; break; 1470 1470 case V4L2_META_FMT_RPI_BE_CFG: descr = "RPi PiSP BE Config format"; break; 1471 + case V4L2_META_FMT_RPI_FE_CFG: descr = "RPi PiSP FE Config format"; break; 1472 + case V4L2_META_FMT_RPI_FE_STATS: descr = "RPi PiSP FE Statistics format"; break; 1471 1473 case V4L2_META_FMT_GENERIC_8: descr = "8-bit Generic Metadata"; break; 1472 1474 case V4L2_META_FMT_GENERIC_CSI2_10: descr = "8-bit Generic Meta, 10b CSI-2"; break; 1473 1475 case V4L2_META_FMT_GENERIC_CSI2_12: descr = "8-bit Generic Meta, 12b CSI-2"; break;
+2
include/uapi/linux/videodev2.h
··· 860 860 861 861 /* Vendor specific - used for RaspberryPi PiSP */ 862 862 #define V4L2_META_FMT_RPI_BE_CFG v4l2_fourcc('R', 'P', 'B', 'C') /* PiSP BE configuration */ 863 + #define V4L2_META_FMT_RPI_FE_CFG v4l2_fourcc('R', 'P', 'F', 'C') /* PiSP FE configuration */ 864 + #define V4L2_META_FMT_RPI_FE_STATS v4l2_fourcc('R', 'P', 'F', 'S') /* PiSP FE stats */ 863 865 864 866 #ifdef __KERNEL__ 865 867 /*