mirror of
https://github.com/Ysurac/openmptcprouter.git
synced 2025-03-09 15:40:20 +00:00
34 lines
1.5 KiB
Diff
34 lines
1.5 KiB
Diff
From 024504fc45187debd29d5d0e0e68a4dddc7e0647 Mon Sep 17 00:00:00 2001
|
|
From: Naushir Patuck <naush@raspberrypi.com>
|
|
Date: Mon, 7 Feb 2022 09:20:49 +0000
|
|
Subject: [PATCH 351/697] V4L2: Add PiSP opaque formats to V4L2
|
|
|
|
Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
|
|
---
|
|
drivers/media/v4l2-core/v4l2-ioctl.c | 2 ++
|
|
include/uapi/linux/videodev2.h | 3 +++
|
|
2 files changed, 5 insertions(+)
|
|
|
|
--- a/drivers/media/v4l2-core/v4l2-ioctl.c
|
|
+++ b/drivers/media/v4l2-core/v4l2-ioctl.c
|
|
@@ -1478,6 +1478,8 @@ static void v4l_fill_fmtdesc(struct v4l2
|
|
case V4L2_META_FMT_GENERIC_CSI2_24: descr = "8-bit Generic Meta, 24b CSI-2"; break;
|
|
case V4L2_META_FMT_SENSOR_DATA: descr = "Sensor Ancillary Metadata"; break;
|
|
case V4L2_META_FMT_BCM2835_ISP_STATS: descr = "BCM2835 ISP Image Statistics"; break;
|
|
+ case V4L2_META_FMT_RPI_FE_CFG: descr = "PiSP FE Config format"; break;
|
|
+ case V4L2_META_FMT_RPI_FE_STATS: descr = "PiSP FE Statistics format"; break;
|
|
|
|
default:
|
|
/* Compressed formats */
|
|
--- a/include/uapi/linux/videodev2.h
|
|
+++ b/include/uapi/linux/videodev2.h
|
|
@@ -871,6 +871,9 @@ struct v4l2_pix_format {
|
|
/* Vendor specific - used for RaspberryPi PiSP */
|
|
#define V4L2_META_FMT_RPI_BE_CFG v4l2_fourcc('R', 'P', 'B', 'C') /* PiSP BE configuration */
|
|
|
|
+/* The metadata format identifier for FE configuration buffers. */
|
|
+#define V4L2_META_FMT_RPI_FE_STATS v4l2_fourcc('R', 'P', 'F', 'S')
|
|
+
|
|
#ifdef __KERNEL__
|
|
/*
|
|
* Line-based metadata formats. Remember to update v4l_fill_fmtdesc() when
|