mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sachin Kumar Garg <sachin.garg@oss.qualcomm.com>
To: Vikash Garodia <vikash.garodia@oss.qualcomm.com>,
	Dikshita Agarwal <dikshita.agarwal@oss.qualcomm.com>,
	Abhinav Kumar <abhinav.kumar@linux.dev>,
	Bryan O'Donoghue <bod@kernel.org>,
	Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: linux-media@vger.kernel.org, linux-arm-msm@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	Sachin Kumar Garg <sachin.garg@oss.qualcomm.com>
Subject: [PATCH v4 2/3] media: uapi: Add Qualcomm iris MBR rate control
Date: Mon, 16 Nov 2026 22:35:52 +0530	[thread overview]
Message-ID: <20261116-b4-add_sc7280_mbr-v4-2-636fb6bc8772@oss.qualcomm.com> (raw)
In-Reply-To: <20261116-b4-add_sc7280_mbr-v4-0-636fb6bc8772@oss.qualcomm.com>

Add include/uapi/linux/media/qcom/iris-config.h defining
V4L2_CID_QCOM_MBR_RATE_CONTROL, the first control in the
V4L2_CID_USER_QCOM_IRIS_BASE range, so that userspace can use it.

Document the control in
Documentation/userspace-api/media/drivers/qcom-iris.rst and add both
files to the Qualcomm iris MAINTAINERS entry.

Signed-off-by: Sachin Kumar Garg <sachin.garg@oss.qualcomm.com>
---
 .../userspace-api/media/drivers/index.rst          |  1 +
 .../userspace-api/media/drivers/qcom-iris.rst      | 28 ++++++++++++++++++++++
 MAINTAINERS                                        |  2 ++
 include/uapi/linux/media/qcom/iris-config.h        | 15 ++++++++++++
 4 files changed, 46 insertions(+)

diff --git a/Documentation/userspace-api/media/drivers/index.rst b/Documentation/userspace-api/media/drivers/index.rst
index 8d2c489b8453..66cb9773bd4b 100644
--- a/Documentation/userspace-api/media/drivers/index.rst
+++ b/Documentation/userspace-api/media/drivers/index.rst
@@ -37,6 +37,7 @@ For more details see the file COPYING in the source distribution of Linux.
 	max2175
 	npcm-video
 	omap3isp-uapi
+	qcom-iris
 	thp7312
 	uvcvideo
 	vgxy61
diff --git a/Documentation/userspace-api/media/drivers/qcom-iris.rst b/Documentation/userspace-api/media/drivers/qcom-iris.rst
new file mode 100644
index 000000000000..49f70ef49d6c
--- /dev/null
+++ b/Documentation/userspace-api/media/drivers/qcom-iris.rst
@@ -0,0 +1,28 @@
+.. SPDX-License-Identifier: GPL-2.0
+
+Qualcomm Iris video driver
+==========================
+
+The Qualcomm Iris video driver implements the following driver-specific
+control.
+
+Driver-specific Controls
+------------------------
+
+``V4L2_CID_QCOM_MBR_RATE_CONTROL (boolean)``
+    MBR Rate Control is a VBR Rate Control mode optimized for
+    surveillance video content, which has high temporal correlation
+    due to static camera positions. This Rate Control smartly identifies
+    key-frames in the scene, and allocates more bits to them to improve
+    the coding efficiency by taking advantage of high temporal
+    correlation in surveillance videos.
+
+    .. flat-table::
+        :header-rows:  0
+        :stub-columns: 0
+        :widths:       1 4
+
+        * - ``0``
+          - MBR Rate Control is disabled (default).
+        * - ``1``
+          - MBR Rate Control is enabled.
diff --git a/MAINTAINERS b/MAINTAINERS
index 760791e3635f..f28f235f5cb1 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -22599,7 +22599,9 @@ L:	linux-media@vger.kernel.org
 L:	linux-arm-msm@vger.kernel.org
 S:	Maintained
 F:	Documentation/devicetree/bindings/media/qcom,*-iris.yaml
+F:	Documentation/userspace-api/media/drivers/qcom-iris.rst
 F:	drivers/media/platform/qcom/iris/
+F:	include/uapi/linux/media/qcom/iris-config.h
 
 QUALCOMM MIPI CSI2 PHY DRIVER
 M:	Bryan O'Donoghue <bod@kernel.org>
diff --git a/include/uapi/linux/media/qcom/iris-config.h b/include/uapi/linux/media/qcom/iris-config.h
new file mode 100644
index 000000000000..0551b61aa06c
--- /dev/null
+++ b/include/uapi/linux/media/qcom/iris-config.h
@@ -0,0 +1,15 @@
+/* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
+/*
+ * Qualcomm Iris Video Driver - Userspace API
+ *
+ * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
+ */
+
+#ifndef __UAPI_QCOM_IRIS_CONFIG_H
+#define __UAPI_QCOM_IRIS_CONFIG_H
+
+#include <linux/v4l2-controls.h>
+
+#define V4L2_CID_QCOM_MBR_RATE_CONTROL	(V4L2_CID_USER_QCOM_IRIS_BASE + 0x0)
+
+#endif /* __UAPI_QCOM_IRIS_CONFIG_H */

-- 
2.34.1


  parent reply	other threads:[~2026-11-16 17:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-16 17:05 [PATCH v4 0/3] add MBR type rate control for encoder Sachin Kumar Garg
2026-11-16 17:05 ` [PATCH v4 1/3] media: uapi: v4l2-controls: Add control base for Qualcomm iris driver Sachin Kumar Garg
2026-11-16 17:05 ` Sachin Kumar Garg [this message]
2026-11-16 17:05 ` [PATCH v4 3/3] media: iris: add new rate control type MBR for encoder Sachin Kumar Garg
2026-12-02 11:29   ` Gourav Kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261116-b4-add_sc7280_mbr-v4-2-636fb6bc8772@oss.qualcomm.com \
    --to=sachin.garg@oss.qualcomm.com \
    --cc=abhinav.kumar@linux.dev \
    --cc=bod@kernel.org \
    --cc=dikshita.agarwal@oss.qualcomm.com \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=vikash.garodia@oss.qualcomm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®