Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3834161pxb; Fri, 11 Feb 2022 08:44:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqsJORVort5AsA7/sBHQVys34XgsigSXVyHiGeIWE3I5t/SzhDGplG4xUnzXL3zsd8H8Ss X-Received: by 2002:a17:906:8055:: with SMTP id x21mr2186744ejw.402.1644597873293; Fri, 11 Feb 2022 08:44:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644597873; cv=none; d=google.com; s=arc-20160816; b=hrrJUEHhHrVnWz3CdUYWapa/h02g4OKt+qWHpFRbYbpxjvEKC4jHbqXX2P0v9mLpao EGjWJd5YaQWH1T1OcdVKCAIdHUeF065AxSdFw09YU85ROMdZoqh2NsNwMOZvd8HLTuyu 9wVpjT2EtOerMXCvGvLRUTgAfsNCBVnjMdKR0XDaFvtzS5j5GM0/qAsV5aTUjczudX0g 2y9cwRJG7ttjhZIb9EbvVaBzwKCL8cm3XWic3YIdjFDYQi9tH+9UJVTLoWQBG+YBONOC sVgtfY0fFxQqczdqEe4p5orikFGTmhr926P3zjyhCyi5MQkP67DtoOzlVgy6WFyNMZ1j 3yww== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature; bh=C8RcQS3Onc34aY4WsNPDQx96xSdhXMEMcF2iWP8p8/s=; b=cwppizs0seDm3jaPb286HrM5E9udbbG5WMI4ktQTvSeDU5oaPf2tXLuuZ7w3El50L9 mFJcDEOl7vatFoyuB3zANQdXRGn8zPjzQ/Z5UWje4OMQGEdVWCTE8+rxeuOACyStRf5Q Tviamd4UvlsL55MRULI55MQA+uGJS/43gKp28oiuYfNjgPXUxrF4Zl3vhqy3Pn9fwLLd U69tn+Nb+Psf56vUchBj7jUmrlupm+pqyLTqvY73BXAwZWVD6O75d+qJmW3c03h02bps 7Y8jthTCalNVCN4ACotmZB8GNjVvywGfeNmryuQfoiQAsaKNvammwUbIU7qHZObSdQGG ZhWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ndufresne-ca.20210112.gappssmtp.com header.s=20210112 header.b="4GhGoUc/"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i22si18862059ejw.760.2022.02.11.08.44.07; Fri, 11 Feb 2022 08:44:33 -0800 (PST) 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=@ndufresne-ca.20210112.gappssmtp.com header.s=20210112 header.b="4GhGoUc/"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350544AbiBKN3i (ORCPT + 99 others); Fri, 11 Feb 2022 08:29:38 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:53008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350530AbiBKN3h (ORCPT ); Fri, 11 Feb 2022 08:29:37 -0500 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CCB691BF for ; Fri, 11 Feb 2022 05:29:36 -0800 (PST) Received: by mail-qk1-x736.google.com with SMTP id b22so8220557qkk.12 for ; Fri, 11 Feb 2022 05:29:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ndufresne-ca.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=C8RcQS3Onc34aY4WsNPDQx96xSdhXMEMcF2iWP8p8/s=; b=4GhGoUc/c11sseBRYQgnSGHSukX7xuuq//IPBzW+/F3ULsPiwfAXs/iPbJ2EpckRc6 mzAS19V+zo/+vlD/Ole7qsvK6uHUe5Vlddpkz20LDNIbKPchqKPErG445oXCSeUEJ3nR Y93rF0TEX3mMjgsypXRO4FCc/MMX+bOfzy09qeAXdVv1ZGOMobYHWLpcQg3HYvO6/TMq Xx9DPu5l8RnrOKl5oFNxmeie0IHYsXiQ6ePF8GCOi5Zubof5UemFP4bWtt2lRpngB7NN 3iqHa+dEEBnh9Pg/DFZ8iNRZC4bTy7fQ1A6ojRaT7PlRvaioiTe2YQdvZa2OFzCZswit fv7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=C8RcQS3Onc34aY4WsNPDQx96xSdhXMEMcF2iWP8p8/s=; b=SiNiQ2BM9BoIMysVanrRTwKMyRMspGYRklrCHYmsXM4VDjDOiAWqYcq/G7mAfqEr89 MX1ToSL0IrkoYu1NRKmaJOvxjWocd3BsMz/YzoY9xYyw2k2qxO4Sgv0L5F7Jvx3ZDLRc 4fs49EnLZs9Mj7cm7AtFDdHDMXjbpvLJpFYJcZ6+YmO1kKsx/QvOHi6fJXkC7RILstx5 7K865v6QHWlwUZTlyJSBMODlQGFPAUDVa8DhbcmuBzHs8dEdyWknq+VAIXXjDGsYbAvp NSHcE/vgh3s+MrSX8Hipa3mQ3xhb/9SwqNF+0cKC5huetH1U3OWVDeas5ipwshFgOd3w VsTg== X-Gm-Message-State: AOAM532u4zkV5/eLiUlyCuwjpvoLuB6jhvsDDDdtvrUMfg+eDRVG7o18 tLbiWhHmiyay4Aas3Vcmw5DwFg== X-Received: by 2002:a05:620a:ced:: with SMTP id c13mr693431qkj.636.1644586175987; Fri, 11 Feb 2022 05:29:35 -0800 (PST) Received: from nicolas-tpx395.localdomain (173-246-12-168.qc.cable.ebox.net. [173.246.12.168]) by smtp.gmail.com with ESMTPSA id h6sm11294073qkk.14.2022.02.11.05.29.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Feb 2022 05:29:35 -0800 (PST) Message-ID: Subject: Re: [PATCH v3 1/4] media: v4l2-ctrls: Add new V4L2_H264_DECODE_PARAM_FLAG_P/BFRAME flags From: Nicolas Dufresne To: Dmitry Osipenko , Thierry Reding , Jonathan Hunter , Mauro Carvalho Chehab , Hans Verkuil , Ezequiel Garcia Cc: linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org Date: Fri, 11 Feb 2022 08:29:33 -0500 In-Reply-To: <20220207141937.13089-2-digetx@gmail.com> References: <20220207141937.13089-1-digetx@gmail.com> <20220207141937.13089-2-digetx@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.42.3 (3.42.3-1.fc35) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, 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 Le lundi 07 février 2022 à 17:19 +0300, Dmitry Osipenko a écrit : > 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. > > Signed-off-by: Dmitry Osipenko > --- Can you share here (out of commit) a userland implementation that was used to demonstrate the new API ? It does not matter which project (GStreamer, FFMPEG, Chromium, your_test_progtram). Should be fairly straightforward. This is just to be transparent. > .../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) > /** Please update the doc too, see: Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst: