From patchwork Fri May 2 15:05:07 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marco Felsch X-Patchwork-Id: 887069 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C40FD2571DE for ; Fri, 2 May 2025 15:07:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746198424; cv=none; b=Cndo1Gp8lss6Sg254+YLSap0XoDZ1n66m4Fx+wIiKj+soGi+Rie2sGQ1JxrV/5l5gqt2EG8hedEnezyzKnYRxrps7nwlNO679C+dGbbePNAfxRSVs/vVsf6FjlvUMr+21laNBHCFDNVIIUDzc58LRYD/WO93huWdjcI0Lsj51W8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746198424; c=relaxed/simple; bh=Gzby+9GIxIVi1tD1qQglYZ8H1Y8eSr5Pr6g3ipujJ1c=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=easc32zAo5GNTArWd1IXuxMTK4nRT9z53SBepRWPGVHdIEb16SxkXsI+rCJF72TAdClyv9ohckaxjxCgm5tKIfdCNo5XgnlPs+mtPLd0CrRfCFssOywUdmkTAeg9BIbCXnQq/VeLedE5l05iG0DOwwVxrdbUlW6nsV7cstV9siU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from dude02.red.stw.pengutronix.de ([2a0a:edc0:0:1101:1d::28]) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1uAryU-0004HG-7G; Fri, 02 May 2025 17:06:50 +0200 From: Marco Felsch To: nicolas.dufresne@collabora.com, benjamin.gaignard@collabora.com, p.zabel@pengutronix.de, mchehab@kernel.org, shawnguo@kernel.org, Sascha Hauer , kernel@pengutronix.de, festevam@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, paulk@sys-base.io, hverkuil@xs4all.nl, laurent.pinchart@ideasonboard.com, sebastian.fricke@collabora.com, ming.qian@nxp.com Cc: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Michael Tretter Subject: [RFC PATCH 04/11] media: uapi: add more V4L2_H264_ENCODE_FLAGs Date: Fri, 2 May 2025 17:05:07 +0200 Message-Id: <20250502150513.4169098-5-m.felsch@pengutronix.de> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250502150513.4169098-1-m.felsch@pengutronix.de> References: <20250502150513.4169098-1-m.felsch@pengutronix.de> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2a0a:edc0:0:1101:1d::28 X-SA-Exim-Mail-From: m.felsch@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-media@vger.kernel.org From: Michael Tretter The encode flags may be written into the slice header by the hardware encoder. User space decides if the flags are set and which features are used, but the driver has to write it into the registers. Signed-off-by: Michael Tretter --- include/uapi/linux/v4l2-controls.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h index a8df393c9ead..152b6b0cfe78 100644 --- a/include/uapi/linux/v4l2-controls.h +++ b/include/uapi/linux/v4l2-controls.h @@ -1774,6 +1774,9 @@ struct v4l2_ctrl_h264_encode_params { #define V4L2_H264_ENCODE_FLAG_ENTROPY_CODING_MODE 0x01 #define V4L2_H264_ENCODE_FLAG_TRANSFORM_8X8_MODE 0x02 #define V4L2_H264_ENCODE_FLAG_CONSTRAINED_INTRA_PRED 0x04 +#define V4L2_H264_ENCODE_FLAG_NUM_REF_IDX_OVERRIDE 0x08 +#define V4L2_H264_ENCODE_FLAG_NO_OUTPUT_OF_PRIOR_PICS 0x10 +#define V4L2_H264_ENCODE_FLAG_LONG_TERM_REFERENCE 0x20 #define V4L2_CID_STATELESS_H264_ENCODE_RC (V4L2_CID_CODEC_STATELESS_BASE + 9)