From patchwork Tue Sep 29 16:39: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: 9866 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 09513C3B5B for ; Tue, 29 Sep 2020 16:40:11 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9DC6C621F1; Tue, 29 Sep 2020 18:40:10 +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="QhEAzrnn"; dkim-atps=neutral Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id D45FA60BD3 for ; Tue, 29 Sep 2020 18:40:07 +0200 (CEST) Received: by mail-wr1-x444.google.com with SMTP id m6so6196498wrn.0 for ; Tue, 29 Sep 2020 09:40:07 -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=/leO2kIIvDQeQWWXnaPMsfkqUL7f0ewPekfAGiaUNTY=; b=QhEAzrnnP4gu0fwDhxVL9lHwwPJk0OxUD4LSFbYOxGT22M1N2XX7/YlQjdN5eskzYd unVRlr6UVRUrNZso0QB6apJF7LByvIkzNmx3/EVwmpsn1GikD3l/5AITL0c54ijm5eyT MM0WQWhXcFxDM1TVRQi5u7aGY3ohDSCVfFta2dnzl/qGenuRBSKoh5eqfCkaiMlmb2Mi PKALkGYRRdE8znWiO0lZ+XunFVruiTKSmE5dStv7mewmqDlqPNfX70ovXGc5x8MZYHKu i+bSnHBLWLHcdTcKRo2twAwwXQ7+NezmV+2ehKQtFWLMwMtAN6DD1MgonkoRtszf0fks 0WIg== 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=/leO2kIIvDQeQWWXnaPMsfkqUL7f0ewPekfAGiaUNTY=; b=WMGgGwNHvmpfp52bbRp3QEb1i5jz/BuF5OpS9A10bnUJbb0ZsqdrUqFOcBZ1sXvprl 59fqpwQ6bLxPQ9KMyhlxqiHrE9t8dO/OD804qJNRUSI28c3so/p2GBGlWvPEggyWeQAs r7pr7qty8tU/W4Kk2ouiQXAHVbvKM3P5pHpqqwjuUPOaiIThDcf//U0qOlNhl7WTU56n re4i/nyRKB1UwirIIT8krrhc3gKyoWqtx+SoTyqwW3h0ihi/tG3Q9gQRQ+76sn5eR8K0 V2StdbsFFZRsuNGjIyqTTZF0w89DNiTtUkSGsYIGupx6jQxCULYenKs5og/oZtzrzJ1I 2Cag== X-Gm-Message-State: AOAM531PZBJSvH4q95LTi0g4jnRm3R92Av3PW8AJWsYJ41jzQQbtnTca 8Qy1idbORoo1a0sau3nH+2ckIOYxqQfcpQ== X-Google-Smtp-Source: ABdhPJwvYguy3r+pSwjXRuuTpG7nKcBq5squGv1opK5FB4sjAVhbNgFpvY/0ITdadXejUlT+uaLgdA== X-Received: by 2002:adf:ec92:: with SMTP id z18mr5692652wrn.53.1601397607396; Tue, 29 Sep 2020 09:40:07 -0700 (PDT) Received: from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72]) by smtp.gmail.com with ESMTPSA id q12sm6977393wrs.48.2020.09.29.09.40.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 09:40:06 -0700 (PDT) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Tue, 29 Sep 2020 17:39:57 +0100 Message-Id: <20200929164000.15429-4-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200929164000.15429-1-david.plowman@raspberrypi.com> References: <20200929164000.15429-1-david.plowman@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v3 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 Reviewed-by: Kieran Bingham --- src/libcamera/control_ids.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml index 3560d4a8..46a4bd94 100644 --- a/src/libcamera/control_ids.yaml +++ b/src/libcamera/control_ids.yaml @@ -273,4 +273,16 @@ controls: order in an array of 9 floating point values. size: [3x3] + + - IspCrop: + type: Rectangle + description: | + Sets the image portion that will be scaled up to form the + whole of the final output image. The selection rectangle is + expressed in pixel units and defined relatively to the size + of the frame described by the SensorOutputSize property. + + This control can be used to implement digital zoom. + + \sa properties::SensorOutputSize ...