From patchwork Fri Sep 25 08:51:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 9822 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 7AC63C3B5E for ; Fri, 25 Sep 2020 08:51:34 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 141FF6303A; Fri, 25 Sep 2020 10:51:34 +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="cBGGR0Ln"; dkim-atps=neutral Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 3BAB160576 for ; Fri, 25 Sep 2020 10:51:33 +0200 (CEST) Received: by mail-wr1-x442.google.com with SMTP id g4so2680371wrs.5 for ; Fri, 25 Sep 2020 01:51:33 -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=XUoWlq3axycFFStrgLqMBP3hphWhqff4qmdHXOg0LAY=; b=cBGGR0Ln2xGrO4mXYRfLiFj1BKPZZtraAcP0s+xUsqa58an/CD+DkNgFzEvKjZfgo/ zXFJwy0Zg32V6ydFvzAP2qii7AVV8HkqB7sEhlh5MtGsC0ceovtoBAalpnoW18kiHyuH EpNywJPkOBvZZ6+sCx/3d+hwwpX1p+lJGbef7D0O1zxBRXG8ZGsqYkifkRmax1eMuD5h nw4WmGEXWBDBXXO6uDkXNSbXA7RaBUnuMSyyzC9NVuNxsmE4Oxcx1Mym9ML3sEb0FPTB 0k5bvQFVgXxcDoJ3EY3638g10KcPWpZgvF+H7HqQIS8DOdp1/q02Zy8GNOb9cBHP8DCP IsBQ== 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=XUoWlq3axycFFStrgLqMBP3hphWhqff4qmdHXOg0LAY=; b=JB0exunvIuKZqTzp/ynAOmsEQIOx1Gn1gbXlMBYN9oR23gnldCLKnbsgB/1oj2hZeM au9dux2lkh4NdmM2IsVEaJY/pUDqPjUp6mW2OC4nv802gu+1ccVbWKMprGOF38XQp3hw wN125CySgFxgy6lmWZmNWwinL0725pJKFZXuVUYeAcOojyYwcmG7K6wwMS6l/dNE6oT4 nAIudAMAnq9b43qoJFWZ9KNvHZ/sA9sMAqCjEQSS5p0kXcZTfJ36c9iy8lpbG3yZozNo UeV81Q0QpDfY6wVkPmlSxbQ6DSAp4xH48Qvm3oIC+4gNdf41T1DnYLBkftuS75JNUMlh q+mA== X-Gm-Message-State: AOAM533KQWGDRefO68iqbmUdbtGzczT9R0X+ZLhTgw7uUtqgssdSUyB4 SDXEiJNuOdHImIb5KIwE8c6BQnsKy8KKYw== X-Google-Smtp-Source: ABdhPJxwMOuoxFDMbkvOBSViCsejL6m+sisBkG43F08yf+RAEM/zk7XxPOa5ahAj6D9DOeISpBOk8A== X-Received: by 2002:adf:ec47:: with SMTP id w7mr3511178wrn.175.1601023892692; Fri, 25 Sep 2020 01:51:32 -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.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Sep 2020 01:51:32 -0700 (PDT) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Fri, 25 Sep 2020 09:51:22 +0100 Message-Id: <20200925085127.17214-2-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 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 --- 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 74ad019..8011b88 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 + ...