From patchwork Fri Oct 23 10:21:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 10214 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id E76D0C3D3C for ; Fri, 23 Oct 2020 10:22:06 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id AF5EA6198C; Fri, 23 Oct 2020 12:22:06 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=raspberrypi.com header.i=@raspberrypi.com header.b="e4RggprU"; dkim-atps=neutral Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id C98BD615D2 for ; Fri, 23 Oct 2020 12:22:04 +0200 (CEST) Received: by mail-wr1-x442.google.com with SMTP id y12so1196549wrp.6 for ; Fri, 23 Oct 2020 03:22:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raspberrypi.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=mGxepSLU5YIYBTtezZ9zAh+/Fk0684f7g+bHtJyie0I=; b=e4RggprU9lKsAXtZ/GzyrikxVb8poNlvYUSJuU0VfH2dlgOSaWJAtdrJLv1Jx8UBS2 1BDFMjfiOl4VRD6mFpIPKRfkLTdsZUoca262DSe/tR0C6OFHKLlQj+bAUWnaW1KAsmb3 qdOEAvR1FV4MdkgrHdTwS9pXPqGSioZ6TMYEHc4d3JLO9v2qnkJNepIzLSO+rlgvRVmz 5HP7CUmMhMwCQJgzwO+2XML+MFcg2V83dyUmfb5iAbfQCv15bSm6xjKa8Wx1tASQYujf FIPTbXgg6/2XpUsDNg+gtomYwDI6DrFehx+kPG4TnU7rLIJDveIPbbFatKmTjpBiOiRP 62hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=mGxepSLU5YIYBTtezZ9zAh+/Fk0684f7g+bHtJyie0I=; b=FeQZaObZ0zO5kcp3i+AvCctzGjxVa2VGJ2oynx4I3XuwhIRpCDNCCygBQmhx5jQg+q ZWxG3pxafFftVYFUoRdoL9TgMWNpncF1fBCPjOYSDiqFMHNJz5L15wGHFtQZ8I4L6dWe /a02REhF0O3CWFv/hKFlRoP/wz1NugP/eaBaO0jBonsAy8E2Fn73jpl7jCTD3vWOZ8FS Y6R+z975GGxrSqqUYWOoYYsOO7lfswGDcqDQtFtuDOlQLluTmoOUGRw6CxOoCMT5mr4z EAZHDtsSvFkHL7bK97AYNd0qbTgt79ILRMwQiCBnNRvtUAPpqBBilhX79OTSrvilhQpN tErQ== X-Gm-Message-State: AOAM531n1Dl6IdRHYctr5R6frp0lOUFm5kY3dtiw6jJT8A+5xXmrMlF+ 9/gNm9aMTYmFpt6g2fhMWi76O1zIxZWSVg== X-Google-Smtp-Source: ABdhPJyZF50zeVFbyDoeCKKFqaAIv9FElOfDObeZt3CRImNcjdyxpdkoYbDHTxTIEHgKVDa2jPd59w== X-Received: by 2002:adf:f212:: with SMTP id p18mr1905731wro.386.1603448524254; Fri, 23 Oct 2020 03:22:04 -0700 (PDT) Received: from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72]) by smtp.gmail.com with ESMTPSA id r128sm2477831wma.20.2020.10.23.03.22.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Oct 2020 03:22:03 -0700 (PDT) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Fri, 23 Oct 2020 11:21:55 +0100 Message-Id: <20201023102159.26274-2-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201023102159.26274-1-david.plowman@raspberrypi.com> References: <20201023102159.26274-1-david.plowman@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v5 1/5] libcamera: Add ScalerCrop control X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The ScalerCrop control selects how much of the sensor's output image will be scaled to form the final output image. It can be used to implement digital zoom. Signed-off-by: David Plowman Reviewed-by: Laurent Pinchart --- src/libcamera/control_ids.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml index 4c415545..1c1f6699 100644 --- a/src/libcamera/control_ids.yaml +++ b/src/libcamera/control_ids.yaml @@ -284,4 +284,17 @@ controls: order in an array of 9 floating point values. size: [3x3] + + - ScalerCrop: + type: Rectangle + description: | + Sets the image portion that will be scaled to form the whole of + the final output image. The (x,y) location of this rectangle is + relative to the PixelArrayActiveArea that is being used. The units + remain native sensor pixels, even if the sensor is being used in + a binning or skipping mode. + + This control is only present when the pipeline supports it. Its + maximum valid value is given by the properties::ScalerCropMaximum + property, and the two can be used to implement digital zoom. ...