From patchwork Mon Dec 4 00:10:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Konovalov X-Patchwork-Id: 19264 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 083BDC322E for ; Mon, 4 Dec 2023 00:10:44 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 85BDD629D3; Mon, 4 Dec 2023 01:10:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1701648644; bh=oRBIY8kOi0gKYV5IPe6DVH6UPAc8qzG43Lgmf4uwB34=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=FHW8UY1Oh+Rn6pOWH323GllOFHCQeI8qllNbkPaEO/stgH8uA/H/ecPTsE2lm8X8l 8QF7bOj2O0zWnEGCsqE5DBP+HY3UmshL+tfksWj018troxXnBdFhnzS9Qg3iqPZIv+ fiADG+CRNbG7y+hm07LMStKVTGLYmqjRPKFR73aSH0wQvDXrHNuvNg4GnPrbrpNznr lnmmhBFdvXRveONNH8LNQycakRTyjRRUWZJPxQ5xkpmcicx9A+QdiUCofT9yOdM56C +ClLj8fap9IKzXa87PduS8aa1+ZO14GLSiR3b3bz5VwxwplFdbFwacYti0+DU4ZL92 t8hjjLr3xGHQA== Received: from mail-wr1-x429.google.com (mail-wr1-x429.google.com [IPv6:2a00:1450:4864:20::429]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E5F04629D3 for ; Mon, 4 Dec 2023 01:10:42 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="L6n+Zikn"; dkim-atps=neutral Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-3316bb1303bso3028563f8f.0 for ; Sun, 03 Dec 2023 16:10:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1701648642; x=1702253442; darn=lists.libcamera.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pFJAoSA9Nwu/bV7xUFK2GgTlAP4DOK35M5GoMj00EiU=; b=L6n+ZiknGX4m7jbMUJpO2aY0E4WMl9208MpAP3w+GZrJ9LVudbrZiMWtdM3VYvWzSQ 3+aMXMRhIPMQ5kGEKS6RRzQ9teUSScU1v29lh6i9F5+sRAXYb9aW1EHwdWUisasK968w B2gBNvMJgueRVIKo0shRCNW77HJBwfk1FdDYEUjSttIv+XSVdUO8sU80lssX6N3Y9wC0 FAkdrICB+iOqHG5Imw6CgK3STCDaDGn5WHIC/+wxLEMA9YmdsmloSGwd++QV7WOUtqxQ GnlDWTkm3K6gU3OuG3TwnDd/NKOLuxsqynAFZ++f5HqrXfkzpgqZxo3QJPuVq3bqhQvz 02Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701648642; x=1702253442; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pFJAoSA9Nwu/bV7xUFK2GgTlAP4DOK35M5GoMj00EiU=; b=bfHujq5Rxha3t/J3hDPsudVpWhGhLtJYacohWlhP6gY5Dfs/FIvA4kVGoPBRLVKfAN a6HNbBjaa9Re2HYaycOLAVcTmdiRWkqsIK/eUc5+M+5plKr3mHIlOratJ35G+YB9sebq I2tRUG27QkUgjFvo77UTvDBHgbOO82szJZ/5EgUj6M4ieE0aQNs+NYlN/j+6fwSp0ZQe PEPCCtUgLqlJWUfX3z/GwmZRBwCjMWhBONy4Lq7G1HdBXS4xki2eQiVbozFrF5Ph1rMs 8lcTAejF8l2ztTCcptFkejsT6RqxsWQU5jub97ANArA4W7xr3iRS5VrPBOTKhveAQbuo Ovow== X-Gm-Message-State: AOJu0YwjkMOyQzIy3iJoyReY/4AxOsNjLqouGYp1w6tjZJDdNgk1A9/z b00EALBUQeWfqKRY7txNAVCHR4rzSm1nHACKG5w= X-Google-Smtp-Source: AGHT+IEFHvqqtebCZhYG5PVXfhYrdKwdoDUW62eNL+1EvUJHrWqNK2j2whHdzDwDd7HNrxSbauvjgQ== X-Received: by 2002:a5d:63cb:0:b0:333:13cf:dd15 with SMTP id c11-20020a5d63cb000000b0033313cfdd15mr2868893wrw.55.1701648642646; Sun, 03 Dec 2023 16:10:42 -0800 (PST) Received: from Lat-5310.. ([87.116.165.212]) by smtp.gmail.com with ESMTPSA id u29-20020adfa19d000000b003332db7d91dsm8835997wru.39.2023.12.03.16.10.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Dec 2023 16:10:42 -0800 (PST) To: libcamera-devel@lists.libcamera.org Date: Mon, 4 Dec 2023 03:10:08 +0300 Message-Id: <20231204001013.404720-3-andrey.konovalov@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231204001013.404720-1-andrey.konovalov@linaro.org> References: <20231204001013.404720-1-andrey.konovalov@linaro.org> MIME-Version: 1.0 Subject: [libcamera-devel] [RFC PATCH 2/7] libcamera: internal: Move SharedMemObject class to a common directory 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: , X-Patchwork-Original-From: Andrey Konovalov via libcamera-devel From: Andrey Konovalov Reply-To: Andrey Konovalov Cc: mripard@redhat.com, g.martti@gmail.com, t.langendam@gmail.com, srinivas.kandagatla@linaro.org, bryan.odonoghue@linaro.org, admin@dennisbonke.com Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Move SharedMemObject class out of RPi namespace and put it into include/libcamera/internal so that everyone could use it. Signed-off-by: Andrey Konovalov --- include/libcamera/internal/meson.build | 1 + .../common => include/libcamera/internal}/shared_mem_object.h | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) rename {src/libcamera/pipeline/rpi/common => include/libcamera/internal}/shared_mem_object.h (98%) diff --git a/include/libcamera/internal/meson.build b/include/libcamera/internal/meson.build index 0f725cfd..b780777c 100644 --- a/include/libcamera/internal/meson.build +++ b/include/libcamera/internal/meson.build @@ -38,6 +38,7 @@ libcamera_internal_headers = files([ 'process.h', 'pub_key.h', 'request.h', + 'shared_mem_object.h', 'software_isp.h', 'source_paths.h', 'sysfs.h', diff --git a/src/libcamera/pipeline/rpi/common/shared_mem_object.h b/include/libcamera/internal/shared_mem_object.h similarity index 98% rename from src/libcamera/pipeline/rpi/common/shared_mem_object.h rename to include/libcamera/internal/shared_mem_object.h index aa56c220..bfb639ee 100644 --- a/src/libcamera/pipeline/rpi/common/shared_mem_object.h +++ b/include/libcamera/internal/shared_mem_object.h @@ -19,8 +19,6 @@ namespace libcamera { -namespace RPi { - template class SharedMemObject { @@ -123,6 +121,4 @@ private: T *obj_; }; -} /* namespace RPi */ - } /* namespace libcamera */