From patchwork Mon May 16 14:10:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 15906 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 53765C3256 for ; Mon, 16 May 2022 14:10:50 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 5D3E86565E; Mon, 16 May 2022 16:10:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1652710249; bh=24yYAKnWoDC/icd9MiZwMb8XvYHfr2hmBVBgD0i32Lw=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=eKt1FoVGjaJtjd1vpWppz/s1jYmhCDbPP4wxvuEuZQWGcv15HhJTYmfGnLzKIA+1G XAiauVCEl5T64/zoiRkEMfh20RjabNjyBZOUflYf7im/xj8zVkISTZw1yRqGPE5Dot KCQAklemt0yyv5QTHAsKV7/vNvqD9Qp4TLyJB42xkktB5dwfl9MrdcCxKQb6wVgGZ2 +38inrBFf1ljUi3zJ7FLTHgvmv3pHxQKiA1RsO09wKDSYPXESRuBvWjTaP3zMwVCcW oriy7WxE4V2nz86O3EkyauxT2KSRJ4IACLzcqTtFj7MYyCrt++546UO/o3KrNHoL1Q ubtiNUf+1kRlA== Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1C0F661FB8 for ; Mon, 16 May 2022 16:10:48 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="bX/S/e6w"; 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 182DD484; Mon, 16 May 2022 16:10:47 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1652710247; bh=24yYAKnWoDC/icd9MiZwMb8XvYHfr2hmBVBgD0i32Lw=; h=From:To:Cc:Subject:Date:From; b=bX/S/e6w+dwD5CjqUvjw8uHdyHGlBEMhDvS7QDwxmoLD98FwwpdMwNPrZEgl4LRml aELgKXU25qrC6DbILZiLZTCgna9yVwMToD647R+q8ooxlhMSfkUyQTXFhX73lJ7rYD bJRtJur4Oz9+qA8NtyrlR9fzPSr7qYCrTLezNNoA= To: libcamera-devel@lists.libcamera.org, David Plowman , Kieran Bingham , Laurent Pinchart , Jacopo Mondi Date: Mon, 16 May 2022 17:10:08 +0300 Message-Id: <20220516141022.96327-1-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 00/14] 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, Smallish Python bindings patches doing cleanups, fixes and a few small features. Tomi Tomi Valkeinen (14): 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: move conversion funcs to libcamera.utils py: conv.py: minor cleanups py: implement PixelFormat class py: add geometry classes py: use geometry classes py: cam_kms: support multiplanar formats py: cam_kms: fix multistream display src/py/cam/cam.py | 34 +++-- src/py/cam/cam_kms.py | 31 ++--- src/py/cam/cam_qt.py | 200 +---------------------------- src/py/cam/cam_qtgl.py | 20 +-- src/py/cam/gl_helpers.py | 8 -- src/py/libcamera/meson.build | 22 +++- src/py/libcamera/pygeometry.cpp | 104 +++++++++++++++ src/py/libcamera/pymain.cpp | 90 ++++++------- src/py/libcamera/utils/__init__.py | 4 + src/py/libcamera/utils/conv.py | 160 +++++++++++++++++++++++ test/py/unittests.py | 28 ++-- 11 files changed, 392 insertions(+), 309 deletions(-) create mode 100644 src/py/libcamera/pygeometry.cpp create mode 100644 src/py/libcamera/utils/__init__.py create mode 100644 src/py/libcamera/utils/conv.py