Re: [PATCH v11 3/5] media: iris: Add ROI delta QP control support for HFI Gen2 encoders
From: Vikash Garodia
Date: Thu Dec 03 2026 - 03:42:37 EST
On 11/21/2026 5:15 AM, Deepa Guthyappa Madivalara wrote:
Add ROI support to the Iris encoder driver for HFI Gen2 based targets.
- Add control infrastructure, ROI_PARAMS and MB_SIZE capability IDs to
platform_inst_fw_cap_type. Extend struct platform_inst_fw_cap with
p_array and elems fields to hold a pointer to the per-frame
delta QP array and its element count, set during s_ctrl.
- Register V4L2_CID_MPEG_VIDEO_ROI_MB_DELTA_QP as a dynamic S8
array control (max dims = 139264 entries, supporting resolution of
8192x4352 at 16x16 MB granularity).
Register V4L2_CID_MPEG_VIDEO_ROI_MB_SIZE as a read-only U8
control; g_volatile_ctrl returns 32 for HEVC and 16 for H.264.
- Define HFI_PROP_ROI_INFO and hook ROI_PARAMS to iris_set_roi_params().
Reviewed-by: Vishnu Reddy<busanna.reddy@xxxxxxxxxxxxxxxx>
Signed-off-by: Deepa Guthyappa Madivalara<deepa.madivalara@xxxxxxxxxxxxxxxx>
---
drivers/media/platform/qcom/iris/iris_ctrls.c | 70 +++++++++++++++++++++-
drivers/media/platform/qcom/iris/iris_hfi_gen2.c | 13 ++++
.../platform/qcom/iris/iris_hfi_gen2_defines.h | 1 +
.../platform/qcom/iris/iris_platform_common.h | 5 ++
4 files changed, 88 insertions(+), 1 deletion(-)
Reviewed-by: Vikash Garodia <vikash.garodia@xxxxxxxxxxxxxxxx>