From patchwork Thu Dec 31 15:53:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sebastian Fricke X-Patchwork-Id: 10797 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 C0664C0F1A for ; Thu, 31 Dec 2020 15:54:36 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8C2BE615B4; Thu, 31 Dec 2020 16:54:36 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="bGl1bYKb"; dkim-atps=neutral Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id BB7796031D for ; Thu, 31 Dec 2020 16:54:34 +0100 (CET) Received: by mail-wm1-x32d.google.com with SMTP id a6so7572641wmc.2 for ; Thu, 31 Dec 2020 07:54:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=JeKcmpfqab8zYgc9B7pPMg9/TDryKELzcuN4CWwnkkc=; b=bGl1bYKb6E/1Xz6guYvWt1eEjU2ZDKibgZ2ATtado99IZtafW7ypcSrG136mYQMHPq oYWjGUFFuks3/aevRgql0DJDmCgZaPvC5T3rmW+lLe+0M2tYP1AehRW7BqjaQ9WX+jHG AltExtjliYRJc3QisSqwMevicB/42jQdISynHGvoGZhFOWh2yMqkQpCMGr1rbXjeRZ7C xiw2u38d8delI411Me81OcKCHDhAg/AlwN7SkbySXH6Gftfq1xJikMswM92UrGdVBsJM dih0O0wMdQ7DLKK80FPH04+Kn3M+On7NWWDFZhDWlQlnFjhbyYIoQUZBm9lNyJbNQFLJ 9sMA== 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=JeKcmpfqab8zYgc9B7pPMg9/TDryKELzcuN4CWwnkkc=; b=HiYV/dW7lMXC6vmLvakVy8pXZ/lFlJW2zk5r6/6pCTf7Eo49UTt71lr5OwZndn4cz6 aWN5xG7s4GM/ti1zHe7r6SqItYYnD7PmdxiOt0ph6gBD+wb7xT2yjKihZm3AdCe4vbLb jX0vY77xuyO8I+sMdT0fffEbtq4StjmfA7kQ1nRKvhSbVBvzGwAmO6gyE/Ho1kxAB8Bz pTVcGqHx1rhOMS+IoJI+BR5iPdWImbNmj/fAIYvXY1m4G2z1G3tElEWk7I8ciXR/No4u P02m1yIV2iqyX+l6UyAcOKmHggeqbBq42jSMlVIuNjh+9wUJ/HAusD+jN9UDGx8md4oC QYWQ== X-Gm-Message-State: AOAM533RoibtTLlq9excPUvy8Y750FBNd1OYLnUHQf0NDvDOBuIMArmJ rjyfm1wubkADSHnVpfa/lQksSl5pN4U= X-Google-Smtp-Source: ABdhPJxOydR6C76iB4zmOYoxjMAXI82A1NM11Y4z645obukiGBNgpEug9oJBR8Qx+WiC58gWTh5WgQ== X-Received: by 2002:a7b:c246:: with SMTP id b6mr12520083wmj.154.1609430074585; Thu, 31 Dec 2020 07:54:34 -0800 (PST) Received: from basti-TUXEDO-Book-XA1510.fritz.box (p200300d1ff267500b10aabf0e84cdf75.dip0.t-ipconnect.de. [2003:d1:ff26:7500:b10a:abf0:e84c:df75]) by smtp.gmail.com with ESMTPSA id s63sm14595787wms.18.2020.12.31.07.54.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 31 Dec 2020 07:54:34 -0800 (PST) From: Sebastian Fricke To: libcamera-devel@lists.libcamera.org Date: Thu, 31 Dec 2020 16:53:35 +0100 Message-Id: <20201231155336.7058-4-sebastian.fricke.linux@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201231155336.7058-1-sebastian.fricke.linux@gmail.com> References: <20201231155336.7058-1-sebastian.fricke.linux@gmail.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 3/4] libcamera: pipeline: rpi: Adjust to new implementation 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" Remove the construction of a BayerFormat from a V4L2PixelFormat through the old constructor. Add the new 'fromV4L2PixelFormat' static member function. Signed-off-by: Sebastian Fricke --- src/libcamera/pipeline/raspberrypi/raspberrypi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp index 7a5f5881..8ca9b9cf 100644 --- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp +++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp @@ -358,7 +358,7 @@ CameraConfiguration::Status RPiCameraConfiguration::validate() */ V4L2PixelFormat fourcc = sensorFormat.fourcc; if (data_->flipsAlterBayerOrder_) { - BayerFormat bayer(fourcc); + BayerFormat bayer = BayerFormat::fromV4L2PixelFormat(fourcc); bayer.order = data_->nativeBayerOrder_; bayer = bayer.transform(combined); fourcc = bayer.toV4L2PixelFormat(); @@ -1007,7 +1007,7 @@ bool PipelineHandlerRPi::match(DeviceEnumerator *enumerator) BayerFormat bayerFormat; for (const auto &iter : dev->formats()) { V4L2PixelFormat v4l2Format = iter.first; - bayerFormat = BayerFormat(v4l2Format); + bayerFormat = BayerFormat::fromV4L2PixelFormat(v4l2Format); if (bayerFormat.isValid()) break; }