From patchwork Fri Jun 18 20:02:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vedant Paranjape X-Patchwork-Id: 12653 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 36A7DC3218 for ; Fri, 18 Jun 2021 20:03:25 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8BEBD68942; Fri, 18 Jun 2021 22:03:24 +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="GUAkk+hp"; dkim-atps=neutral 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 78C5660298 for ; Fri, 18 Jun 2021 22:03:23 +0200 (CEST) Received: by mail-pf1-x430.google.com with SMTP id z26so8528428pfj.5 for ; Fri, 18 Jun 2021 13:03:23 -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:mime-version :content-transfer-encoding; bh=zHzl3AFg9jQ6y6uJTUZ59uD8uDslii/00mVygP3nwQI=; b=GUAkk+hpvfSytVGgNF6s+jN6loqFX6l2r6Cj6oUQd7XDgTtvZ6fACa91Jh20xlRTZ5 YlZFyP/wMDKZsfMMKTr5Z0sobJNhQorWnpnAoGk11LexPet7qO/nCZlQ5pgtqe1DKpTr Qsff/qiDUtw6exFhctsny4NPn+ElM47ab/C/9XqqPlx5PNi76SDyWsJM8X8o2K7GpJq1 ufT6RCWo8+Eox8Cw4+aZNe+qENSfquyoinJPDClJ/FV+ZqoBvX9Vc4zBtvqN6axuIgSy m4aK61oAi0dLM6QbuzOZP8fo2obn/2qbIInDd2ZuVFuWWaRM/57CouA9AmrCZu84DqdY oZXg== 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:mime-version :content-transfer-encoding; bh=zHzl3AFg9jQ6y6uJTUZ59uD8uDslii/00mVygP3nwQI=; b=W6OpmXrwFLNf29VX9rfDGkd9cFDKfkmYoUFp4z5NnKsAR4I25PqgMyp7W6wWPepIIL GNxl669T4zao6+t/5lW37HkkTO9Dkz2cLID12VM8eP51ObxeZsouSRltB2vrABiUSQc8 Da89JzmMA4cDMhTVwk/kVT51ISZ9dnzr70pgxXvYgp926sr2vTB1Y+5S150OijGIIr6W c7YDp+3EzvbqlWxWKxV7P9FMIE4G00wIogZk3N9Aqh8+9y0PS9c0p8KTWVR2ygXPZvjG NuPkPSZJmfPI1+bic9xuq2J6GC21Z4UR2cJx9FucV6J5gHSMuohMeiVsbD36jDa0LvUG 1mJA== X-Gm-Message-State: AOAM530gWeSz06CEvK2JQWdlbH0Aga/TjIRsf4P6nv4qkYQOtFkkQPPZ KbZesnNN1kCnZggO2SRbCLSdFQb0SHbvqg== X-Google-Smtp-Source: ABdhPJz5zVEuMFmaHbS/LYIVrIzb34gpG1Ct9pORR6DeSCPESOAr2f/YOivJca6sa3EwOwvXvOVFDw== X-Received: by 2002:aa7:9983:0:b029:2ea:2408:386d with SMTP id k3-20020aa799830000b02902ea2408386dmr6648272pfh.13.1624046601801; Fri, 18 Jun 2021 13:03:21 -0700 (PDT) Received: from localhost.localdomain ([1.186.76.76]) by smtp.googlemail.com with ESMTPSA id a11sm8852972pfl.168.2021.06.18.13.03.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Jun 2021 13:03:21 -0700 (PDT) From: Vedant Paranjape To: libcamera-devel@lists.libcamera.org Date: Sat, 19 Jun 2021 01:32:45 +0530 Message-Id: <20210618200247.624987-1-vedantparanjape160201@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 0/2] Fixed mismatch of pixel formats of V4L2 and libcamera 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" On running libcamera gstreamer element on Raspberry Pi 4B+, there was a warning as follows: [3:23:59.717513107] [3577] WARN V4L2 v4l2_pixelformat.cpp:180 Unsupported V4L2 pixel format XB24 This patchset fixes the following warning, by updating the existing mapping of V4L2_PIX_FMT_XRGB32 to libcamera pixel format. Additionally, adds a new mapping of V4L2_PIX_FMT_RBGX32 to formats::XBGR8888 Vedant Paranjape (2): libcamera: Fix V4L2 pixel format mapping for XRGB32 libcamera: Update V4L2 pixel format to libcamera pixel format mapping src/libcamera/formats.cpp | 12 +++++++++++- src/libcamera/v4l2_pixelformat.cpp | 3 ++- 2 files changed, 13 insertions(+), 2 deletions(-)