From patchwork Fri Sep 25 08:51:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 9824 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 8A880C3B5C for ; Fri, 25 Sep 2020 08:51:37 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 3BD3763042; Fri, 25 Sep 2020 10:51:37 +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="svm42jGy"; 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 D06FF62FD8 for ; Fri, 25 Sep 2020 10:51:34 +0200 (CEST) Received: by mail-wr1-x444.google.com with SMTP id a17so2676494wrn.6 for ; Fri, 25 Sep 2020 01:51:34 -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=svm42jGyCrEQqoaNR1wsXJJzbHk/wu5O6N/7mwZ3u9eEz4fvZytdBxw4Ka7siuvGQo qv+oso0FLSMlFOS8hov09ftdUM62nsB0s8ZLr4HAT6ie8IC8gltUdRHz2XLto83fEUk/ EgizASVtMf/vdKMGIgU1djDmiozAnD4dEFIqMdKvmCl91zBpxD2FpaNfQ3YODTOvqQ7E 8M+A889qIEs6MhBGYdUrxcG7Q8Wi6CZUdpsoYWzwdfAFUJh/mNf/BCoJ1FZ2Brs6WE9R GsttzpZsLf1tIVAUKo7DOM7sQCFmg268g2IP3kkJKxccR7XW7ekTQRPewaWRFsED92KR dBLQ== 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=XI4P3ReWviSmnGLP+9ld5wMpRjPcwERAJ1DzhMo09elGB7bb4hRZl24k8yqItoCISZ IIWqrkIdPwQy3nRP+PetEQE5ScPWEXJ8XrA19NWkoXff8Q6I5/f+F6o3TcUcq3ni/tsh b3eu7cAU+/vKW21nUM01Z4WBAsp85JywU0izqF7afpyOTDUUtDB1vokG/DBDT0PDOosb VebkQ2yrLLPaKvO7rRVmd7i8K1Tys2DBVy1tYnJJibsnVYvrJGbBp+DABZn/7HiYOmBR 93UIc2aDMv1HsGmYy/rnCjF/wU00ZQPoEN11EnNNc+mSbukeL6iO2+zt1QTs3q+Mcy38 BF0Q== X-Gm-Message-State: AOAM531tm3n4uMEm9kSHu4psaR2VQxSmjzQfvsNC3sTFt0hFOMR5PmVl t8mQaNhZXHcp14H0xYrWqsV3vqcKfhQeBA== X-Google-Smtp-Source: ABdhPJwTHugPt2j749zxnx7KZwN6BjTQ25ZG3GhCfAXKlF6MeNwW/mz2/psfL5L+OcWGfq7CX5iQhQ== X-Received: by 2002:adf:f190:: with SMTP id h16mr3336325wro.202.1601023894347; Fri, 25 Sep 2020 01:51:34 -0700 (PDT) Received: from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72]) by smtp.gmail.com with ESMTPSA id n4sm2001383wrp.61.2020.09.25.01.51.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Sep 2020 01:51:33 -0700 (PDT) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Fri, 25 Sep 2020 09:51:24 +0100 Message-Id: <20200925085127.17214-4-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200925085127.17214-1-david.plowman@raspberrypi.com> References: <20200925085127.17214-1-david.plowman@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 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. ...