From patchwork Tue Sep 22 10:03: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: 9699 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 25030BF01C for ; Tue, 22 Sep 2020 10:04:09 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id B845162FD5; Tue, 22 Sep 2020 12:04:08 +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="tdNuATfM"; dkim-atps=neutral Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id EFB6660367 for ; Tue, 22 Sep 2020 12:04:07 +0200 (CEST) Received: by mail-wm1-x329.google.com with SMTP id q9so2691382wmj.2 for ; Tue, 22 Sep 2020 03:04: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=LigCNjkZO94leaY9q1uFql7UckMWWfQGwZmh1nkglmo=; b=tdNuATfM2e0I9zvrLivMiCZxSHWExLgBNnaaydB16jFI6mmDx/g3eFrQ5zihHn/7bp RfiMKh/joKNPGWHyRXKf07hHfQKxiWG/88ZZzX7Z9Fg1PKC8iqxOGpFRpBZ/DCJ5Mrd4 kucA+bFkeQ7dtm7K7xHSdbd76cj9wxfDWll+c+I4mVPiX5t4aXb8t0JL6fTqvKRzvKWA hih7tTUCdQwF1ZDhZcFEjt/GBKqI9Sm4g4w23f0MZqZNJm4mmq/0lq7caRMXZXJ1bez8 YPMNJQzgr3pl2ywS79ohCDnD7nx6vP61qDoUk9KwnA9avqEqsIqCQ/Jz7ASKyhc0Aliq QfEg== 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=LigCNjkZO94leaY9q1uFql7UckMWWfQGwZmh1nkglmo=; b=fOEyvmUE8CaVs/7lUkFdckSnP09maXDuZRbw4A5JTINphNam+UCga1vGHy0XZuFJMY NLqZw3vdG98BvystGacrranpb3ZlN2drXl3aq/0INh/ohZ7AC/mskYolVEYgJWrul9KD BngOdbN5nh7YL4hvOZB9WDzKJuush9mnohAj4uyCewuJkDkSYqPFLLFktMCpJiW2oFOL bhPccWuPGJ7hjInugQSOEI5EfUWAAKZkmAuIb7DoAKbCb6CkQVCubeduH5nUix97sbEe 0A4jby9v0kQ9ul/LbEr/ztOMKnAVaDRmRmlmpyELP6GWcCy521zgnk/hfLog1bn1NSw9 2flQ== X-Gm-Message-State: AOAM530rPMvDIwZIjYITNKyheo3FWmZpKxfePepousIuwfUKDbqrrUVm h+EQL4x6tmNwd4KD4TG05bbu2bVHaK0Wbw== X-Google-Smtp-Source: ABdhPJxg+Ryvs0ZK0fptNcXABsLvmrfAiD9Aidnj76CQWq936pK7ejD6FPXimircaglcJq2E9m3bLw== X-Received: by 2002:a05:600c:2109:: with SMTP id u9mr102276wml.147.1600769047361; Tue, 22 Sep 2020 03:04:07 -0700 (PDT) Received: from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72]) by smtp.gmail.com with ESMTPSA id g14sm26369595wrv.25.2020.09.22.03.04.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Sep 2020 03:04:06 -0700 (PDT) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Tue, 22 Sep 2020 11:03:55 +0100 Message-Id: <20200922100400.30766-2-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200922100400.30766-1-david.plowman@raspberrypi.com> References: <20200922100400.30766-1-david.plowman@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 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 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/libcamera/property_ids.yaml b/src/libcamera/property_ids.yaml index 74ad019..c185549 100644 --- a/src/libcamera/property_ids.yaml +++ b/src/libcamera/property_ids.yaml @@ -640,4 +640,16 @@ 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. + Note that this property changes with every newly selected + camera mode. It can be used to implement digital zoom. + ...