From patchwork Tue Sep 29 16:39: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: 9864 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 87EEFC3B5B for ; Tue, 29 Sep 2020 16:40:09 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 55C4C621FC; Tue, 29 Sep 2020 18:40:09 +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="VgVJ1x/w"; 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 3405B60BD3 for ; Tue, 29 Sep 2020 18:40:06 +0200 (CEST) Received: by mail-wr1-x444.google.com with SMTP id k15so6137541wrn.10 for ; Tue, 29 Sep 2020 09:40:06 -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=rK6TJchWCNdtebZ+uvmNEKNtyULDOcjn0Q2lyYeXKa4=; b=VgVJ1x/w5rLBjaMKOqacTu0WOh4HJayHQkdlwmwnx7K0BBlH2+xcW9Ce8fvYsr2Yyb wDpk/cbVrFse/FfS8l6VxGxPIOdj7YhXKU87R9o7Gg0cMxUn2UPQfB8p3pSUm5XgvbXa Flmm0muYiFnVsdma97VUeGHD+jANFZ+aiBGMocsY/Xw/Wok/Hv8dMdXjrXu2ZnGm7pXt 6rpU5f9XMCuPd3u64lmkBbPe/QwNgHIcgWS5J55lqhBqsmWF27Em494t5aBelWClrfBT YDjUZ9jrIFPMxWXK9dHKVY5UA/+hnSO80fuSfalrAuZ/Sk9Q+nX9eCHT6PNCSJkniw9y iTDQ== 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=rK6TJchWCNdtebZ+uvmNEKNtyULDOcjn0Q2lyYeXKa4=; b=pMUcTmGPWKSchDXLlzK2VanN/4zNfuss2MHiBdWkE/INz0uyA7b8sHUqVLSeP5jj0R sm4Lavbn2B8uZJtmJz9du1zZ7c+txtIMxMWKHlEI0svlyOsBzo6ucxohng9GbOelVVLO ukMmRLYGs1TwCEiK671dwkbIdQ8dCdaIRJJuYH3YUuo8V2bm7CykHbRGR5hPz/Qt/nCY QQ2SlCvlGfkzxJCRNj/PEgYDPBG8KCuWTGsRt4UdJJ88BkBCtOIvBcWMttS3gjH3/qzt q0lIBXP17jXRgY2PId0IHQ2oZMbrb7Sxq6dQw4puLXH4NO9XfeLvHnqhhlj0oSBgDexs pGPQ== X-Gm-Message-State: AOAM532pyn/TYiRnLhkg07OavyluO1eToFbRQ8ik95P/2TGPp05/EyPs N5d31JRCFK0JLQ1j2GkgjtG03sDgRLM9EA== X-Google-Smtp-Source: ABdhPJxhBUXxeKnClCdnKAsEeX8FZ0k0Ci9EIKURXP7H/4RarCXD3Ncqpbi6uVqnNvTA7NZzZ+/uDg== X-Received: by 2002:a5d:4f82:: with SMTP id d2mr5277783wru.65.1601397605542; Tue, 29 Sep 2020 09:40:05 -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.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Sep 2020 09:40:04 -0700 (PDT) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Tue, 29 Sep 2020 17:39:55 +0100 Message-Id: <20200929164000.15429-2-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 1/6] libcamera: Add SensorOutputSize property 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 SensorOutputSize camera property reports the image size that the next step in processing after the sensor and CSI-2 receiver - usually the ISP - will see. It will normally change when a new camera mode is selected, and can be used to implement digital zoom. Signed-off-by: David Plowman Reviewed-by: Jacopo Mondi Reviewed-by: Kieran Bingham --- src/libcamera/property_ids.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/libcamera/property_ids.yaml b/src/libcamera/property_ids.yaml index 74ad0195..8011b88c 100644 --- a/src/libcamera/property_ids.yaml +++ b/src/libcamera/property_ids.yaml @@ -640,4 +640,23 @@ controls: \todo Rename this property to ActiveAreas once we will have property categories (i.e. Properties::PixelArray::ActiveAreas) + - SensorOutputSize: + type: Size + description: | + The size, in pixels, of the image being used to produce the + desired output streams. The image size might correspond to the + size of the frames produced by the image sensor but would also + take into account additional cropping (or even re-scaling) + performed by the CSI-2 receiver to adjust the sensor frame + size to conform to the output image sizes and aspect ratios. + The property is meaningful only after the Camera has been + successfully configured and its value changes whenever a new + configuration is applied. It can be used to implement digital + zoom. + + \sa controls::ISPCrop + + \todo Move this property to CameraConfiguration once the + feature is made available + ...