Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp944476pxb; Wed, 6 Apr 2022 05:01:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyx+fQRxH34ge7RjEHE0D20JIfFtqDKwzH9XgpH+SOIag/xj08mkPF8KQYBWlrYjHiDS1WC X-Received: by 2002:a63:475c:0:b0:381:ef1e:7099 with SMTP id w28-20020a63475c000000b00381ef1e7099mr6797884pgk.225.1649246488677; Wed, 06 Apr 2022 05:01:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649246488; cv=none; d=google.com; s=arc-20160816; b=hwe/qncUmI6qq0f6ZyhZ5byqiNySl5MJ/Uef9DcYzyYS10nIe457HXr/RZLNvj12HZ +e8twXomAMA6behJUlPYCCzLmgQchzxsTeZLVgaNoYS1fFKV/cyPiMmMDOlXsLSk7xrF TtdQ+62N2SLO2lqB5kGi1cy9sCQNri1PSbnsgakmjxOp+scN+cZSJOxsz3sjyLxIJZnM uZFPDC00N+LLigWZsO3tM8bLlwRvPaCTHCS6vgY+2x9IyONvl0qq9teiFW8myxrL83f1 +eY2IBnPSgnYcVY2b6giFZ7N7ifEBu29S5aYTFl7URGcsvkPfFBgvWpd/oSOVjBfKJRV ZAug== 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=xDsiltBOo2taoK0/n8hf3b1B24lSvfFIWLugkhxMP10=; b=CJMI3cdPQpzniZEgcOeJrCPamcLSC9c3xEm+Gqi8AWZxrkaZ5jlC5eKp5Z5GkIfiyu 2kDjAt4ta9/EsVQd4qvDqIWNeZhcKcIQas/7v728BePzjsEpt9H55n5Z+OpnIesGOyyM JbF6ofEGTMnE3qSXmh/xopGsnn94VDGfcTpQ3rM6j4rweSwSfyRiNENb8h+u/jtvqD7y IJGB6RfRq3TqgKzlTtAOKhVqZpPzgGNvYLIRteIQGbCM30cVPj31M+3gPvf1UDZkteVt mIxJuTs/bhjzPGhOKQ+NoWPJGfFlT7glS8FoZNBKSt+mYW52n8ASLKi6hKODdZKMQxgh qaSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="mskQK/nH"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id mu18-20020a17090b389200b001c6efe3d954si5362706pjb.30.2022.04.06.05.01.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:01:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b="mskQK/nH"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 236AC584C65; Wed, 6 Apr 2022 03:24:56 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1849048AbiDFCc6 (ORCPT + 99 others); Tue, 5 Apr 2022 22:32:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53210 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442140AbiDEWTG (ORCPT ); Tue, 5 Apr 2022 18:19:06 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [46.235.227.227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 85DC270F55; Tue, 5 Apr 2022 13:44:43 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nicolas) with ESMTPSA id 94D421F441AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1649191482; bh=p/CNjMUurjHMQVHA7WJucC4cA80P6l/szurKGX62Y7M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mskQK/nH0vpAgfYoAirxVigo8RjEmumNogd53c4rEWQscB5g8VBotwTkA/ulPot+U R5eQSMXE02jbBrqzZS1FIhAcTGnK3i0EopGf6x/tx/wTwEH3ptl6YBspGtdfo7YCxS uUGbpNbUxwRbxzPXqa+7u5evZOsRIeIYoUTemb7SN4BoQg02v/AGEY1SfcEuJZdxKl WlTCPLsfU8/D3jmDu2RfzOTkc7XBvllTNvaawWSNGbAsUYTeWgbQ08do4H+9FQGUWm WrOhqKtB/2VXlPcoeOoEA3FIV2yspu48EngJCIgQaIhSibp+cVlVdpCZzGZHRHlrTx 5gVj6LzmTTLjw== From: Nicolas Dufresne To: Mauro Carvalho Chehab Cc: kernel@collabora.com, linux-kernel@vger.kernel.org, Sebastian Fricke , linux-media@vger.kernel.org Subject: [PATCH v3 01/24] media: doc: Document dual use of H.264 pic_num/frame_num Date: Tue, 5 Apr 2022 16:44:02 -0400 Message-Id: <20220405204426.259074-2-nicolas.dufresne@collabora.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220405204426.259074-1-nicolas.dufresne@collabora.com> References: <20220405204426.259074-1-nicolas.dufresne@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=no 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 These two fields need documentation as they have dual meaning. It is also confusing since pic_num is a derived value from frame_num, so this should help application developers. If we ever need to make a V2 of this API, I would suggest to remove pic_num entirely. Signed-off-by: Nicolas Dufresne Reviewed-by: Sebastian Fricke --- .../media/v4l/ext-ctrls-codec-stateless.rst | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 6541e4c32b26..49f89b702068 100644 --- a/Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst +++ b/Documentation/userspace-api/media/v4l/ext-ctrls-codec-stateless.rst @@ -649,10 +649,16 @@ Stateless Codec Control ID :c:type:`timeval` in struct :c:type:`v4l2_buffer` to a __u64. * - __u32 - ``pic_num`` - - + - For short term references, this should match the derived value PicNum + (8-28) and for long term references it should match the derived value + LongTermPicNum (8-29). Note that pic_num is the same as FrameNumWrap + for frame decoding. * - __u16 - ``frame_num`` - - + - For short term references, this should match the frame_num value from + the slice header syntax (the driver will wrap the value if neeeded). For + long term references, this should be set to the value of + long_term_frame_idx described in the dec_ref_pic_marking() syntax. * - __u8 - ``fields`` - Specifies how the DPB entry is referenced. See :ref:`Reference Fields ` -- 2.34.1