{"id":23944,"url":"https://patchwork.libcamera.org/api/1.1/covers/23944/?format=json","web_url":"https://patchwork.libcamera.org/cover/23944/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20250724133343.353044-1-uajain@igalia.com>","date":"2025-07-24T13:33:40","name":"[v4,0/3] gstreamer: Report camera properties as device properties","submitter":{"id":232,"url":"https://patchwork.libcamera.org/api/1.1/people/232/?format=json","name":"Umang Jain","email":"uajain@igalia.com"},"mbox":"https://patchwork.libcamera.org/cover/23944/mbox/","series":[{"id":5323,"url":"https://patchwork.libcamera.org/api/1.1/series/5323/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5323","date":"2025-07-24T13:33:41","name":"gstreamer: Report camera properties as device properties","version":4,"mbox":"https://patchwork.libcamera.org/series/5323/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/23944/comments/","headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id DF0CEC3237\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 24 Jul 2025 13:33:46 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 25A66690F3;\n\tThu, 24 Jul 2025 15:33:44 +0200 (CEST)","from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id BF839690E2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 24 Jul 2025 15:33:38 +0200 (CEST)","from [49.36.71.87] (helo=uajain) by fanzine2.igalia.com with\n\tesmtpsa \n\t(Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)\n\t(Exim) id 1uew4n-003CfR-2F; Thu, 24 Jul 2025 15:33:37 +0200"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=igalia.com header.i=@igalia.com\n\theader.b=\"RLbN7nLA\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=igalia.com;\n\ts=20170329;\n\th=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:\n\tCc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tIn-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:\n\tList-Post:List-Owner:List-Archive;\n\tbh=Gi8A/odT+ZLAOQJr+EN+zXn/wgeFc+WkKKcvuKPWVMI=;\n\tb=RLbN7nLA1mo8eEd8i/bq/f1q5i\n\tQ36Fz58OZ/CYSXBLLPYdnr6qizuhgbkko7NTOLbx5HpzTB493nZTOo+uE7JX2HuPsPQICxqrGN3dl\n\tEMDf8rxoOLTjpTxZjdyQk8xnOc1lEt/dct9bTo/u1fC/YK73eGsx+x3goHGm5oSjNLZaxWQoM0mQp\n\t4lDRP+oUbIgtYX/7nIaVeA0bpHnoOOG4scz0nC5fMjM8IYC7k27GLXDE0XmzuvQoJvxp/wMbwbN9Z\n\tAAwZjcPozq2GZYtSdhg6gmdCspM1EcaYUuJbVdhrbjxhilrIgJbEXEFSqOs+jo7ToMiBL/C+eBCsN\n\tsY9jbgfw==;","From":"Umang Jain <uajain@igalia.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"Jaslo Ziska <jaslo@ziska.de>,\n\tNicolas Dufresne <nicolas.dufresne@collabora.com>,\n\tUmang Jain <uajain@igalia.com>","Subject":"[PATCH v4 0/3] gstreamer: Report camera properties as device\n\tproperties","Date":"Thu, 24 Jul 2025 19:03:40 +0530","Message-ID":"<20250724133343.353044-1-uajain@igalia.com>","X-Mailer":"git-send-email 2.50.0","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"This series aims to report camera properties from libcamera\nto device properties in gstreamer device provider.\n\nPatch 1/3 splits the Rectangle GValue helper into two:\nPoint and Size.\n\n\nPatch 2/3 moves all three 3 GValue helpers(Rectangle, Size, Point)\nfrom gstlibcamera-controls.cpp.in to libcamera-utils.cpp. This\nenables code sharing when we report properties which are\nRectangle, Size, Points types.\n\nPatch 3/3 is the integration patch. It maps all ControlType\nfrom libcamera to corresponding GType. If the ControlValue::isArray()\nis true, GST_VALUE_ARRAY is preferred to report all array values,\nwith corresponding type GType.\n\nOutput on RPi3:\n==============\nuajain1@uajain:~$ cam -c1 -p\n...\nProperty: SystemDevices = [ 20749, 20739, 20740, 20741 ]\nProperty: ScalerCropMaximum = (0, 0)/0x0\nProperty: PixelArrayActiveAreas = [ (8, 8)/3280x2464 ]\nProperty: PixelArraySize = 3280x2464\nProperty: Rotation = 180\nProperty: Location = 2 (CameraLocationExternal)\nProperty: ColorFilterArrangement = 0 (RGGB)\nProperty: UnitCellSize = 1120x1120\nProperty: Model = imx219\n\n\nuajain1@uajain:~$ gst-device-monitor-1.0 \n....\n\tproperties:\n\t\tapi.libcamera.SystemDevices = < (gint64)20749, (gint64)20739, (gint64)20740, (gint64)20741 >\n\t\tapi.libcamera.ScalerCropMaximum = < (int)0, (int)0, (int)0, (int)0 >\n\t\tapi.libcamera.PixelArrayActiveAreas = < (int)8, (int)8, (int)3280, (int)2464 >\n\t\tapi.libcamera.PixelArraySize = < (int)3280, (int)2464 >\n\t\tapi.libcamera.Rotation = 180\n\t\tapi.libcamera.Location = CameraLocationExternal\n\t\tapi.libcamera.ColorFilterArrangement = RGGB\n\t\tapi.libcamera.UnitCellSize = < (int)1120, (int)1120 >\n\t\tapi.libcamera.Model = imx219\n\tgst-launch-1.0 libcamerasrc camera-name=\"/base/soc/i2c0mux/i2c\\@1/imx219\\@10\" ! ...\n\nChanges in v3:\n- Extensively reworked to map ControlType<>GType for ControlValues\n\nUmang Jain (3):\n  gstreamer: Split value_set_rectangle() GValue helper\n  gstreamer: Move existing GValue helpers to gstreamer-utils\n  gstreamer: Report camera properties as device properties\n\n src/gstreamer/gstlibcamera-controls.cpp.in |  50 +----\n src/gstreamer/gstlibcamera-utils.cpp       | 246 +++++++++++++++++++++\n src/gstreamer/gstlibcamera-utils.h         |   7 +\n src/gstreamer/gstlibcameraprovider.cpp     |  16 ++\n 4 files changed, 274 insertions(+), 45 deletions(-)"}