Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp886067imm; Fri, 14 Sep 2018 07:49:21 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZmkPWcyFP9lCQ7/jl18yzQBuUFFE4+KLEPN4uRWPiaBfa4PDD7w5AiaxY6sruTGHKv+vgn X-Received: by 2002:a62:20d8:: with SMTP id m85-v6mr12955805pfj.74.1536936561139; Fri, 14 Sep 2018 07:49:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536936561; cv=none; d=google.com; s=arc-20160816; b=SIcFSa250aCMdf6lm1tEGSNTC+nzoDbVNUgNEoMDNAWobC0l2WEyaoJF5Zp1urUMrq lf7kR2vWmt4vdlB4hkLYTz+1AS6o56Pf0rPce/8k/ocqH4O/d+CzHbCUjYjZcbBNz4bj to5xyQaAXnhpHIYox0LhHcZ2Xw6pZrHeT3R8jF9rrwTnm/XRWp3TEzUfOak4zzFZVBak KTbg5JNxRbD185ykPHAbzoxNQbnn2TRmLQch5Idi92XiWQ/YlqEQc4d7cuSqBaUuAno+ Gfft9fqySHCbk1rqArCgNdFhgMUJskxh0gKaLHmnVRlVl5OD9gYh/RKzCTK+ToV2NJCl nxHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:organization:message-id:date:subject:cc:to :from:dkim-signature; bh=YoHH1s9SApOLi4TJzm6XJXnGY9/stKL13yysTxZ6LmM=; b=D6rWSSAe/RPgWeoSpvenxUkhhUTaLc7Gc/dm2FZEu4aAcDPQABxL7JKP+NMh8bnqLL bUfAZmDGAc/hJlwrf3GQhU/4WNBk5jbNiqN8eKQA2P/cCfu+S6mw4h6cVSffnSienp3j ZK8kpksjO1YyuWxvK8O/Q727x9m2TpeoJFMow5y1/sdsoGlmG+l25tiCu16f0sfDDSqb Ie0wzOanhvY9x91lKrdkdhemRr9AAzhFc8YfYP7LytzRqTO7FdkRugZPDSFPQSmAzyF+ /IoCMg0c5UaWUUqF1zTkRJwym5PeT0Ugz4y0Bt8eiPNFk41WZGLr/gRkRPI41ZOOW2vE SE1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=HOX9PlMt; 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 85-v6si7760980pgh.381.2018.09.14.07.49.00; Fri, 14 Sep 2018 07:49:21 -0700 (PDT) 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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=HOX9PlMt; 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 S1728166AbeINUD3 (ORCPT + 99 others); Fri, 14 Sep 2018 16:03:29 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:36860 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727872AbeINUD3 (ORCPT ); Fri, 14 Sep 2018 16:03:29 -0400 Received: from avalon.localnet (unknown [IPv6:2a02:a03f:44f6:3500:d929:375b:d608:66c7]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 067FBCE; Fri, 14 Sep 2018 16:48:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1536936517; bh=I3jIGTFykQBjIvpKZbrw1vomp4uqIDLnN4ToDHg/VRg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HOX9PlMt9EmQnYIzUD/n6tnzx7wP/V+W3dsyioccOQv0jlfoxeLPVS7ydjdgkKHEr 60+wHTStw20cUJh7MKSzCkzTQ9h4E+ZQ0cjBaqCS4jQfOvDYdXUMFFYY7CUZ2uKoPq RMV+Oy/Y7E+Ed7TR3mQa/029VvK4BWdJCNBZTMrc= From: Laurent Pinchart To: Kieran Bingham Cc: mchehab@kernel.org, linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Kieran Bingham Subject: Re: [PATCH v2 2/2] media: vsp1: Document max_width restriction on UDS Date: Fri, 14 Sep 2018 17:48:50 +0300 Message-ID: <7357198.ccT2EWLa9U@avalon> Organization: Ideas on Board Oy In-Reply-To: <20180914142652.30484-2-kieran.bingham+renesas@ideasonboard.com> References: <20180914142652.30484-1-kieran.bingham+renesas@ideasonboard.com> <20180914142652.30484-2-kieran.bingham+renesas@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Kieran, Thank you for the patch. On Friday, 14 September 2018 17:26:52 EEST Kieran Bingham wrote: > The UDS is currently restricted based on a partition size of 256 pixels. > Document the actual restrictions, but don't increase the implementation. > > The extended partition algorithm may later choose to utilise a larger > partition size to support overlapping partitions which will improve the > quality of the output images. > > Signed-off-by: Kieran Bingham Reviewed-by: Laurent Pinchart > --- > drivers/media/platform/vsp1/vsp1_uds.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/drivers/media/platform/vsp1/vsp1_uds.c > b/drivers/media/platform/vsp1/vsp1_uds.c index 75c613050151..e8340de85813 > 100644 > --- a/drivers/media/platform/vsp1/vsp1_uds.c > +++ b/drivers/media/platform/vsp1/vsp1_uds.c > @@ -342,6 +342,14 @@ static unsigned int uds_max_width(struct vsp1_entity > *entity, UDS_PAD_SOURCE); > hscale = output->width / input->width; > > + /* > + * The maximum width of the UDS is 304 pixels. These are input pixels > + * in the event of up-scaling, and output pixels in the event of > + * downscaling. > + * > + * To support overlapping parition windows we clamp at units of 256 and > + * the remaining pixels are reserved. > + */ > if (hscale <= 2) > return 256; > else if (hscale <= 4) -- Regards, Laurent Pinchart