From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-lf1-f44.google.com (mail-lf1-f44.google.com [209.85.167.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D2CCD5EAC for ; Sun, 20 Feb 2022 17:32:05 +0000 (UTC) Received: by mail-lf1-f44.google.com with SMTP id d23so14457799lfv.13 for ; Sun, 20 Feb 2022 09:32:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MfNLrW8iqBQsbuSrzEGTeEHosap22UQqZ1+HJnuvOZs=; b=BHp+FJeE/XWtA5QW5XAQhP41fU6oQXQRJg/Sz00627ZRzyn2baPty0r2suPUbqaFZF HCSqTeLOaG3ngFSHJjXSJtSHrd0Tx8WHBt+QhuqiZUQla4/NURZn+BG1yiHaXsA3hbsc MKk0yMlid+ZwpbzTupLQhrurfKCyhNk3OxmHou0EvUPVOGsQK3KXi1UovCAxVSpKKC1H mFCnC1O5VFLAkBHe9ZohGfz55Uw5IWP6r01ze9mc9zrk227E/mJjSxzmNFsesTx5QjkX +vaqXEHItGzYrURjhbequKBtmmkAk0TRuz7JHwai0RpxLTbfoYhD5V7rKUOoNDInN3qL 716Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MfNLrW8iqBQsbuSrzEGTeEHosap22UQqZ1+HJnuvOZs=; b=Xyw//m4LtLpkePzxYYtC/XdYGOu912vY3XOk3okgOprIJjeiKAmuWdHyysbi0nM8RV xDu1QfPk0L79TS6pkcisO1ZUaNDdKqWMeW2SW3M6srXyRxee2mE4iTEGRgUcE8aRC+CM OBVMEFKy7ImDnVwKBhsq/PGPTwOT7IEusCnFvXrNmeGKphwawJ+ytDlUoCWejq1eqxzS SCPquYwJYE3YcW7gchzE/VmNb7XXKIguUdmOo3Z8kh/rm1Fv4sauTleJ6jp7Hrozti/N uJ0GtqgkNAX5vMKgsDwSR40G1X2dxoBLmb2Sah3MCRcG4jW8GwO1ApclZdYZmDcL/jfy VwsA== X-Gm-Message-State: AOAM530og8TlRPe98h2dtQfP4u1Dped4to2+Ex1D/vP2SLbWRYmeH8SS T3BRQm75mnD1hkjdfFvhcNY= X-Google-Smtp-Source: ABdhPJyKJxCG9uzYGHkhlq0B9udz0uguZq3XOLfLkG21gqs/9U6IeV19ya/fQAQw9pot9mkWFVXXPg== X-Received: by 2002:a19:5206:0:b0:42a:709f:29aa with SMTP id m6-20020a195206000000b0042a709f29aamr11026196lfb.189.1645378324115; Sun, 20 Feb 2022 09:32:04 -0800 (PST) Received: from localhost.localdomain (109-252-138-165.dynamic.spd-mgts.ru. [109.252.138.165]) by smtp.gmail.com with ESMTPSA id f8sm880490ljk.97.2022.02.20.09.32.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 20 Feb 2022 09:32:03 -0800 (PST) From: Dmitry Osipenko To: Thierry Reding , Jonathan Hunter , Mauro Carvalho Chehab , Hans Verkuil , Nicolas Dufresne , Ezequiel Garcia , Greg Kroah-Hartman Cc: linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 1/8] media: v4l2-ctrls: Add new V4L2_H264_DECODE_PARAM_FLAG_P/BFRAME flags Date: Sun, 20 Feb 2022 20:29:43 +0300 Message-Id: <20220220172950.3401-2-digetx@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220220172950.3401-1-digetx@gmail.com> References: <20220220172950.3401-1-digetx@gmail.com> Precedence: bulk X-Mailing-List: linux-staging@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add new V4L2_H264_DECODE_PARAM_FLAG_P/BFRAME flags that are needed by NVIDIA Tegra video decoder. Userspace will have to set these flags in accordance to the type of a decoded frame. Reviewed-by: Nicolas Dufresne Signed-off-by: Dmitry Osipenko --- .../userspace-api/media/v4l/ext-ctrls-codec-stateless.rst | 6 ++++++ include/uapi/linux/v4l2-controls.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst b/Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst index cc080c4257d0..f87584ad90ba 100644 --- a/Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst +++ b/Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst @@ -616,6 +616,12 @@ Stateless Codec Control ID * - ``V4L2_H264_DECODE_PARAM_FLAG_BOTTOM_FIELD`` - 0x00000004 - + * - ``V4L2_H264_DECODE_PARAM_FLAG_PFRAME`` + - 0x00000008 + - + * - ``V4L2_H264_DECODE_PARAM_FLAG_BFRAME`` + - 0x00000010 + - .. raw:: latex diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h index c8e0f84d204d..e3d48d571062 100644 --- a/include/uapi/linux/v4l2-controls.h +++ b/include/uapi/linux/v4l2-controls.h @@ -1563,6 +1563,8 @@ struct v4l2_h264_dpb_entry { #define V4L2_H264_DECODE_PARAM_FLAG_IDR_PIC 0x01 #define V4L2_H264_DECODE_PARAM_FLAG_FIELD_PIC 0x02 #define V4L2_H264_DECODE_PARAM_FLAG_BOTTOM_FIELD 0x04 +#define V4L2_H264_DECODE_PARAM_FLAG_PFRAME 0x08 +#define V4L2_H264_DECODE_PARAM_FLAG_BFRAME 0x10 #define V4L2_CID_STATELESS_H264_DECODE_PARAMS (V4L2_CID_CODEC_STATELESS_BASE + 7) /** -- 2.34.1