From patchwork Fri Jun 18 20:02:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vedant Paranjape X-Patchwork-Id: 12655 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 87FE9C3218 for ; Fri, 18 Jun 2021 20:03:34 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 49FC368943; Fri, 18 Jun 2021 22:03:34 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="WVuco+hs"; dkim-atps=neutral Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 99D0F60298 for ; Fri, 18 Jun 2021 22:03:32 +0200 (CEST) Received: by mail-pj1-x1031.google.com with SMTP id g6-20020a17090adac6b029015d1a9a6f1aso7694042pjx.1 for ; Fri, 18 Jun 2021 13:03:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=a+aT9bwoTRcZvUsMhCXLUl4ULDFmKxQcWZQlI7JO0Ng=; b=WVuco+hsMb7gHycKcBpwJMg5PHNXHq3AREogXs9dop8mvmvm6IWu1QEkOBrdM1BIag 64kYrDvIL6+q8hFaaxj18CHA23Y5yTUgtDekUnIpjvC2xwvYpMQ+LmUiUDOKN2S6wXrl iAsKyxN68+dI3KeBAhE++6z7kFAl0yEqLvo2ELsOVXenMaJe5niFytQ/i8ioePsuxzu0 OHfZrhKnO8CWRMXXlGaeZrA9ypVT4mS679oWUzol4o97ix3eRSguCJaMN0s9+kwt3XlX 7Z8b31ycxZ4FKGVa+EcWpViIFukdQ58kmeCXv/kInP92qj7m/MUkPCTREGheRnJnp8BA d2dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=a+aT9bwoTRcZvUsMhCXLUl4ULDFmKxQcWZQlI7JO0Ng=; b=kQQGlqyMtynAQD9O8JhvHgOuh88/l8fRR5aj3ueRmHZZeXgZu9BMtghnkoJ/ELqoLd KyAutCmBcbSdhxKzb2Vn4F1eCGIEJV5VzJuo0awh+ilPPV+VfMxbpjxSBwBYdhVdcoEW mQY15WiYcE3GwPV4VeiU1HDFKvWci3s9DVzhVkO1EdnO6pXKlz4G/QRog2Sp9z4QaIAV Kp+QwQj/+xwIlXv8ldJJbDRq40Vs6VK12v6UayhiTAad4CLCs5EYvt+Qo67hsZMNLyvI Sqp2PSbB0Px/q7Ia5eWdgbyNkVGI27ubqEtulvZ/V/zSc/0Y2f/6M4vWiL7cUEO8sb8e Z3Qw== X-Gm-Message-State: AOAM532w83MGzxK26QOaK51/i4G1PF+C7KxC5/5mZWn8vU4OQPtztzdU H7WInT5GhITCg2fQD8hETzHYNoc/gs78ZQ== X-Google-Smtp-Source: ABdhPJxaw3VuwVH2e1rkqFA3aWojf4zPOA1yngLzzFAd3WBLo/WphIv01D9wlXaBDxFg6IE/fqUKmQ== X-Received: by 2002:a17:90a:20c:: with SMTP id c12mr4650678pjc.7.1624046611222; Fri, 18 Jun 2021 13:03:31 -0700 (PDT) Received: from localhost.localdomain ([1.186.76.76]) by smtp.googlemail.com with ESMTPSA id a11sm8852972pfl.168.2021.06.18.13.03.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Jun 2021 13:03:30 -0700 (PDT) From: Vedant Paranjape To: libcamera-devel@lists.libcamera.org Date: Sat, 19 Jun 2021 01:32:47 +0530 Message-Id: <20210618200247.624987-3-vedantparanjape160201@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210618200247.624987-1-vedantparanjape160201@gmail.com> References: <20210618200247.624987-1-vedantparanjape160201@gmail.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 2/2] libcamera: Update V4L2 pixel format to libcamera pixel format mapping 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: , Cc: Vedant Paranjape Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" This patch adds mapping between V4L2_PIX_FMT_RGBX32 and formats::XBGR8888 Signed-off-by: Vedant Paranjape --- src/libcamera/v4l2_pixelformat.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libcamera/v4l2_pixelformat.cpp b/src/libcamera/v4l2_pixelformat.cpp index 950cbda4..78a08303 100644 --- a/src/libcamera/v4l2_pixelformat.cpp +++ b/src/libcamera/v4l2_pixelformat.cpp @@ -52,6 +52,7 @@ const std::map vpf2pf{ { V4L2PixelFormat(V4L2_PIX_FMT_BGR24), formats::RGB888 }, { V4L2PixelFormat(V4L2_PIX_FMT_XBGR32), formats::XRGB8888 }, { V4L2PixelFormat(V4L2_PIX_FMT_XRGB32), formats::BGRX8888 }, + { V4L2PixelFormat(V4L2_PIX_FMT_RGBX32), formats::XBGR8888 }, { V4L2PixelFormat(V4L2_PIX_FMT_RGBA32), formats::ABGR8888 }, { V4L2PixelFormat(V4L2_PIX_FMT_ABGR32), formats::ARGB8888 }, { V4L2PixelFormat(V4L2_PIX_FMT_ARGB32), formats::BGRA8888 },