From patchwork Thu Oct 17 17:04:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaslo Ziska X-Patchwork-Id: 21659 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 E6CCAC32FC for ; Thu, 17 Oct 2024 17:24:18 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id CB25065383; Thu, 17 Oct 2024 19:24:17 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=ziska.de header.i=@ziska.de header.b="Mbyz72KS"; dkim=permerror (0-bit key) header.d=ziska.de header.i=@ziska.de header.b="ROFTvI4z"; dkim-atps=neutral Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [81.169.146.221]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 753D66353B for ; Thu, 17 Oct 2024 19:24:15 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; t=1729185854; cv=none; d=strato.com; s=strato-dkim-0002; b=oBQEXpT+F6qcwi7f14v8GAJ5kZhj2I0aB/3IpY8yLf//xt/JyBGl5njx7aFqRMNZ0e cZxKq7k4S6Me2zF6yJe9EcQnBFG4nMmPRp5AEeAUHLOB2pQTZzGB+qP5ZPWJYiyCKEl6 IE7xXmeL7aUu4n4cs3mry7v20zU9IKokwi9klg53/nZZngKcmi5Fma3w9qtwi1KN6Btx aoyYQuVlxHZYV0X2aO0eqxFAttfKQITzBjpWYziMpbELJ6B/iU9JEeh2cUrySFImMIcY 0I9CCtL8dKwro8eJE/0vQNf/pd5UjxWr9DaKj4q3mgwJ7HMHIHuwgy58MupxFRodccTk Aygg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1729185854; s=strato-dkim-0002; d=strato.com; h=Message-ID:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=nP2NzVslIMeQX3svd7h/oKgSamrLDLQ+HEuXLo6/hCU=; b=NPlMpikvOUA6PWM33zw0GlRyj5IyV0OQNea92j5PWVAGgIFGL/ou6CxMDFZAtqfkFd Go6MKtIJhPstAKvtr6IOjrmcysLBU6TLSKUtwB6ZyMLrvuGI1f3CbRuM057qCIUauIJM bN7drnN31Efv33+glwZcdFc1CtzsQttjxFJpMSKBsJXAlzc/W1jZKOI+OE2iu6aKkiDY oIXn24bigEaPGh1tiIwynXzN6yXmpAUCzdX0s22kNlPz5GpHKKCoWHoMfbT0n62KFMaG PvPBfIF5io9Iqt2tkbvLHZJXvtQXi0EUqYio9nWxrQjxi1lvIUst/Is6EtJGtdyvpIcl CtFg== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1729185854; s=strato-dkim-0002; d=ziska.de; h=Message-ID:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=nP2NzVslIMeQX3svd7h/oKgSamrLDLQ+HEuXLo6/hCU=; b=Mbyz72KSwPFNjQaY9LuFB7MmKjAVIN+73dCi4je60FdTBivRiDRkl5xxb0irbj0hmJ FGEDZc5MKUmooAh0nWjf6bFPI7UaV8aa9LWmevJLpcj1Wrut63BtrjJwI8k03woQVvFK FTrptQ9Ao7k/dnl/1ostY1n2A3yRWsw84l8HnvuaKjU/IGBupORpduj6k2yx/fgV/43d 2ty96h8CeAk4ufF+icPC5iTLdzlamP2LUEoxvZldOcdA0ISowXX+VQVjAA3KapaLIura dT/SPK8DPzHrHKS2MPgVBMcFrWIKbJvVsV94cycBzJsnx7o0ZLBIuTpgock+DFFfEK5t U95w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1729185854; s=strato-dkim-0003; d=ziska.de; h=Message-ID:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=nP2NzVslIMeQX3svd7h/oKgSamrLDLQ+HEuXLo6/hCU=; b=ROFTvI4zhvr3eF/GKIS19qb0GPQ2uE8AfhjFDrV5npHYVhiy6AViCXLaD8jpu5GPqH Tn9L9Sv6usVQARUiMOCw== X-RZG-AUTH: ":Jm0XeU+IYfb0x77LHmrjN5Wlb7TBwusDqIM6Hizy8VdfzvKi4yoFC9cChoruAPJaMLnEXgE4US4SwNHvFuM4Ih4GFfdN" Received: from archlinux.fritz.box by smtp.strato.de (RZmta 51.2.11 AUTH) with ESMTPSA id zf9ba109HHOEI7E (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 17 Oct 2024 19:24:14 +0200 (CEST) From: Jaslo Ziska To: libcamera-devel@lists.libcamera.org Cc: Jaslo Ziska Subject: [PATCH v3 0/3] gstreamer: Generate controls from control_ids_*.yaml files Date: Thu, 17 Oct 2024 19:04:12 +0200 Message-ID: <20241017172331.16377-1-jaslo@ziska.de> X-Mailer: git-send-email 2.46.2 MIME-Version: 1.0 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: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Hi everyone, this is the third revision of the patch set to implement gstreamer controls from the yaml files. This revision only changed the third patch and apart from minor code improvements changed the following: - only expose controls specified in the exposed_controls variable in Python - added helper functions to get and set rectangles - fixed accumulation of controls in GstCameraControls Best regards, Jaslo Jaslo Ziska (3): gstreamer: Remove auto-focus-mode property from device provider gstreamer: Remove auto-focus-mode property from libcamerasrc gstreamer: Generate controls from control_ids_*.yaml files src/gstreamer/gstlibcamera-controls.cpp.in | 332 +++++++++++++++++++++ src/gstreamer/gstlibcamera-controls.h | 43 +++ src/gstreamer/gstlibcameraprovider.cpp | 15 - src/gstreamer/gstlibcamerasrc.cpp | 50 ++-- src/gstreamer/gstlibcamerasrc.h | 31 -- src/gstreamer/meson.build | 10 + utils/codegen/controls.py | 8 + utils/codegen/gen-gst-controls.py | 166 +++++++++++ utils/codegen/meson.build | 1 + 9 files changed, 579 insertions(+), 77 deletions(-) create mode 100644 src/gstreamer/gstlibcamera-controls.cpp.in create mode 100644 src/gstreamer/gstlibcamera-controls.h create mode 100755 utils/codegen/gen-gst-controls.py --- 2.46.2