Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp220966iog; Fri, 17 Jun 2022 02:15:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v1LnEkrTYXfAswsJWa7cwZvxmrNxCFIbUCscljoWb5N/Sbh114XIuHHyWq9YmxeSCSUQ9N X-Received: by 2002:a05:6402:11cd:b0:435:64b5:9a52 with SMTP id j13-20020a05640211cd00b0043564b59a52mr1262820edw.157.1655457356419; Fri, 17 Jun 2022 02:15:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655457356; cv=none; d=google.com; s=arc-20160816; b=TtwoRTUEU+7680qb9jxO5Phtuky6pYqMs3uFW5LVe5NyBY/JqKhsKTae1BBzXNVdgA eKLtK7XpftVdKfu3egqHnco/hHcXr8nh5raAX2MoWsNGKCE0ZR6f9bRej6oQ+F0PLYQA jfuveHjE7MMQF9gLs1VVemXR+Mlu9NSuq05s6R3W/b5Zrj2/2818VxDfKKob510NjGVu plR2zi3LswXkmLeCWoPsiDzkzj/AdkeOYWy5wzStO6H5bNvfd3rk08Jt+j54lg1AT5wX 4/plzGRkFFbmpueNzfAFbNRZ7v+Y1RFQygsH4srVqypmIH61ZovbcuyXkQ0G57Xrt7DJ jXcg== 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=U3BZ4g6oPDZJPrjCD3ZruxW/UV/xUZWtA+hsba8FPa0=; b=0rC7XyREc+FMVyEogT0ZA0A+ruKGuaEvGJUDC9oGdzI1B/EAE4KucoceGA1//SnyLE Mnzm1C/IuFoCg3tWM/mp213AqwZaKblyM9Hoyq3vMRhsl1IurWvYNblX5XOOo1RRgYGz JAkgV0ibkf+udB3+bzsvjU94oEof6ZNr8E3QP0TRXWOwTyXaxNNapZpqBKayjlJ0a4FW GyiuCcCz9Sh9Aa+ivNBys7kn6j0ht+LlTX2V6TmEiZGzHDajDKJ1/kVs/qoBFlUxxecs mFV5LzAS7WtoF64/eHsiWFpSiNuRwTZL8dGJ4QQ4khjD2AtFbuTMkQZFON4aSAcSZzXS SejA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=XyvTYbCs; 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 ge5-20020a170907908500b0071212f6246dsi1686325ejb.385.2022.06.17.02.15.28; Fri, 17 Jun 2022 02:15:56 -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=XyvTYbCs; 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 S1381162AbiFQIgr (ORCPT + 99 others); Fri, 17 Jun 2022 04:36:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381062AbiFQIgN (ORCPT ); Fri, 17 Jun 2022 04:36:13 -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 5DAD969295; Fri, 17 Jun 2022 01:36:03 -0700 (PDT) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:120:3210:faf2:1a12:f903:cc5e]) (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 9825466018EC; Fri, 17 Jun 2022 09:36:01 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1655454962; bh=WTLxGXr7l75g/dQNrl4UaJ/LNUprdQDumpU70Mcjf7w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XyvTYbCs+A3FRmAtgTlWMUmYpxT2mB4fnJ/l5fHau7JBfVGdEjIkX85s72qoYyZby ET/+fL+C22gQAnmosH40v9T5Q4ZB1fvcSTwmc2EKM+7Z37CnN4IO8fFsh0OchMcjPf 3JmXxQHV/XRgug+zT2ZrdD59pxAzF/iZFbWTtL9RFyZLHMiXsIf5SWjb3S1ODt5HBM gElizXOzV/xcxH57y05l+wzi9BzViKDhrqZAAVgmVBZPoYok/tH6xJQtkt9O3ntfjb L7OmPEVV4aw1yludLSwZLgpJKM6zOrnxtr0HQAATxbkAUFNkAonJynqoVAaoq4dmM8 ALR7Ff5efb0jg== 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 v9 12/17] media: uapi: Move the HEVC stateless control type out of staging Date: Fri, 17 Jun 2022 10:35:40 +0200 Message-Id: <20220617083545.133920-13-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220617083545.133920-1-benjamin.gaignard@collabora.com> References: <20220617083545.133920-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 0b91200776f8..2feea4a5a008 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 3a6601a46ced..42d16e8a1050 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