From patchwork Thu Jul 7 09:43:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rishikesh Donadkar X-Patchwork-Id: 16566 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 D89A0BE173 for ; Thu, 7 Jul 2022 09:44:34 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 1EFA463312; Thu, 7 Jul 2022 11:44:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1657187074; bh=D8NQ1aSLU/h5Y0Z4WgyNt26SsiOfP08YE4Ohq20cgB0=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=hZ+Y94JDkMioAnKp/46Rwg1h86Zs7kf70UUwteGdJHQ+RGpZ6Cb1eB/j6dBRH5v6U 7tDv/n0aQF0dzw+hkxR6lezQjlNnvaQKExWw7JBHrbTwIyDUc1IVoMZJB4Fu6ZKhru 4JHMbmN0aBmPfUYkeRT3zKhjofGOTSLO1FQ70GKyde1DZhte9pV9dUHwzp0ulfbJVW Ln5eKbycbMznbZs4xvioxqBYg4vXn7a7nXt6DunDHrOipWyIaLUoQR3TXWNnef6K/V wvwReerGpt6B1SRuLlu3YRY/pxGeqnfOxf3s8XDsyqV4OTnY5VcxJmzeHw1mzVEhJq 4PlfwLdd2FViA== Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id BD6DB60401 for ; Thu, 7 Jul 2022 11:44:32 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="eEoItTEG"; dkim-atps=neutral Received: by mail-pf1-x430.google.com with SMTP id g126so3861701pfb.3 for ; Thu, 07 Jul 2022 02:44:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iuQ4o7hOnZAiXoYVOqEQIWedSLyK1k5dfDbs7iOpODU=; b=eEoItTEGnVpmbqTiBfsTZ4COzM4T4ty2+gfKfDL2Gw6XRK7jD82MYa+HDAwUzULsIx xM22wDRO3kANrU0ioTNS1g32BeBk/is1HDuqJbjiekYswL6LoGfng7mNTDQIDT67Rn9L EIC92UMZz8akxvx0HQ3ze27tddA2WMxE4dEqeeTPR+HnswBFYGeeUVzvsCanes1YQf1+ GQr6RZ2hgjHRmrFKVaeW+pCKJTxSA9m3C1Yv4BRK9bNK2HqQx7qevjUAQ2znZYnRyqF5 s9nEBBWD5LNCY8yJRy/pFQ7P0GkMux7RWldBk1d+KenZrEHrBraBUnJcVNciecGgjs7G Dj8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=iuQ4o7hOnZAiXoYVOqEQIWedSLyK1k5dfDbs7iOpODU=; b=pl4mMu/ZVsi5rsBkTIlsVojniRppt6W7MvQQhpPkqA3H3/RTooMqGLBgMU3hGeMpSJ 2Sexy9psjTj7lEuEB9uqB7QofxxVefhpRyUbmKZfdv0ON5lbbhSs+z5HHIQ5TwMJU1yc Fs6bLTBtnzi011JBw7z9vu6fPqPEqjaua2tVXbt/iEN/zSuGetU0xULCNieQr4aTyq4T ewzceJ9hYrHK6fO1sTWL72erts8MG6arc+0pphkKNLIgnx4gvXnzGLYYy3eQxnZtFwfx KOXPrYC5PECdegEimOV89SbR0kP9bebKYbg8/I7WbjWTYf8TqKdhy1JoTrOMYLnvA1yq P0wg== X-Gm-Message-State: AJIora97IJJmn49t67r4coTNLuCqgwjq4vx6TpwNlH9uUrqOY+7lzE9W FxcVX5NtQFdw2ehfdqlTequ5PCUEK64= X-Google-Smtp-Source: AGRyM1vKadcX7j4A28fVz4rsCISa/2e8pXRgs6kfYh5x9pKTt9u9i9bhwZRy6xzAi8yznxop9K2uoQ== X-Received: by 2002:a63:83c6:0:b0:412:a00d:5f63 with SMTP id h189-20020a6383c6000000b00412a00d5f63mr5775807pge.581.1657187071000; Thu, 07 Jul 2022 02:44:31 -0700 (PDT) Received: from localhost.localdomain ([2402:8100:30ae:d446:13ee:d079:112a:ac10]) by smtp.googlemail.com with ESMTPSA id p2-20020a1709027ec200b00168f08d0d12sm24530712plb.89.2022.07.07.02.44.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Jul 2022 02:44:30 -0700 (PDT) To: libcamera-devel@lists.libcamera.org Date: Thu, 7 Jul 2022 15:13:58 +0530 Message-Id: <20220707094402.28730-1-rishikeshdonadkar@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 0/4] Add colorimetry support to libcamera gstreamer element. 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" This series aims to add colorimetry support to the libcamera gstreamer element. If colorimetry is specified by the user in the gstreamer pipeline, try to apply the libcamera colorspace corresponding to the GStreamer colorimetry to the camera if the colorspace passes the validation then push the colorimetry corresponding to the valid colorspace in the caps. If the colorimetry pushed into the caps is same as requested negotiation will succeed, else negotiation will fail. If no colorimetry is specified by the user in the gstreamer pipeline, push the GStreamer colorimetry corresponding to the current colorspace applied to the camera into the caps and the negotiation will be take care of by the gstreamer. Rishikesh Donadkar (4): gstreamer: convert from libcamera colorspace toGStreamer colorimetry. gstreamer: Update the obtained colorimetry in caps. gstreamer:Convert between requested colorimetry and libcamera ColorSpace gstreamer: Configure the colorSpace in the Stream configuration. src/gstreamer/gstlibcamera-utils.cpp | 69 ++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+)