{"id":23668,"url":"https://patchwork.libcamera.org/api/1.1/covers/23668/?format=json","web_url":"https://patchwork.libcamera.org/cover/23668/","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":"<20250627074208.49872-1-uajain@igalia.com>","date":"2025-06-27T07:42:06","name":"[0/2] gstreamer: Report mounting-rotation of camera sensor","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/23668/mbox/","series":[{"id":5253,"url":"https://patchwork.libcamera.org/api/1.1/series/5253/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=5253","date":"2025-06-27T07:42:07","name":"gstreamer: Report mounting-rotation of camera sensor","version":1,"mbox":"https://patchwork.libcamera.org/series/5253/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/23668/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 4F03DC3237\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 27 Jun 2025 07:42:17 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id E7A9468DF6;\n\tFri, 27 Jun 2025 09:42:13 +0200 (CEST)","from fanzine2.igalia.com (fanzine2.igalia.com [213.97.179.56])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 7162668DF4\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 27 Jun 2025 09:42:08 +0200 (CEST)","from [49.36.69.141] (helo=uajain)\n\tby fanzine2.igalia.com with esmtpsa \n\t(Cipher TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)\n\t(Exim) id 1uV3in-009IWh-Ns; Fri, 27 Jun 2025 09:42:06 +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=\"Sll0k2/r\"; 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=a1Xmdj9ijfPTE4pTOVmDStBvRF+6V2d30DjE9ufS3z0=;\n\tb=Sll0k2/rnupdmSDOuQYMAHGTTx\n\tR3iebhzXNPAAuKHKXTM7pc4AzChQpRA9RHG/nR3CjexSfV+uEPIT65U5mGju0pOisXVhNMXHMgR16\n\tnd0zdSbPwKHCf0vqRMKbThU2dKomqomw+4A91jxLxNX50K9ANlCF4YvGVMeGqANQ7wi2qt7UG+oVm\n\tDptzKCS5r1Yop9iV5bucPNzmikt5YZ9GRWZ2jLIETeZhYou9G2VHEzUcmfJj0Gm+yvv2g5Q1ixwvk\n\t+1BypuHSdkWcQPvQJNNsYgamtohldCKWvUxx33AW04Dq9hhS5GvFfGCmbe5pwM3SYGmsvjDXV0vaC\n\tv3PGOjWg==;","From":"Umang Jain <uajain@igalia.com>","To":"libcamera-devel@lists.libcamera.org","Cc":"Giacomo Cappellini <giacomo.cappellini.87@gmail.com>,\n\tNicolas Dufresne <nicolas@ndufresne.ca>, Umang Jain <uajain@igalia.com>","Subject":"[PATCH 0/2] gstreamer: Report mounting-rotation of camera sensor","Date":"Fri, 27 Jun 2025 13:12:06 +0530","Message-ID":"<20250627074208.49872-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":"Following patches support reporting mounting rotation of the\ncamera sensor in libcamerasrc. These are now reported as GstDevice\nproperties.\n\nPatch 1/2 provides a public helper to derive a std::string for \nOrientation enum.\n\nPatch 2/2 plumbs the libcamera's 'property::Rotation' in libcamerasrc.\nIt provides a human readable string in case the rotation is in\nmultiple of 90, otherwise, simply reports the value of rotation\nproperty as a string.\n\n---\n[~/src/libcamera]$ gst-device-monitor-1.0\nProbing devices...\n\n[3:27:26.441195043] [47803]  INFO Camera camera_manager.cpp:326 libcamera v0.5.1+33-6c802a4d\n\nDevice found:\n\n\tname  : \\_SB_.PC00.XHCI.RHUB.HS04-4:1.0-04f2:b7e0\n\tclass : Source/Video\n\tcaps  : image/jpeg, width=640, height=360\n\t        image/jpeg, width=640, height=480\n\t        image/jpeg, width=848, height=480\n\t        image/jpeg, width=960, height=540\n\t        image/jpeg, width=1280, height=720\n\t        image/jpeg, width=1920, height=1080\n\t        video/x-raw, format=YUY2, width=640, height=360\n\t        video/x-raw, format=YUY2, width=640, height=480\n\tproperties:\n\t\tmounting-rotation = Rotate0\n\tgst-launch-1.0 libcamerasrc camera-name=\"\\\\_SB_.PC00.XHCI.RHUB.HS04-4:1.0-04f2:b7e0\" ! ...\n---\n\nUmang Jain (2):\n  libcamera: orientation: Provide a orientationToString() helper\n  libcamera: gstreamer: Report mounting-rotation of camera sensor\n\n include/libcamera/orientation.h        |  1 +\n src/gstreamer/gstlibcameraprovider.cpp | 14 ++++++++++++++\n src/libcamera/orientation.cpp          | 14 ++++++++++++++\n 3 files changed, 29 insertions(+)"}