From patchwork Tue May 30 12:01:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 18662 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 F3A34C31E9 for ; Tue, 30 May 2023 12:01:48 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 4ADD9626FA; Tue, 30 May 2023 14:01:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1685448108; bh=ODpo7FGGKXkIyT1LF44ebC49c7t1YxUgSnsdX1c83l4=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=18EZ+t/7fML4t6+WYuOcrgPCyOFSClB2400ASMC//XiN1tGZZZVF/H52Xss9jMaRe H1OMWNkJpTw2k87dR8f5C6AYNjCA0D6LtM+5+mA9yHvFstWoz86JAbnJIH1BW6rXzh uJRP0A87GlD1LYnoJUJg15NIRyDyoSiopBY9MUQybRD2p0Z4CLEZJasJ/nT1/cc7u0 AIvgSLa0F+WFoCZ8lvFejv5i0c2bJJ79eZXbkoRlWY3pma3VenKd/2HlJxY/SQ3jYn ASI8JnOWe1+7+9wt+2TmkZQKJiMaGrl5fMaJiTGm7W4WK8Wkibg/4lYKHvkPpx4iKj 3K+qZlf6ZsnhA== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7908C60595 for ; Tue, 30 May 2023 14:01:47 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="JFAiLcTf"; dkim-atps=neutral Received: from desky.lan (91-154-35-171.elisa-laajakaista.fi [91.154.35.171]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 6DF4CE4; Tue, 30 May 2023 14:01:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1685448086; bh=ODpo7FGGKXkIyT1LF44ebC49c7t1YxUgSnsdX1c83l4=; h=From:To:Cc:Subject:Date:From; b=JFAiLcTfV29RXtsYWhcpsoGE2SzhJRD4aq8Q65hawSihGiQctFgPoeGQtWRi9Yj2Y Td+hJkjuCeLaf4mCD2KruSaiKlvxBTaEsWkgvGNWJDfNtE1h94Cm2z2GviWjgcYIlt I3HrlbEemjrH8UJL8ys6El+GjOOLdcTPxt4QDgLg= To: libcamera-devel@lists.libcamera.org Date: Tue, 30 May 2023 15:01:28 +0300 Message-Id: <20230530120133.99033-1-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/5] py: Misc changes & move to mainline pybind11 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: Tomi Valkeinen via libcamera-devel From: Tomi Valkeinen Reply-To: Tomi Valkeinen Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi, v2 with small changes: - Drop extra linefeed - Drop the pybind11 subproject, and rely solely on system provided pybind11 - Improve the commit message wrt. PyCameraManager Tomi Tomi Valkeinen (5): py: Fix CameraManager.version property py: Move ColorSpace and Transform classes to separate files py: Use exceptions instead of returning error codes py: unittests.py: Add weakref helpers and use del py: Move to mainline pybind11 version src/py/cam/cam.py | 16 +- src/py/examples/simple-cam.py | 15 +- src/py/examples/simple-capture.py | 21 +- src/py/examples/simple-continuous-capture.py | 21 +- src/py/libcamera/meson.build | 12 +- src/py/libcamera/py_camera_manager.h | 2 +- src/py/libcamera/py_color_space.cpp | 70 ++++++ src/py/libcamera/py_controls_generated.cpp.in | 2 +- src/py/libcamera/py_enums.cpp | 2 +- src/py/libcamera/py_formats_generated.cpp.in | 2 +- src/py/libcamera/py_geometry.cpp | 2 +- src/py/libcamera/py_helpers.h | 2 +- src/py/libcamera/py_main.cpp | 230 ++++++++---------- .../libcamera/py_properties_generated.cpp.in | 2 +- src/py/libcamera/py_transform.cpp | 81 ++++++ subprojects/.gitignore | 2 +- subprojects/pybind11.wrap | 11 - test/py/unittests.py | 140 +++++------ 18 files changed, 354 insertions(+), 279 deletions(-) create mode 100644 src/py/libcamera/py_color_space.cpp create mode 100644 src/py/libcamera/py_transform.cpp delete mode 100644 subprojects/pybind11.wrap