From patchwork Tue Sep 22 10:03:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 9701 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 B7C7BBF01C for ; Tue, 22 Sep 2020 10:04:12 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 84B9E62FD3; Tue, 22 Sep 2020 12:04:12 +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="jM6T3HlB"; dkim-atps=neutral Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A4B3D62FD7 for ; Tue, 22 Sep 2020 12:04:09 +0200 (CEST) Received: by mail-wr1-x441.google.com with SMTP id e16so16398582wrm.2 for ; Tue, 22 Sep 2020 03:04:09 -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=AXKbuxsOAsGCCzcgdzcbXq7E8buv4RVCzCrQy06ZqSo=; b=jM6T3HlBuBxiUvGeJayh1XqDKGsd5TOU+qmvnRFBAA08FZ2C9QvlD1wZ6JxC3/CCiU qaUPrIpAtuBoPKC5sB2giExJtxuG/V1YABfz66R9R7fFkkJG7101+X85ftTjpfN4MFjl nU6A8nbDuEDW5nfNzDdzZfYId2zF65hrpZ0E5xRD0ANO7RzFiZ48xRLafXb/+jPRU187 HBA1kV4Akn16cs+5u4HXWQ7DUoS/jevUPubVpUDeepCcG53PmMWcvZDygsgfIUuxbZKc N+lfZbRBdQv5XM7TFCl10DgNR71yAV6DFOkaI9VzOuROtsIXUZwc7Xt4NgtnZVDS+ZEs Ndvw== 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=AXKbuxsOAsGCCzcgdzcbXq7E8buv4RVCzCrQy06ZqSo=; b=Bbp2PW+g2+yZdnUzxhHL6VJNAjDL+wGg4L3WGme5sEFRd/FB5X0DtfTl5UkRcOtBqe /dE3qMCKWu19XKbjCnQkjI73Aoq9GKIwtl7pzAmnfgui94WBY7iJuFbLq5jk0gL8YGK1 BfPq/chIFBcBmkKIj7xvxLIJLpLeRyAbsF9GqK4Q+WYP1DHR07q/0ELaKwEQeJ9TplT9 ETwtVc8CSbhdeHmqA8wJ0VuAp7z62Et23ygWEjCcklXDXxI2m+lj14cFIOI9WFPo7m31 LYUGD/sY+NlxMni2bwrUXKm0Ha0mn2in3Aj1gjGItvBSf6BB6a6lYUyuGEynUzywXZt/ AKSg== X-Gm-Message-State: AOAM532hYP97NPC5dvA52M8B+KKmgYoTMFTrUmX/O0yMhQY2EHk5/qBS Maei8gOZlz5LOSrMZARnaanc8s4UqlqkLw== X-Google-Smtp-Source: ABdhPJwpffMZgPiMgSkUiLmnN+FxnzqACrAAGmjd3tVlYdEmB3yPGXsFQgeAlYap3ueSEAUxOBbssA== X-Received: by 2002:adf:e690:: with SMTP id r16mr4372949wrm.15.1600769049207; Tue, 22 Sep 2020 03:04:09 -0700 (PDT) Received: from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72]) by smtp.gmail.com with ESMTPSA id g14sm26369595wrv.25.2020.09.22.03.04.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2020 03:04:08 -0700 (PDT) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Tue, 22 Sep 2020 11:03:57 +0100 Message-Id: <20200922100400.30766-4-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200922100400.30766-1-david.plowman@raspberrypi.com> References: <20200922100400.30766-1-david.plowman@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 3/6] libcamera: Add IspCrop 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 IspCrop control selects how much of the sensor's output image will be scaled to form the output image. It can be used to implement digital zoom. Signed-off-by: David Plowman --- src/libcamera/control_ids.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml index 3560d4a..a6a73c8 100644 --- a/src/libcamera/control_ids.yaml +++ b/src/libcamera/control_ids.yaml @@ -273,4 +273,13 @@ controls: order in an array of 9 floating point values. size: [3x3] + + - IspCrop: + type: Rectangle + description: | + Sets the portion of the full sensor image, in pixels, that will be + scaled up to form the whole of the final output image. This control + can be used to implement digital zoom. The size of the full sensor + image within which an application can crop is available from the + SensorOutputSize property. ...