Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp676921imu; Tue, 27 Nov 2018 04:51:09 -0800 (PST) X-Google-Smtp-Source: AJdET5c4kUDtKbpIpXVpzcdBBGd0Me+8c5mgdZzoJ4hhMetEcwB2AqkXhvxs7zsrdPaeRc6jclYH X-Received: by 2002:a62:83ce:: with SMTP id h197mr32504573pfe.187.1543323068998; Tue, 27 Nov 2018 04:51:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543323068; cv=none; d=google.com; s=arc-20160816; b=xNQ+Myz09SoiyRJGRvpv0UEBGrZhlRmQKJZJvGsbJFtgJgo83hNDY5vZi3JAis+keZ 6smLE7Ub2FMVnOLqUYePKUe9fvHjk0Vjy3l+nfBsyTmpVDM9V8rOH8++9SPgIyF3UpHS yzWkk5vVqk851jGxLg6aDOnb3qvVegX3KMdvBaJNxeEW3/PDMnNEtnZYykAsqw+C6PA2 c1mCDar004E2LC3tNnPQa8oPowWUPVRyBDTFwUPAqOjUbFCbf8rtTE8IWX3RasMGLU3P QrKk+CD2fUh3ovBKSlWHIyrEyTQTuVCXfprXQBzT8ffOLuePIYeOMO5jUGcli9hfaWhM gmew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=frUHuNFyLTGytGwChbOcI/5jG+rudlAcNhgk7Hnnpg8=; b=nv5FXEy7hvtg5j+mjtn7VcDRS9g9Fg6euUAgKAZ8XyqRm1Sdsw8UW3iIlAXB/h9l/0 J6RzAv6tRDxssix5pDKOkohqOdMDlIaOEK/FRAj2tMpVc6/YTBQVqUCYUMeVO2zw6iiF m34OfcDEzLl5ABYflA9uvFvXJRY8jIwcJeSpIUeZIETT83ZcvvVT7JdybFMPyoyi3Hs8 CJywKG7MDciUfUP9yBv6z8nmUOmfAsiOrJljmI/wQoz5cr8V+/2jJhBhfY8AKDjZhKXP kJM7h8AHDcYUfvULT0QvI3l/AUpxMGRf8lZyuMoF9vEx/Qztw9XBBQwodKoZDixceUHB QusQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a16si3433536pls.146.2018.11.27.04.50.53; Tue, 27 Nov 2018 04:51:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729886AbeK0Tz5 (ORCPT + 99 others); Tue, 27 Nov 2018 14:55:57 -0500 Received: from mail.bootlin.com ([62.4.15.54]:58079 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729732AbeK0Tz5 (ORCPT ); Tue, 27 Nov 2018 14:55:57 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id 04B2420D31; Tue, 27 Nov 2018 09:58:44 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.2 Received: from localhost (aaubervilliers-681-1-94-205.w90-88.abo.wanadoo.fr [90.88.35.205]) by mail.bootlin.com (Postfix) with ESMTPSA id C6F07207AD; Tue, 27 Nov 2018 09:58:33 +0100 (CET) Date: Tue, 27 Nov 2018 09:58:33 +0100 From: Maxime Ripard To: Paul Kocialkowski Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Maarten Lankhorst , Sean Paul , David Airlie , Chen-Yu Tsai , Thomas Petazzoni , linux-sunxi@googlegroups.com, Daniel Vetter Subject: Re: [PATCH v2 25/43] drm/sun4i: frontend: Apply format sub-sampling to CH1 dimensions Message-ID: <20181127085833.b6jhe5npgsvl2g5f@flea> References: <20181123092515.2511-1-paul.kocialkowski@bootlin.com> <20181123092515.2511-26-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ivmx4o7crxm34pav" Content-Disposition: inline In-Reply-To: <20181123092515.2511-26-paul.kocialkowski@bootlin.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ivmx4o7crxm34pav Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 23, 2018 at 10:24:57AM +0100, Paul Kocialkowski wrote: > The frontend comes with two "channels", that can be configured > independently. When used in YUV mode, the first channel (CH0) represents > the luminance component while the second channel (CH1) represents the > chrominance. In RGB mode, both have to be configured the same way. >=20 > Use variables (with the YUV terminology) for each channel's > dimensions, calculating the chroma dimensions from the luma dimensions > and the sub-sampling factors from the format description. >=20 > Since the configured size only has pixel precision, the fractional > fixed-point part of the source size is dropped for both components to > ensure that the scaling factors are accurate. >=20 > Signed-off-by: Paul Kocialkowski Applied, thanks! Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --ivmx4o7crxm34pav Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCW/0HOQAKCRDj7w1vZxhR xXwzAP9MshjHGeL2mhhR8gWpe0Vu1v4edxievCysQnF5opH4lwD9HmJ1c5BOVmIH nWqkIYj6QHXTU1fYUdj+czi2SA3NwQo= =Kk8n -----END PGP SIGNATURE----- --ivmx4o7crxm34pav--