Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp861866imm; Fri, 14 Sep 2018 07:27:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY+vtSElzu73aztOBxiR7xfH3TNGU3LhluIAnW+e2i/GfOpBiNauhKThmv/jLknKAwoolOU X-Received: by 2002:a63:2c01:: with SMTP id s1-v6mr10341133pgs.367.1536935244615; Fri, 14 Sep 2018 07:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536935244; cv=none; d=google.com; s=arc-20160816; b=y//moVLL/y1c6+iABMQChOneBEzTa1wu/QCE43jI6Txw2AYtjsjFTkGGbJkpv1HKiH UYKM3cKkkxGoaRUraeOxszTzw4lvy8Xa5DAgjD60/HNwqsZP6mjAJ0qXPqdhaV0lECCf tMGrBjbmpBGDGyHJDEDliFWsXf5SO14TbXFEvVa/pAHwtzww1z0Jj8eAT0XfghTqRLwq 6KGYcxeT/afrbxjlgHRyK38xcEQmVimg0AIp8WNLJeTlEtfh8GHoDbyQCUQs/uop6jlB utTqpWcSXRuLW1APjCLijPBrxqqsIstguD3NXN3Uo0QzmTprlS1fO0JuX4DuHWdS/TCE zqlw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=oMuvvq71+l4jChz29QdeR1tWZQQ92OEc/UdDunLk7cY=; b=Jzr37tWtcBiNHSHSFIPLrLGIZYxz8rrwH0msvl0o1ZiQ6us9T3lSv3c+RmciQErUnr 5eYlfsLevdtxxJ5wjHbn/kFny46odwi/hE8Klj5pmAG0ttv5T64zew2U/8LmgHc+9ydk qST8XRxx5D57dpJZIQJzrewF8E2XyLOLRsmLdzURuRCjuR8qkPuE3BCskl15NvvLI1lb mEB3csekAks1dG8GJm9u7zLjiFM1GJ3+E+qnGlFEFX97sccqy43GblnaREQaZodwdTYa RVl9xanX+2NQ558gUwDmagAlHOWACx1ZuxgxSLfy1ojEdw1VaL5ydafnfivyejnXeFlh BZdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b="ZXF/CEvT"; 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 w4-v6si7108175pgj.566.2018.09.14.07.27.09; Fri, 14 Sep 2018 07:27:24 -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="ZXF/CEvT"; 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 S1728122AbeINTln (ORCPT + 99 others); Fri, 14 Sep 2018 15:41:43 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:36676 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727628AbeINTln (ORCPT ); Fri, 14 Sep 2018 15:41:43 -0400 Received: from localhost.localdomain (cpc89242-aztw30-2-0-cust488.18-1.cable.virginm.net [86.31.129.233]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 4E906B91; Fri, 14 Sep 2018 16:26:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1536935216; bh=EmhaZQSNCJXPbO457Siv39Ut3dbpHKuL0RExoSK48sc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZXF/CEvTKzQtJ/wHgWzbgrlmo1AQJAHQpF0SFf/nf+81FHSBIa720pd99X5/VKuCG ciHyNGUC8VuKYFNZ3vYMyJTjR3KP3/5z37XTBvd2mVa4MyFq/SXYwnjFnFeM6A3xoX rFZScsUAATT1Q3djDp69OnH585vFQxmX/8UjgZLE= From: Kieran Bingham To: Laurent Pinchart , mchehab@kernel.org Cc: linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Kieran Bingham , Kieran Bingham Subject: [PATCH v2 2/2] media: vsp1: Document max_width restriction on UDS Date: Fri, 14 Sep 2018 15:26:52 +0100 Message-Id: <20180914142652.30484-2-kieran.bingham+renesas@ideasonboard.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180914142652.30484-1-kieran.bingham+renesas@ideasonboard.com> References: <20180914142652.30484-1-kieran.bingham+renesas@ideasonboard.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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) -- 2.17.1