From patchwork Tue May 17 14:33:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 15924 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 92127C3256 for ; Tue, 17 May 2022 14:33:53 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 28C246041D; Tue, 17 May 2022 16:33:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1652798033; bh=4aYfcaUn1w+dN08+7ws+HfGFpn75m52HjMZCrI/5IPg=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=H+hRl8l1rv0hKT41nPgLqzytKK8vgjIxvEPiuGCG1np5CyjC/NhANEYhJoXBlbzq3 di5OlWPrqk8C5xSdDnN5YSE1YEZOPwTy37tIb9dJvMfzsnmA5ScPbpZ5weEn+Me4od cw7V7YS7VrEaZ6Px6Ul//g29UALrBU5v/ygtCrmI7EbnO20VqOdWivOme8s1HDw40w wORStm0Hbn2neGuXfBZr1321cWEmuEncy6EsqacxIJrtlukg+BTG9wI4ID/fdrLJMZ ntdr8QbQEKEXdj+RVndXcavQivk8508gz+PIEsBDCAOaZeRlRxvpZxaGpttpC7xb0e fgxVdbeH4656Q== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6024D6041D for ; Tue, 17 May 2022 16:33:51 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="esej97zK"; dkim-atps=neutral Received: from deskari.lan (91-156-85-209.elisa-laajakaista.fi [91.156.85.209]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id CDE3A4A8; Tue, 17 May 2022 16:33:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1652798031; bh=4aYfcaUn1w+dN08+7ws+HfGFpn75m52HjMZCrI/5IPg=; h=From:To:Cc:Subject:Date:From; b=esej97zKcHaRYkVYEGiUo5o8DEpd+lc6R+gsHAInIgK8j5yvskxYXH72+O6NnQOJ8 HmdpnezRkuPbexn/gOwroS5NECazg1PVmcqWYDZsUzV/SjKc4u01O9Ain+zXQ6QZ2z plIWuOQxMtYvD7imuos4TcG3zseuVEeCe61eqd00= To: libcamera-devel@lists.libcamera.org, David Plowman , Kieran Bingham , Laurent Pinchart , Jacopo Mondi Date: Tue, 17 May 2022 17:33:12 +0300 Message-Id: <20220517143325.71784-1-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 00/13] Misc Python bindings patches 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, Changes to v1: - Add missing geometry class methods - Drop the libcamera.utils module for now - PixelFormat name -> string change - Added PixelFormat __repr__ - Dropped the tuple/array __init__ versions for geometry classes - Some other cosmetic changes Tomi Tomi Valkeinen (13): py: meson: fix comment about stubs py: meson: add pystubs build target py: pymain: fix indent py: unittests: fix selector fd use py: unittests: verify that cam and cm are freed py: unittests: make typechecker happy py: cam.py: exit on exception py: cam_kms: support multiplanar formats py: cam_kms: fix multistream display py: cam_qt: cosmetic cleanups py: implement PixelFormat class py: add geometry classes py: use geometry classes src/py/cam/cam.py | 32 +++++---- src/py/cam/cam_kms.py | 31 +++++---- src/py/cam/cam_qt.py | 75 ++++++-------------- src/py/cam/cam_qtgl.py | 20 +----- src/py/cam/gl_helpers.py | 8 --- src/py/libcamera/meson.build | 16 ++++- src/py/libcamera/pygeometry.cpp | 119 ++++++++++++++++++++++++++++++++ src/py/libcamera/pymain.cpp | 81 ++++++++-------------- test/py/unittests.py | 22 ++++-- 9 files changed, 240 insertions(+), 164 deletions(-) create mode 100644 src/py/libcamera/pygeometry.cpp