From patchwork Mon Oct 21 16:45:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jaslo Ziska X-Patchwork-Id: 21720 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 BB474BD808 for ; Mon, 21 Oct 2024 16:50:10 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id BFE6565392; Mon, 21 Oct 2024 18:50:09 +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="rzK79ox0"; dkim=permerror (0-bit key) header.d=ziska.de header.i=@ziska.de header.b="0blU84rE"; dkim-atps=neutral Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.21]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 1C1226538A for ; Mon, 21 Oct 2024 18:50:08 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; t=1729529407; cv=none; d=strato.com; s=strato-dkim-0002; b=T+XL7qqCph64PlgjSMck7X7hEli78+GrZJXZ88L4trcbEN1CeKtdeOxnl8/1c0HbGr JrL52ED+VcS5IDyeprvMmGsZIXTKRVt/nQCkQgX4Uu5oZOFMn2Wxjlf3Rmu9+WoPZeoB 7Lt3ITFs/GKDgIjUK3v2iyIdvzhBNdo/M1BlOccE2B9MuTzJmo5ofiZOEmLp9cwIklGv Yx0QSwGBEvzITfAGvIN2w05E/FoANwfDSKp2V5Foc6/bXKGsGyCrNALeLdiMNMSggcPn ZFlWLPbur8hxH7EVd0RJJgG6hfx9GeeKVT8H3uWDVWYjEkyuM7IGCgkcBnCSpZS++jH/ Acag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1729529407; s=strato-dkim-0002; d=strato.com; h=Message-ID:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=f57PtHaP/Vk0NBOhpJAywJ569y7YLHeiTtYxt7+xkDg=; b=TdzlqmqB4gYEFQR3GVMO+CvoOF/1sYYE7sw7Gf1DQznMl5vkyEYGaSqRWCRcYdn5TY 7SGlEn84JjUm87SyvvYAmg2LEgL5ny/6R4BmTjG8aBfo9palVnLAKMK+x9p3uiQVQoOm sZ6frJN2i8QOPKFbORcf8AEKatDAhLCJIZNWE7cKg/mAtMqx5es0aIZPcpVP1PA8bilC HB0cTKnxQBD7d3zk8GG7TRULEIDF+whoPaItXoKLloPVywPm8EJRQ9WFJuUgGkXWUMKc i1I45ttAHsnRW5JI6PCbsigKxI7b1CQh33X+sUZTHGXSn6NmcF1YWHis4/ikS+tUORxL 5fmQ== 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=1729529407; s=strato-dkim-0002; d=ziska.de; h=Message-ID:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=f57PtHaP/Vk0NBOhpJAywJ569y7YLHeiTtYxt7+xkDg=; b=rzK79ox0EhM9i+SMK1vJmJ0F81qeDnPKj9Y9pKs7px2IqYjh4cwD7yCS/5raL9CFeF bR4xPlxKzjbZ9NpoGHhpju532X1CB6Mwq89RT6+CAeCIpBVL7YEczL1s/ffFQUCqIZkL 8pUzM2DRcX1oTtJN/JG5zZQkGnYo0koJqPTg8We3LomQftxNdB0lLW0MIyGw4E6bohNr qkbc39mEX68eWnG/1yeHFt1PDTdZgo60TPSv02jjqB+T00wsJsU5UhKqv6IGBbb5kb+u cltgDixtVELAkL66LJ//TD1zpMxWnfLD08G5PUoC/h0zM6sq+VW1I3bB9Ssmjgopr+bm UeQw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1729529407; s=strato-dkim-0003; d=ziska.de; h=Message-ID:Date:Subject:Cc:To:From:Cc:Date:From:Subject:Sender; bh=f57PtHaP/Vk0NBOhpJAywJ569y7YLHeiTtYxt7+xkDg=; b=0blU84rEeJ8VKnalTJSmXIJnnGwlaYvV9768ppnOyON8qBth5dPCTXANCDsDyN7nkn A4XZ4oOcLtRxwP/DwqBw== X-RZG-AUTH: ":Jm0XeU+IYfb0x77LHmrjN5Wlb7TBwusDqIM6Hizy8VdfzvKi4yoFC9cEiIqwXfJa0UVFIOBpUYAtVOpHIoJG1qZybSPb" Received: from archlinux.fritz.box by smtp.strato.de (RZmta 51.2.11 AUTH) with ESMTPSA id zf9ba109LGo7Vd9 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 21 Oct 2024 18:50:07 +0200 (CEST) From: Jaslo Ziska To: libcamera-devel@lists.libcamera.org Cc: Jaslo Ziska Subject: [PATCH v4 0/3] gstreamer: Generate controls from control_ids_*.yaml files Date: Mon, 21 Oct 2024 18:45:30 +0200 Message-ID: <20241021164946.11111-1-jaslo@ziska.de> X-Mailer: git-send-email 2.47.0 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 revision changes the following things: - do not expose controls which are read-only as the generator can't differentiate those yet - fix a printf-style formatting string - add an indent_str filter to the generator because older Jinja versions can't indent by string 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 | 182 +++++++++++ utils/codegen/meson.build | 1 + 9 files changed, 595 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.47.0