Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1197914iog; Tue, 14 Jun 2022 00:52:49 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sRC1WXUKejM651EIavv8XI7GEonREV3Zjli8CRk1LA5SKzvjDWNRVVtpp7sfAlRvnCcO3e X-Received: by 2002:a17:90b:38c1:b0:1ea:8403:9305 with SMTP id nn1-20020a17090b38c100b001ea84039305mr3152963pjb.11.1655193169636; Tue, 14 Jun 2022 00:52:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655193169; cv=none; d=google.com; s=arc-20160816; b=uIzqHUy0lScqkOnDzwoCoV3HYMzavliqsrH1pZz9ifW+/jrR4MoaP9iZ1Fj65vUxa2 gv5yyybc8PctNm77Q0kixF7+Z0SXD8/KLv+Nt7ZzIhQRrzL1cAymw7WBXNWOi7qLg8DW d9LLJYRJtRd0Wtyn8r1HPFUoKhq0grYs/ynscJxRbW/2wQQargkK3DQZzJ6sLDOU2IK1 ulmv5taW0z2pIN70pHG0i0B4f+zV0MlGnDh9Aw99VM6e9JHIJCzvhvfaOSPnf4tH95zR L6mFfAg0/d8S2ibdFZZKe0/P5Zg2oAlvKpXCKIsh/rf4dKfB7/2riKamOhFXAA3h6ASR JVWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=/RQpr2E9uP0u5JxUc02oFSjatUaR6n4dEV8lNNbRocM=; b=YuAsQblMclFIOhCEoKOZyqrpIYYAKdoXcpZBss3mNuFndtET5G7xg/yDl7ZccJ79Pf p8wegJRiuk4SzrWOjezKA1rNuy+L+fqWi5731e5dMMu1cb4xuENG8U3tziCtcRnoWaaQ CxGGCszI0I+PUdJ/zkjztvyDJGO31TQUyyr4Xn/qM+vUdjCOBBNdqXaFjbhOg68NlZ5I MlCHgi2CGjg8YX5WLhvzKNza2UkwEz4cNXwVhjSNd5s4ZUh1WPQk/BN+XS6cBbdXDRFF tPdcYA8jIciGZWn818QsC9qCSXOTMDxwlI5FE6MblCu/iPrX/cMdoH76S3+Um7GDo2G6 X6pQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=g4H0QCn8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j5-20020a636e05000000b00408b01faf80si296711pgc.112.2022.06.14.00.52.36; Tue, 14 Jun 2022 00:52:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=g4H0QCn8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355344AbiFNHuy (ORCPT + 99 others); Tue, 14 Jun 2022 03:50:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354970AbiFNHuL (ORCPT ); Tue, 14 Jun 2022 03:50:11 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E30D3ED15; Tue, 14 Jun 2022 00:50:05 -0700 (PDT) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:120:3210:4a7b:8d3a:acaa:ec46]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: benjamin.gaignard) by madras.collabora.co.uk (Postfix) with ESMTPSA id 70C7766016B4; Tue, 14 Jun 2022 08:50:03 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1655193004; bh=AX9t7NDroKjw8N8uzsZcYRkuwGc+9D6j4YO379jQqLM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=g4H0QCn8y6VM33n9mCskqkzLGc22GaGGILukwLUwSd/eETw2WF2DJ4x4GelC23Hvb IcfWA8IdNjNnfKqjtexFYpKDY98otNKtXl9BEQ9wetkVyGGED/7/2YMH+Xds/9WYyA KHaCtm+5ZazULnEEQO2bhC5DUH9nC5Jf4qxnYynpoSRyCTrBBIp2QZ/G8W1E+kO4+7 sjvR1E5+WIsQZooaI+timuyM7g/EKo+/AOFv3vTYF0J3njb3XfWdL1JsJ1smynfp2t vDfFV+TUOKOqt7H4VuiBN1/wUA5KvlQo5Z+EklGapKHfrnWkU3vhxYSMrbmIh42Mdj 27yxVVOklAnNg== From: Benjamin Gaignard To: mchehab@kernel.org, hverkuil@xs4all.nl, ezequiel@vanguardiasur.com.ar, p.zabel@pengutronix.de, gregkh@linuxfoundation.org, mripard@kernel.org, paul.kocialkowski@bootlin.com, wens@csie.org, jernej.skrabec@gmail.com, samuel@sholland.org, nicolas.dufresne@collabora.com, andrzej.p@collabora.com Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, kernel@collabora.com, Benjamin Gaignard Subject: [PATCH v7 12/17] media: uapi: Move the HEVC stateless control type out of staging Date: Tue, 14 Jun 2022 09:49:42 +0200 Message-Id: <20220614074947.160316-13-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220614074947.160316-1-benjamin.gaignard@collabora.com> References: <20220614074947.160316-1-benjamin.gaignard@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move the HEVC stateless controls types out of staging, and re-number them. Signed-off-by: Benjamin Gaignard --- .../userspace-api/media/videodev2.h.rst.exceptions | 5 +++++ include/media/hevc-ctrls.h | 7 ------- include/uapi/linux/videodev2.h | 6 ++++++ 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/Documentation/userspace-api/media/videodev2.h.rst.exceptions b/Documentation/userspace-api/media/videodev2.h.rst.exceptions index 9cbb7a0c354a..ee34f13e8142 100644 --- a/Documentation/userspace-api/media/videodev2.h.rst.exceptions +++ b/Documentation/userspace-api/media/videodev2.h.rst.exceptions @@ -153,6 +153,11 @@ replace symbol V4L2_CTRL_TYPE_VP9_COMPRESSED_HDR :c:type:`v4l2_ctrl_type` replace symbol V4L2_CTRL_TYPE_VP9_FRAME :c:type:`v4l2_ctrl_type` replace symbol V4L2_CTRL_TYPE_HDR10_CLL_INFO :c:type:`v4l2_ctrl_type` replace symbol V4L2_CTRL_TYPE_HDR10_MASTERING_DISPLAY :c:type:`v4l2_ctrl_type` +replace symbol V4L2_CTRL_TYPE_HEVC_SPS :c:type:`v4l2_ctrl_type` +replace symbol V4L2_CTRL_TYPE_HEVC_PPS :c:type:`v4l2_ctrl_type` +replace symbol V4L2_CTRL_TYPE_HEVC_SLICE_PARAMS :c:type:`v4l2_ctrl_type` +replace symbol V4L2_CTRL_TYPE_HEVC_SCALING_MATRIX :c:type:`v4l2_ctrl_type` +replace symbol V4L2_CTRL_TYPE_HEVC_DECODE_PARAMS :c:type:`v4l2_ctrl_type` # V4L2 capability defines replace define V4L2_CAP_VIDEO_CAPTURE device-capabilities diff --git a/include/media/hevc-ctrls.h b/include/media/hevc-ctrls.h index 1319cb99ae3f..d6cb3779d190 100644 --- a/include/media/hevc-ctrls.h +++ b/include/media/hevc-ctrls.h @@ -22,13 +22,6 @@ #define V4L2_CID_STATELESS_HEVC_START_CODE (V4L2_CID_CODEC_BASE + 1016) #define V4L2_CID_STATELESS_HEVC_ENTRY_POINT_OFFSETS (V4L2_CID_CODEC_BASE + 1017) -/* enum v4l2_ctrl_type type values */ -#define V4L2_CTRL_TYPE_HEVC_SPS 0x0120 -#define V4L2_CTRL_TYPE_HEVC_PPS 0x0121 -#define V4L2_CTRL_TYPE_HEVC_SLICE_PARAMS 0x0122 -#define V4L2_CTRL_TYPE_HEVC_SCALING_MATRIX 0x0123 -#define V4L2_CTRL_TYPE_HEVC_DECODE_PARAMS 0x0124 - enum v4l2_stateless_hevc_decode_mode { V4L2_STATELESS_HEVC_DECODE_MODE_SLICE_BASED, V4L2_STATELESS_HEVC_DECODE_MODE_FRAME_BASED, diff --git a/include/uapi/linux/videodev2.h b/include/uapi/linux/videodev2.h index 37f9f23a67fe..e0d19a6b5bc7 100644 --- a/include/uapi/linux/videodev2.h +++ b/include/uapi/linux/videodev2.h @@ -1836,6 +1836,12 @@ enum v4l2_ctrl_type { V4L2_CTRL_TYPE_VP9_COMPRESSED_HDR = 0x0260, V4L2_CTRL_TYPE_VP9_FRAME = 0x0261, + + V4L2_CTRL_TYPE_HEVC_SPS = 0x0270, + V4L2_CTRL_TYPE_HEVC_PPS = 0x0271, + V4L2_CTRL_TYPE_HEVC_SLICE_PARAMS = 0x0272, + V4L2_CTRL_TYPE_HEVC_SCALING_MATRIX = 0x0273, + V4L2_CTRL_TYPE_HEVC_DECODE_PARAMS = 0x0274, }; /* Used in the VIDIOC_QUERYCTRL ioctl for querying controls */ -- 2.32.0