Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1945968ybg; Thu, 30 Jul 2020 06:50:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlVsT6yLtg/N+D6O3JKwOzTx9PAzuI5o80hl8hcKRxHORMZGr9FZQ0lFlB8/1YVwAy/KY+ X-Received: by 2002:a17:906:a1c7:: with SMTP id bx7mr2683802ejb.388.1596117026123; Thu, 30 Jul 2020 06:50:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596117026; cv=none; d=google.com; s=arc-20160816; b=W45GIKcxiT2npMA/cPw1Pp1CIMyKDJDLBBNH8vDYmLiZyYLh/GIHGbMOc52Oa4KOzJ smpJfCwebKedQtcR5Dr1lnsgP4kPumt4Fw98jbPkmMG4Y/WEGmbKXU6tM3l8WC1vdjzh tUbwLp+jMtskxo89djmz/e5HWbfwfthbDHE9HFm3bdqnjrGxoBhajjfWqS1cc7NiflKm g/0/rmHb5y3eXxp+Sh+R5BtZz7JX4Zs+hZvuh7OWbWSCQcQNg3HWvxRG7wyIMlhRLKL1 cJ1irxk/xZbLQE5KNor+8COTzztnfF9q3CK/ia2bsQx+6yBT8yF9+hFhJ4DwNfum7abC 9kqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:organization :references:in-reply-to:date:cc:to:reply-to:from:subject:message-id; bh=hWUP8pwq/+c5QszxduAtdu3cuo0+GtCeB+5J3FzkddY=; b=SQyGkEx+XhrCVxhDQKv5QTuPQYf0Btzg/g2oGy8YLHhOJjpdE/pZjveNyOFE54Q6by LpBz5xvzNfDYtHJM84JqXULNLmp7Kdp/YBAL5vxLhk5YKyqC2V0ir7geFuaVRa0OLqih VtbdlW6epa5e0G9jPtKbJ8w9kN1CdDLFng0HDI0kHGkALQ5Rh/SRG3Vq9MwviJSYyJfq Hcx7kSLWEP5LOL0UzqlhgbvhI3Ma8qVoLDloSwzM5A/dS5dRQGRjoTEtzS5Tu+hZBMqn oQ3fG9SJZhWKtX8bEVxu/VVleDrbBgIiQJWEsIdgpgU/1qdhqn4fgAYOe+eUErFyDNqj cf4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z8si3238890ejm.420.2020.07.30.06.50.04; Thu, 30 Jul 2020 06:50:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728403AbgG3NsI (ORCPT + 99 others); Thu, 30 Jul 2020 09:48:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726281AbgG3NsH (ORCPT ); Thu, 30 Jul 2020 09:48:07 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86646C061574; Thu, 30 Jul 2020 06:48:07 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nicolas) with ESMTPSA id 652012948B5 Message-ID: <74dbf137d8838967c6e1433463b2af708be4da03.camel@collabora.com> Subject: Re: [PATCH 03/10] media: uapi: h264: Split prediction weight parameters From: Nicolas Dufresne Reply-To: Nicolas Dufresne To: Alexandre Courbot , Ezequiel Garcia Cc: Linux Media Mailing List , LKML , Tomasz Figa , kernel@collabora.com, Jonas Karlman , Hans Verkuil , Jeffrey Kardatzke , Philipp Zabel , Maxime Ripard , Paul Kocialkowski Date: Thu, 30 Jul 2020 09:48:01 -0400 In-Reply-To: References: <20200715202233.185680-1-ezequiel@collabora.com> <20200715202233.185680-4-ezequiel@collabora.com> Organization: Collabora Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-wiNEtf151ipqvNyTRQIL" User-Agent: Evolution 3.36.3 (3.36.3-1.fc32) MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-wiNEtf151ipqvNyTRQIL Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le samedi 25 juillet 2020 =C3=A0 22:30 +0900, Alexandre Courbot a =C3=A9cri= t : > On Thu, Jul 16, 2020 at 5:23 AM Ezequiel Garcia = wrote: > > The prediction weight parameters are only required under > > certain conditions, which depend on slice header parameters. > >=20 > > The slice header syntax specifies that the prediction > > weight table is present if: > >=20 > > ((weighted_pred_flag && (slice_type =3D=3D P || slice_type =3D=3D SP)) = || \ > > (weighted_bipred_idc =3D=3D 1 && slice_type =3D=3D B)) >=20 > This is a pretty important bit - how about mentioning in the documentatio= n when > this new control is expected to be present, so both drivers and > userspace submit it > or omit it in a consistent manner? This is copy paste from the spec. We can add a reference to the syntax chapter in the spec that express exactly this if condition (syntax is express in pseudo code). The bitstream works exactly the same. Note that it's not a fault to provide the control even if not needed, drivers will kindly ignore it. Reference: 7.3.3 Slice header syntax Nicolas --=-wiNEtf151ipqvNyTRQIL Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSScpfJiL+hb5vvd45xUwItrAaoHAUCXyLPkQAKCRBxUwItrAao HDL8AKCtSvcMrSUmQXK5ljp++0GzWttLYwCfclTwQk9ZR4oVP+PZbA3QNpTHNOA= =K+qX -----END PGP SIGNATURE----- --=-wiNEtf151ipqvNyTRQIL--