From patchwork Tue May 30 09:20:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 18656 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 83D31C3213 for ; Tue, 30 May 2023 09:20:57 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id D154662728; Tue, 30 May 2023 11:20:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1685438456; bh=YtFNeryiNlexOQjjX82OqCkv5pC3uCeXGDnaWEu3Uuw=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=qZcYGeBnYeDCYAJthNVpMZTr8BAatIsMQmMHAeZMVL9kcSWDBjsK8mCS6txoq0b4X cePn89WQ/nN7MMrgS8cpaPzBbPficP/rDKeE38q9Qny8OoCMQJ9KCK7rHNi0v9tGXB x7d3wQR9bO9K6bSHDw8K+FQM4gf3O78QBY2yyO5cZoIrOhAE89kAPKOVpe+DjcR2H7 kGEr55YnEq2d9QAblrfGbflSttwYMIDSgBPeXMe9H15bphWNDBWlobxP5vppowxeXg ujmbb1BVaIEsFF1gr+uxuHAx7wIVvTMchqzt45x4WgWBxnp3GaNEG0Q8bd2O99xgL7 l5ssN+b3RZImA== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 7404E60388 for ; Tue, 30 May 2023 11:20:55 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="bA5ju/C5"; 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 37CAFAB; Tue, 30 May 2023 11:20:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1685438434; bh=YtFNeryiNlexOQjjX82OqCkv5pC3uCeXGDnaWEu3Uuw=; h=From:To:Cc:Subject:Date:From; b=bA5ju/C5aJy58HKGKV/xU6M5D86eim5POmmZXqBcJKA4UhQHShzupMHq0IyKqJqOM qz0JxX5lXWwlgZmAtzM1K99CEHLvC42s+w7t9NgD4OhvBcAlpolyESsnme5GXl2uPO RlpvJy3eTeHcSSckyFQl59aLEV/C62F3rWd+0U8M= To: libcamera-devel@lists.libcamera.org Date: Tue, 30 May 2023 12:20:11 +0300 Message-Id: <20230530092016.34953-1-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 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, This series has some select patches from the Python event handling, which progresses very slowly. But more importantly, it moves us to the mainline pybind11, instead of using the smart_holder branch. 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 | 13 +- 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 | 229 ++++++++---------- .../libcamera/py_properties_generated.cpp.in | 2 +- src/py/libcamera/py_transform.cpp | 81 +++++++ subprojects/.gitignore | 2 +- subprojects/pybind11.wrap | 18 +- test/py/unittests.py | 140 +++++------ 18 files changed, 364 insertions(+), 276 deletions(-) create mode 100644 src/py/libcamera/py_color_space.cpp create mode 100644 src/py/libcamera/py_transform.cpp