From patchwork Sun Aug 7 12:12:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rishikesh Donadkar X-Patchwork-Id: 17009 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 4B9A4BE173 for ; Sun, 7 Aug 2022 12:13:20 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 642A96332B; Sun, 7 Aug 2022 14:13:19 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1659874399; bh=g7qRcCzS3nw3XbX3fmOWgrECwtuph4emoQ9+nD2xtZ4=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=2Nh36ubcbgdODqCHJ/mMu4CjS33034uFZRtX/1UxcnVeQ2v2TAaAidr1MraCXbK14 44hTELmQh2Y7SnDqmVtpn9wpnKgbTG278OwiItMGO7PTuxcXxF2AX4ieOvjsZ3yc3v uZ6dY+87WEnpl8PM2BiGu0yQmt3IqXsY90SaWYXC0vOF7mn1Ri+Xc37A+Fa+t+bbZE m+f2btcZcTckN3ythawwnAI8nZb5cwRxlRLhqc1RlNFblYMbB+z57sH9Y9NLHhmrDd wZQLA6DAIyfBuK/ldSZ8/c5xm/HomRP8C/00VHNZVMrnbF07+fMuA8oFyFNgXHkjYA Qt1EGTuPP4qTQ== Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id A9BCD63312 for ; Sun, 7 Aug 2022 14:13:17 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="E5/HPoA2"; dkim-atps=neutral Received: by mail-pj1-x1032.google.com with SMTP id t2-20020a17090a4e4200b001f21572f3a4so6832140pjl.0 for ; Sun, 07 Aug 2022 05:13:17 -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=e67xBTsF2FHKblEyCmuy171iqhriZfDW/Ly7BxwahQo=; b=E5/HPoA2fsLbyddAoghy11GwXkWV5z9aK7EO5AA0JP4YFyyMZc5HdwExlgYgY9w8s8 T09Ttf0Nvu9qOx+pZlBGPnyICRKC84Q6q0WW81QzPhoOddH1ccZS5ZVi0YsKeYfFaAO1 Q2v2r/av48js02pqP1RpW7tOyPPaI6GzdB9HDm1oYdw5yP8EJTEnYwAyFrO0Wun1JX22 PXWnJn0ockglJFaaYLo2JFHRTiVhtThUJmhg3IFAaMQIcbJ7Py37LGZBD/zBFGvgKJpt 5SkvMJ0KfwyaWvLJ/C+r1G4gg1aFVEQCTNM8RJ/mHPfvDDOrs4axs2p5nSoh7geP12Y3 RK5Q== 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=e67xBTsF2FHKblEyCmuy171iqhriZfDW/Ly7BxwahQo=; b=r+HYdZGHgdH2m0afcfoEVb3zWnESwIycs8AbST0WzadhtppS37d9zT6+zNL26sMUu7 d6Rfl3NiznbJVXRi8PF9SwI3L1t2yxvpqeLi3A5KeSNLqk/rONrrsytucwtTIJGf0zx6 cs/nIcwbVZXEoy/J8VSqrL2GcnJgiS0ALDfJIxmDBBLnCRP1qeaB4jRLYHtJG175IVuO +WMPrxG6PK0SWbiVSCHcyq8RFWHwSmJz6i2H1MbYGRaocWIiEPuSC4r7EPaENIixm5xd xF6FHBC+HtqxJ7Kmk6HF4Bn8Sp4bYNGobA4y5huqgEWO6vRw5tzv8Bzac1Bp+/sN/xQ1 mMGw== X-Gm-Message-State: ACgBeo07WXLqJaeLNJVawgnGHl4jMHl/TjxXehxiVxBFf69Y+Ww0pN8n BmWIAme7HQ82OEl/j+RFGE2UEZi+s+IvcW1k X-Google-Smtp-Source: AA6agR7kgJyWaNXzVlJ+lyO5Tp0q5Q6k9c9HmQNs5DDYJbyHzUlF6ubmguqE1NWNCbAoCRCphj69Kg== X-Received: by 2002:a17:902:d544:b0:170:874f:f6df with SMTP id z4-20020a170902d54400b00170874ff6dfmr8267791plf.41.1659874395798; Sun, 07 Aug 2022 05:13:15 -0700 (PDT) Received: from localhost.localdomain ([49.36.99.220]) by smtp.googlemail.com with ESMTPSA id 78-20020a621651000000b0052d3ea78858sm6454883pfw.127.2022.08.07.05.13.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Aug 2022 05:13:15 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Sun, 7 Aug 2022 17:42:31 +0530 Message-Id: <20220807121233.18353-1-rishikeshdonadkar@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v1 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 , 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. Rishikesh Donadkar (2): gstreamer: Provide colorimetry <> ColorSpace 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(-)