From patchwork Mon Sep 7 16:44:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 9513 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 65100BDB1C for ; Mon, 7 Sep 2020 16:45:00 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 2F1E762B90; Mon, 7 Sep 2020 18:45:00 +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="SdNYWQw/"; 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 6607A60372 for ; Mon, 7 Sep 2020 18:44:57 +0200 (CEST) Received: by mail-wr1-x441.google.com with SMTP id z1so16479083wrt.3 for ; Mon, 07 Sep 2020 09:44:57 -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=cS3PuvAp3Llsuq3WC0FESFzYKEwZc+lcHlaZ68hADTM=; b=SdNYWQw/n80vbBEPOqU/tT6CVH21UZqRmWGJd4Nxddar2NLYEnboa9itKQ597+S5pT 6KPcPjmfh9oKJYfD6oFlgs9ZcqcU+5dzwY8cZHIllt5qocs8EIbsFC5wg/KpA3B4aL2Y Nv5q72IQ/iyakjexhf1foHWSuVyCbO3qOW9alI+Z1RcN0qeXXsZNnmLsTH1UnYvkszAV ji1UVNbC+mCoZZodkk1IXP3ImBBJK/1QL2Fabgsqo6FC3Js13GBFewN+YLXLn2QQkMkd nTpx1+mDdDnrNLoOjXu3OikwJOPjz/EX0eABA/TxotgyrITlQgmLUsAj7GxxP+Ozd1aN hV4Q== 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=cS3PuvAp3Llsuq3WC0FESFzYKEwZc+lcHlaZ68hADTM=; b=jwzbGcEB6KWt/5whcpniHkSgVR4GAjNPlQ/kXAJCD2D0+OwPG38xxiYRRUpsOvnPFe mKaQAC3uEn7kq9Kz9wVIqeA7LAbffDRhSOrCRJXnObd4AP61VgTdXRj4ATbymZ3IrraP QbjIEaY/T09/bS8l5Qoy4L0m5VUuQ+VlihxPi8gdVumEfwXOry25K3gNhbGPWGGpGAP2 xuVrHHT2pilpObdQpHVr25pffInnx/CD0DX0liBi7RFkeuNgp0tjOISQ+6wlrNpTd+GD NuXVywR6RogFXbASX2d3YnseL1ceLLDNp1c+0B8FDOk6LLV517+DxH1qHk89p/W5IwGJ gQbw== X-Gm-Message-State: AOAM533cv5S8w58ynLtjagXR1NeEOOt1FhzqhNko4FeKDtZe3gcbdDbs D6y/SVedzX1bOSzA7lnovySwWiOy/I1yRw== X-Google-Smtp-Source: ABdhPJyOcbZr11BFyk3rQPmcmWE1C4AnEOPL1dgZc8CuIvXmhml1YVry5YNhmFUJZ4gTq6QhbLtkoQ== X-Received: by 2002:adf:e7ce:: with SMTP id e14mr21718783wrn.43.1599497096942; Mon, 07 Sep 2020 09:44:56 -0700 (PDT) Received: from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72]) by smtp.gmail.com with ESMTPSA id v3sm27707033wmh.6.2020.09.07.09.44.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Sep 2020 09:44:56 -0700 (PDT) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Mon, 7 Sep 2020 17:44:48 +0100 Message-Id: <20200907164450.13082-3-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200907164450.13082-1-david.plowman@raspberrypi.com> References: <20200907164450.13082-1-david.plowman@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [RFC PATCH 2/4] libcamera: Add SensorCrop 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 SensorCrop 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. --- 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..cebaa25 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] + + - SensorCrop: + 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. ...