From patchwork Tue Aug 9 14:35:29 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rishikesh Donadkar X-Patchwork-Id: 17039 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 1F8C2C3272 for ; Tue, 9 Aug 2022 14:35:58 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 9441963326; Tue, 9 Aug 2022 16:35:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1660055757; bh=N5utCrmdBqGFxTOz3A69UXrU88LxuAY6JQAtugktMdk=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=RJ5gJS2WA/QpZOBiYWajoVyn9F8Tau3hxJlgKIK5KmVGESgh7mLoIfuLy4y2ghacT Bw9PKE3/lD7SwH9M6dvEwTRK1yNzmO3VzxQ11+QfNGHFuXsr9e8dKWFmNtW5bwk9uA es7AUXny+TpGnCm3FLEyyZhuFclwmmk9a6qjk3HYswCemIf31ktTftPTtYCeVXmYo0 iZUvR274tYGATSyhUAy1aHpjCJ1uANNpA4L2xeY02Y/3qo9s5KB/3S6eCS4wTW9Z4i YvzNPvHFQjHa4VqhaX0V7ORQ4VIWFWWK2za+akyef9/x+TIMJ45r51DpPn2k915HYu kPR2z08FSzGqA== Received: from mail-pl1-x62f.google.com (mail-pl1-x62f.google.com [IPv6:2607:f8b0:4864:20::62f]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 010AE61FAA for ; Tue, 9 Aug 2022 16:35:55 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="nV1oNCoq"; dkim-atps=neutral Received: by mail-pl1-x62f.google.com with SMTP id z19so11532305plb.1 for ; Tue, 09 Aug 2022 07:35:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=vNR0lUuQ5E+y+FRFJFvI2Y3/fs4OnyIpGlFS1UpfDHo=; b=nV1oNCoqPjqJnZ3ANk3GUV8kXZh/EcTU0N5UBwoDW3BX1Ibz+PPzdwzQ8nFVgVxBgw YAzbrr3N5gFFjNCTzupHTjXL8Pv2eCySSyIp6Gcz64RneYcVdz2V7n188XJa45Y3w7S9 o9/WmzP0ifRFTREb68huqDqHkOQwCMMx57t9IBiW5Zn/kIc6JwkkNe8T1Fg1vr7mSGQy iaAakaocy6M4iKe0SQCHOpYeShzLZDUbcQLUZyBzwf1gNxbKs3/bdWOcErEbjIqhhNid uVssRDzYP61xODswITk0Od83PRqoiEKVV1RijYICXIuCWTZwU7ePTj/l5j87oN20xj1r zRPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=vNR0lUuQ5E+y+FRFJFvI2Y3/fs4OnyIpGlFS1UpfDHo=; b=S8a+98sZDwMhiqFR3O6no3TFrAfq//eQ+XrTyEqBH3rYXSGzmyaqPLrAdulSm6Tsv8 N8ijAliDdg6AP5oJZmcWFCTjVUlv95A6i+eAgjyGXuqVEq+j7ZVG/prrx1KnsZ9uEN09 kWZYKEDdL+69cvVq39k33yZLKO5H5/Tv2ia0sJhmft0F1s75y2jq3eOMmMdZnn3ngFSw 0W7ZexFSF6aG0SlQ+VD3mXc42j+sWf77X6Onkr89zeiNFps99ilZj56QX1pbeRV8i4zX Bl3YkOYBAO+HOPyvb9krkt6pTCoyP7J5rV7XVxcCEFP5LpjNf7LifVgWbWnWCr6oZ8Ps mIyA== X-Gm-Message-State: ACgBeo0hQOdJo9W4cNaiK1MXB27FGLFfQVsTzEKS/ksbzk1KlEPVRBiR GzsJNvmv9otqJlTREGn1m8WUpdmYKbgqYpnx X-Google-Smtp-Source: AA6agR7YAb4VO0ZUe4LbmZnDHR4/TicEkgb2KaL77U9599fGyLjWN4APFAGpHWcaBfiF12pdyhEHhg== X-Received: by 2002:a17:902:a982:b0:170:d646:5851 with SMTP id bh2-20020a170902a98200b00170d6465851mr4997419plb.134.1660055754094; Tue, 09 Aug 2022 07:35:54 -0700 (PDT) Received: from localhost.localdomain ([49.36.99.220]) by smtp.googlemail.com with ESMTPSA id h12-20020a17090ac38c00b001f4fb21c11asm10269264pjt.21.2022.08.09.07.35.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Aug 2022 07:35:53 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Tue, 9 Aug 2022 20:05:29 +0530 Message-Id: <20220809143531.7473-1-rishikeshdonadkar@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/2] Multiple colorimetry support for libcamerasrc. 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: Rishikesh Donadkar via libcamera-devel From: Rishikesh Donadkar Reply-To: Rishikesh Donadkar Cc: Rishikesh Donadkar , nicolas.dufresne@collabora.com, vedantparanjape160201@gmail.com Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" GStreamer pipeline supports passing multiple colorimetry as a comma separated list. For Example : gst-launch-1.0 libcamerasrc ! "video/x-raw,colorimetry={bt2020,bt709,sRGB}" ! glimagesink In this case, if supported by the camera one of bt2020, bt709, sRGB should be applied. This series aims to adds multiple colorimetry support to the libcamera gstreamer element. --- changes form v1 to v2: - Moved the function colorspace_from_colorimetry() from PATCH 1/2 to PATCH 2/2. - Fixed spellings and grammar. --- Rishikesh Donadkar (2): gstreamer: Provide ColorSpace => colorimetry mappings gstreamer: Add multiple colorimetry support src/gstreamer/gstlibcamera-utils.cpp | 223 ++++++++++++++++++++++++++- src/gstreamer/gstlibcamera-utils.h | 4 +- src/gstreamer/gstlibcamerasrc.cpp | 3 +- 3 files changed, 224 insertions(+), 6 deletions(-)