From patchwork Mon Oct 26 17:19:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Plowman X-Patchwork-Id: 10257 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 D987BBDB13 for ; Mon, 26 Oct 2020 17:19:18 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id E703E6203F; Mon, 26 Oct 2020 18:19:17 +0100 (CET) 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="Lqhj0d8k"; 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 D0D4660361 for ; Mon, 26 Oct 2020 18:19:16 +0100 (CET) Received: by mail-wr1-x444.google.com with SMTP id j7so13529281wrt.9 for ; Mon, 26 Oct 2020 10:19:16 -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=iP5cVs05jjf8HaSDi6lKi+9ku2xFcrV5am2f7dn/CrU=; b=Lqhj0d8krBIW0JjZPlnccN5STOSYa7uWRiUz4Vs/3bOoJzzBz2T0GO4FPd0vZ12kA7 EaPMS7QdNH70Fqn7LFyf8aVVXvdhFGETS1Z5/vf01GGmxQBvKwVEFUOSTQYaJ3NPGe24 0LR6XBaiycz+KOv+PwsgZHaRbUe6gCjn+pBS+tA1hnfgXM1C8ohiF0tsCIpjZTpgtr5m 2lNs6SLYkSSAZ5FAokm8NKa5zvcnfRMD1JHZ61/SGzNFUthjtlfQlg6xLINHTOJ9nQDo 5OAL4WrrK24S5XCo8rqVIioBy8a2JJ7yT8+Kj+dKTMWl+tLk/pD9XLnwTc5RMF6sNgpi +Lcw== 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=iP5cVs05jjf8HaSDi6lKi+9ku2xFcrV5am2f7dn/CrU=; b=mSdcucfKTKZwG3NIeOH0anCfcNP9oIrNcuCWNW0ljkpiBctN8Mc6g2KUW5OcsPvdxR e4+nzIqNca+dJiillTF1s8J1iU9gZNSkehbyR/Y3vh2Z04+3wsKnSOoURKYxaAViIBBs 6Nh6P4s0o64PjIZIcrBJyFfxRy/jsdtRMnD6ROi+TI3RCDsoeY0sUmNmbOPfve9pxQKs q2ffaSKu4I5mmXig60DUGHIDGx10fVpqrQ6BTfTw9hTIy/tE++rP/f9thVdz4rfYFrRX QuqGTtL4N3ANw7f/g6ab2d8T3w6Wtf4lh8XgVhSCHEtko9BZfk/kPKD+ddBQ25dBXKq1 g0Rw== X-Gm-Message-State: AOAM533a5DDvwH6f7oiF2MxT2fQieun2Kd/U88ZCMg1Ve3hTGIKnGXLO k3BBW2sZgzcMU7HUaZWe9vKffxbzmKtmqg== X-Google-Smtp-Source: ABdhPJyzi7zlahXcw23lxtwuf/bDwffLzQUj+TXd5pt4XGJiYd2uOOVTnzR4GGAlyAXLZd/P/Y0g4Q== X-Received: by 2002:adf:e54b:: with SMTP id z11mr20020400wrm.128.1603732756288; Mon, 26 Oct 2020 10:19:16 -0700 (PDT) Received: from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72]) by smtp.gmail.com with ESMTPSA id o63sm20955295wmo.2.2020.10.26.10.19.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 10:19:15 -0700 (PDT) From: David Plowman To: libcamera-devel@lists.libcamera.org Date: Mon, 26 Oct 2020 17:19:03 +0000 Message-Id: <20201026171908.21463-2-david.plowman@raspberrypi.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20201026171908.21463-1-david.plowman@raspberrypi.com> References: <20201026171908.21463-1-david.plowman@raspberrypi.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v6 1/6] libcamera: Add ScalerCrop 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 ScalerCrop control selects how much of the sensor's active pixel area will be scaled to form the final output image. It can be used to implement digital zoom. Signed-off-by: David Plowman Reviewed-by: Laurent Pinchart --- src/libcamera/control_ids.yaml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml index 4c415545..b4f76570 100644 --- a/src/libcamera/control_ids.yaml +++ b/src/libcamera/control_ids.yaml @@ -284,4 +284,17 @@ controls: order in an array of 9 floating point values. size: [3x3] + + - ScalerCrop: + type: Rectangle + description: | + Sets the image portion that will be scaled to form the whole of + the final output image. The (x,y) location of this rectangle is + relative to the PixelArrayActiveArea that is being used. The units + remain native sensor pixels, even if the sensor is being used in + a binning or skipping mode. + + This control is only present when the pipeline supports scaling. Its + maximum valid value is given by the properties::ScalerCropMaximum + property, and the two can be used to implement digital zoom. ...