Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1825239ybk; Mon, 11 May 2020 05:19:07 -0700 (PDT) X-Google-Smtp-Source: APiQypJCdJKunoWS8eyWB3P/uVC8tGkI/ekvR6xvh/IfgJi2f5FUj0nVVvMcc2Es621HzgDK3Ias X-Received: by 2002:a17:906:3952:: with SMTP id g18mr13347386eje.191.1589199547596; Mon, 11 May 2020 05:19:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589199547; cv=none; d=google.com; s=arc-20160816; b=ine8BY3i4Ir3QjrG4ziHnm1qZJBX878RlrysmUIX3Qz4U9au9ThCAOgpI9jVn+F1+W kZ/kdsaXfwPmnCu+ECtS2TfN9vNX/bl6AUOZv4PypVxHYhAkNv3VglG0IpipvmoFF3kR zkSf2r1rYCsGtuUL0T8FuQQ7tatLwh9j82eVSE95r3I3kpJxjZdUXUjyg05DMcbIam3C z3JqKe5Odf2jWl8GIANE/Sxfa7M43WcE+wUTaLEc2+tW3tUTEaXajy7g8dlfo9CFET5z 801WGCJHH+ZvQEYehXJB0aEkrG8LgICp8iYkspQteru5oMmgJutGm1dXKw4FNBaHOCX9 JR8A== 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=TBG5dwv+d8qdadHUVlGmgfFMtpGvgdKefJNGus6jWh8=; b=Qa/z9azyfBuIiHM/oX6FCJgkE6LaOeGfA939x8nU4fv81wfHBRdAcKDkZTUSrcZyPW av3LGRw9K66Uum12MdasE521RIhdHznKElSrCYnO0XkalO1eQ0qXXh05N83ZTBZA31/6 AgUX0tKge0G+NR7XMtOPWYHyrIcVQBapZtEdZpLN4Y03mGAWJHZ7+c6HaylZQa75yxM8 E+Bdv9kcK+0Ud9DKTww5Px782FNcitDLdWMFH8ISvHDX2laFzXdMHoFEXsPSLM8ZEATU zW4vmKCVnGJZPJbLAjYFe3wa21G6r26mqF06/GWg+DLLEcY/zfPrP0Z3c/bAXbf4JNJa eisw== 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 e8si6081705ejd.76.2020.05.11.05.18.43; Mon, 11 May 2020 05:19:07 -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 S1729563AbgEKMRO (ORCPT + 99 others); Mon, 11 May 2020 08:17:14 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:49796 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728531AbgEKMRO (ORCPT ); Mon, 11 May 2020 08:17:14 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: nicolas) with ESMTPSA id E08E42A0FD7 Message-ID: <49a15300a5db8b4c61115c4a89eac1762dc3f31a.camel@collabora.com> Subject: Re: [PATCH v3 2/3] media: uapi: Add VP9 stateless decoder controls From: Nicolas Dufresne Reply-To: Nicolas Dufresne To: Hans Verkuil , Ezequiel Garcia , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Tomasz Figa , kernel@collabora.com, Jonas Karlman , Heiko Stuebner , Alexandre Courbot , Jeffrey Kardatzke , gustavo.padovan@collabora.com, Boris Brezillon Date: Mon, 11 May 2020 08:17:06 -0400 In-Reply-To: <7846cb19-c5e0-4f95-c361-cf78d2c1b16a@xs4all.nl> References: <20200505134110.3435-1-ezequiel@collabora.com> <20200505134110.3435-3-ezequiel@collabora.com> <6459bd9f-20f6-9910-8d45-04870a19019d@xs4all.nl> <7846cb19-c5e0-4f95-c361-cf78d2c1b16a@xs4all.nl> Organization: Collabora Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-7FJdwtw3aqO6RvgErWDP" User-Agent: Evolution 3.36.2 (3.36.2-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 --=-7FJdwtw3aqO6RvgErWDP Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le vendredi 08 mai 2020 =C3=A0 15:16 +0200, Hans Verkuil a =C3=A9crit : > > I think this comes directly from the spec. The Rockchip VDEC doesn't > > seem to use it. > > Do you think we can drop it from here, and rely on the V4L2 colorspace > > passed in the format negotiation? >=20 >=20 > That would be preferred, yes. Otherwise you would have two places where y= ou can > define colorspaces, and that's confusing. This is indeed redundant with the color information in the format. In VP8/9 there is only 1 header for everything, so it's harder to figure- out what to filter. While in H.264/HEVC this information is usually set an an extension header. Though this do re-open the discussion about SPS in H.264/HEVC. In there you will find the coded size and the crop window and the sub-sampling. I don't remember exactly what was the conclusion, but I think it was kept to allow allow bitstream reconstruction. But it will effectively overlap directly (or indirectly) with some V4L2 generic API. regards, Nicolas --=-7FJdwtw3aqO6RvgErWDP 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+hb5vvd45xUwItrAaoHAUCXrlCQgAKCRBxUwItrAao HBt3AJ9qVuHoo7obOay42xsXt2h91zXANwCfTanxrgZ1TNarsZjy64md+ngxdW4= =eeld -----END PGP SIGNATURE----- --=-7FJdwtw3aqO6RvgErWDP--