From patchwork Thu May 19 10:33:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomi Valkeinen X-Patchwork-Id: 15982 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 2731CC3256 for ; Thu, 19 May 2022 10:34:10 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 48BDF65669; Thu, 19 May 2022 12:34:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1652956449; bh=qzS3olMUd08y4aqVmPusl/4R3uoiqdmKXUDOa10q0Y8=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=dQX90smevfKkfg9hA4X10GIEkWoTSakzntwNIzIrsd6bilYbcUS0Tyw5X6dElbYvA dCE4dKx7UTPyHbgP6SDvCz6Bl9XaMmTbKi5JoAti0UIEwbtyiQ0KVBa3wsKg02mWqD rt4wHlKzagN6VIxRTbNk6WONZ3CuS+1gDbwnE0vE03fE3iFmSa/7NN7mb7QG+06mnH 3GK5qlCIqpzqcfBQbr7+/UIjPdQ2iTl8oBFf66cmCviORCc0abPiNK/W+30gLp8IGl fdjKiNAM0Xi+widEyNv3lOhV/aYcfD/HN1X+sNIPyvebKsqk/zP6XTpO8daJqZZ7gQ 0fP8SiueaImXw== 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 D9BCA60420 for ; Thu, 19 May 2022 12:34:06 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="ITxp3c/s"; 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 E5211A16; Thu, 19 May 2022 12:34:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1652956446; bh=qzS3olMUd08y4aqVmPusl/4R3uoiqdmKXUDOa10q0Y8=; h=From:To:Cc:Subject:Date:From; b=ITxp3c/s7+BYSqKIN7krZsQIdsCEvMFcmvqXZ3CxJT8Y9rMRI9Cnq9hQvb+fALtVF UAsHKv9hPWsr7HecsK3jdEdR/aVPdMJxIlO3pEawEa6lvGOZwgg63QTf6N+h9CPjH8 4luxX4U52WsZiCdJzsF8BHPCjyLAm8QlwRrLgD08= To: libcamera-devel@lists.libcamera.org, David Plowman , Kieran Bingham , Laurent Pinchart , Jacopo Mondi Date: Thu, 19 May 2022 13:33:42 +0300 Message-Id: <20220519103347.33295-1-tomi.valkeinen@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/5] More misc Python 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" So, this is v1 as most of the patches from the previous series were merged, and this has some new ones. I changed the pixel format list to use a "dummy" class. I think it's better, as it gives us read-only properties and pyright or pybind11-stubgen likes it. But I dropped the signed-off-bys, as the solution is different. Tomi Tomi Valkeinen (5): py: Generate pixel formats list py: cam_qt: Use libcamera.formats py: cam: Cleanups py: Fix SceneFlicker enum values py: Fix None value in ControlType enum src/py/cam/cam.py | 2 +- src/py/cam/cam_qt.py | 29 ++++------ src/py/cam/cam_qtgl.py | 9 +--- src/py/libcamera/gen-py-control-enums.py | 3 ++ src/py/libcamera/gen-py-formats.py | 56 ++++++++++++++++++++ src/py/libcamera/meson.build | 12 +++++ src/py/libcamera/py_enums.cpp | 2 +- src/py/libcamera/py_formats_generated.cpp.in | 23 ++++++++ src/py/libcamera/py_main.cpp | 3 ++ 9 files changed, 111 insertions(+), 28 deletions(-) create mode 100755 src/py/libcamera/gen-py-formats.py create mode 100644 src/py/libcamera/py_formats_generated.cpp.in