Patch Detail
Show a patch.
GET /api/1.1/patches/12783/?format=api
{ "id": 12783, "url": "https://patchwork.libcamera.org/api/1.1/patches/12783/?format=api", "web_url": "https://patchwork.libcamera.org/patch/12783/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20210702120850.457492-2-vedantparanjape160201@gmail.com>", "date": "2021-07-02T12:08:50", "name": "[libcamera-devel,v1,2/2] libcamera: Adds pixel format BGRX8888", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "fa58de41c3737bf6639fb6fb3ff460e1d725fb06", "submitter": { "id": 85, "url": "https://patchwork.libcamera.org/api/1.1/people/85/?format=api", "name": "Vedant Paranjape", "email": "vedantparanjape160201@gmail.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/12783/mbox/", "series": [ { "id": 2200, "url": "https://patchwork.libcamera.org/api/1.1/series/2200/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=2200", "date": "2021-07-02T12:08:49", "name": "[libcamera-devel,v1,1/2] Fixes: libcamera: Fix the V4L2 pixel format for formats::XBGR8888", "version": 1, "mbox": "https://patchwork.libcamera.org/series/2200/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/12783/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/12783/checks/", "tags": {}, "headers": { "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>", "X-Original-To": "parsemail@patchwork.libcamera.org", "Delivered-To": "parsemail@patchwork.libcamera.org", "Received": [ "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 32E1EC3220\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 2 Jul 2021 12:09:19 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id E2C8F684F6;\n\tFri, 2 Jul 2021 14:09:18 +0200 (CEST)", "from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com\n\t[IPv6:2607:f8b0:4864:20::102c])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 09923684E8\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 2 Jul 2021 14:09:18 +0200 (CEST)", "by mail-pj1-x102c.google.com with SMTP id ie21so4491668pjb.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 02 Jul 2021 05:09:17 -0700 (PDT)", "from localhost.localdomain ([1.186.167.49])\n\tby smtp.googlemail.com with ESMTPSA id\n\ti6sm3835325pgg.50.2021.07.02.05.09.13\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 02 Jul 2021 05:09:15 -0700 (PDT)" ], "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"lSjHKTTs\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=pV6FdVV/aLxdt/Tstgogr09WYrZw9Slfqnofk5vD+J0=;\n\tb=lSjHKTTsCHONSu2mgybiCU6vBz3xSdsx5X1oPr9vGh80MsZpX2BYEBJh87XdPTT60+\n\tOI5wXsboaSDJHIEcXqrMM/q/OQKNXrxDYNvO6q5KH+csXKJub84yq4DZkq4Z9Q12dXKR\n\tOm/gVF/xfS5U7gr53QQqRN3So8K8cKwHAZO0w92+Zjs920y3fzNnZng/ZgGXWtTjFLEf\n\twLgdjvMQg1IC9fCDVvnhMas/L55AgILuoysiYUGVakJm+6f+ymzXyDihbBwPIDzRcL99\n\tl932/T7f0MJbZhLJmJzDR9slPh8+9kRJHVEnbYEiOBMmx3Q82wjrpu7T9xGcJXyIFt45\n\t5j+Q==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=pV6FdVV/aLxdt/Tstgogr09WYrZw9Slfqnofk5vD+J0=;\n\tb=L+ZoU4bW5vwysTders0AWK7+qx+juEal2evlV5kXOPbJtFxMGfBGOQXb0C3tJUJn0X\n\tiyroGEyvexrfbeyR9VAyYyXyoFQgp7xafB4/4r/HKUJaNozawD1mddYbvY9x37owsDSm\n\tlxDn5L8ZjSnOzhbZicblOATx3fZIN0VgOBknYlRUqsbzFj7eLdsvDDw3JEq1FD3coD4R\n\tbbn1d8D/D2qZFXbgrBef31B2hvzPj+nVDwnrECSYxOLV9LxZYdhK3FdWIaX5W0B9PtQq\n\tgd3KaJZ4wxf6upzKYkosWni3pjbV5s18hLt3jhXphvlHY2nCfOQf8EGGSQF4HBd5y+b5\n\tQYcg==", "X-Gm-Message-State": "AOAM5334720OpU2y/NknHfONnK5zG/Ax2i1rPVkvuSWbqU/9KpEbDEh8\n\tFXwwxN3H5De2oW7hMSvZUo8RxoG+9HMmYCO0/Us=", "X-Google-Smtp-Source": "ABdhPJy9F+oIfuejyyl3qs0guRWecsOyvUdAmAGy2+IAW+jU2/m811y9waLXUYlcP2XXx4JeVLxocQ==", "X-Received": "by 2002:a17:90a:ff0e:: with SMTP id\n\tce14mr14923232pjb.204.1625227756131; \n\tFri, 02 Jul 2021 05:09:16 -0700 (PDT)", "From": "Vedant Paranjape <vedantparanjape160201@gmail.com>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Fri, 2 Jul 2021 17:38:50 +0530", "Message-Id": "<20210702120850.457492-2-vedantparanjape160201@gmail.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20210702120850.457492-1-vedantparanjape160201@gmail.com>", "References": "<20210702120850.457492-1-vedantparanjape160201@gmail.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v1 2/2] libcamera: Adds pixel format\n\tBGRX8888", "X-BeenThere": "libcamera-devel@lists.libcamera.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "<libcamera-devel.lists.libcamera.org>", "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>", "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>", "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>", "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>", "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>", "Cc": "Vedant Paranjape <vedantparanjape160201@gmail.com>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "This patch adds pixel format BGRX8888 to libcamera. Additionally adds\nmapping of V4L2 pixel format (V4L2_PIX_FMT_XRGB32) to BGRX8888.\n\nSigned-off-by: Vedant Paranjape <vedantparanjape160201@gmail.com>\n---\n src/libcamera/formats.cpp | 10 ++++++++++\n src/libcamera/v4l2_pixelformat.cpp | 1 +\n 2 files changed, 11 insertions(+)", "diff": "diff --git a/src/libcamera/formats.cpp b/src/libcamera/formats.cpp\nindex 578ac4af..8f1197de 100644\n--- a/src/libcamera/formats.cpp\n+++ b/src/libcamera/formats.cpp\n@@ -205,6 +205,16 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{\n \t\t.pixelsPerGroup = 1,\n \t\t.planes = {{ { 4, 1 }, { 0, 0 }, { 0, 0 } }},\n \t} },\n+\t{ formats::BGRX8888, {\n+\t\t.name = \"BGRX8888\",\n+\t\t.format = formats::BGRX8888,\n+\t\t.v4l2Format = V4L2PixelFormat(V4L2_PIX_FMT_XRGB32),\n+\t\t.bitsPerPixel = 32,\n+\t\t.colourEncoding = PixelFormatInfo::ColourEncodingRGB,\n+\t\t.packed = false,\n+\t\t.pixelsPerGroup = 1,\n+\t\t.planes = {{ { 4, 1 }, { 0, 0 }, { 0, 0 } }},\n+\t} },\n \t{ formats::ABGR8888, {\n \t\t.name = \"ABGR8888\",\n \t\t.format = formats::ABGR8888,\ndiff --git a/src/libcamera/v4l2_pixelformat.cpp b/src/libcamera/v4l2_pixelformat.cpp\nindex 59a01e02..93fc4446 100644\n--- a/src/libcamera/v4l2_pixelformat.cpp\n+++ b/src/libcamera/v4l2_pixelformat.cpp\n@@ -52,6 +52,7 @@ const std::map<V4L2PixelFormat, PixelFormat> vpf2pf{\n \t{ V4L2PixelFormat(V4L2_PIX_FMT_RGB24), formats::BGR888 },\n \t{ V4L2PixelFormat(V4L2_PIX_FMT_BGR24), formats::RGB888 },\n \t{ V4L2PixelFormat(V4L2_PIX_FMT_XBGR32), formats::XRGB8888 },\n+\t{ V4L2PixelFormat(V4L2_PIX_FMT_XRGB32), formats::BGRX8888 },\n \t{ V4L2PixelFormat(V4L2_PIX_FMT_RGBX32), formats::XBGR8888 },\n \t{ V4L2PixelFormat(V4L2_PIX_FMT_RGBA32), formats::ABGR8888 },\n \t{ V4L2PixelFormat(V4L2_PIX_FMT_ABGR32), formats::ARGB8888 },\n", "prefixes": [ "libcamera-devel", "v1", "2/2" ] }