From patchwork Wed Oct 13 01:26:28 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 14111 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 E9469BDC71 for ; Wed, 13 Oct 2021 01:26:50 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4F00C68F53; Wed, 13 Oct 2021 03:26:50 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="UbfCA/80"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 8B4616012B for ; Wed, 13 Oct 2021 03:26:48 +0200 (CEST) Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id F054D291; Wed, 13 Oct 2021 03:26:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1634088408; bh=lnjnjMNA/GBKZSnzC1ZXokpOu+S9uCTKBA4FdUHTqC0=; h=From:To:Cc:Subject:Date:From; b=UbfCA/80Fkk3KKLzNfX8K0tVao8oycw9oPwSjNlEU/FCIZz++8grE5MqrZfleiWrc qROYPVk1fRs2vsm7A/1jEQsuicE5WmTeVXNOd2pPKF/88OpLpM6OvKmbZum9cWSw1G hJS/lRUFSuf3+AS8MvJbEyOj4cjWGG57XXLajLng= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Wed, 13 Oct 2021 04:26:28 +0300 Message-Id: <20211013012630.18877-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] libcamera: Add new helpers to the Size class 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" Hello, This is a small drive-by series that adds new helpers to the Size class and makes use of them in the IPU3 pipeline handler. Jacopo, this has minor conflicts with your frame durations series, I have no issue rebasing this one on top if you'd like to merge your first. Laurent Pinchart (2): libcamera: geometry: Add Size members to grown or shrink by a margin libcamera: pipeline: ipu3: Use new Size grownBy() and shrunkBy() helpers include/libcamera/geometry.h | 30 +++++++++++++++++ src/libcamera/geometry.cpp | 42 ++++++++++++++++++++++++ src/libcamera/pipeline/ipu3/ipu3.cpp | 15 ++++----- test/geometry.cpp | 48 +++++++++++++++++++++++++--- 4 files changed, 121 insertions(+), 14 deletions(-)