Show a patch.

GET /api/patches/3850/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 3850,
    "url": "https://patchwork.libcamera.org/api/patches/3850/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/3850/",
    "project": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/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": "<20200522145459.16836-11-laurent.pinchart@ideasonboard.com>",
    "date": "2020-05-22T14:54:57",
    "name": "[libcamera-devel,PATCH/RFC,09/11] test: Replace explicit DRM FourCCs with libcamera formats",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "8a7e16c0f304641ca8dad849ed596fd07614d107",
    "submitter": {
        "id": 2,
        "url": "https://patchwork.libcamera.org/api/people/2/?format=api",
        "name": "Laurent Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/3850/mbox/",
    "series": [
        {
            "id": 923,
            "url": "https://patchwork.libcamera.org/api/series/923/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=923",
            "date": "2020-05-22T14:54:47",
            "name": "Introduce formats:: namespace for libcamera pixel formats",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/923/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/3850/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/3850/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<laurent.pinchart@ideasonboard.com>",
        "Received": [
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 86E1561085\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 22 May 2020 16:55:22 +0200 (CEST)",
            "from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi\n\t[81.175.216.236])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 2BBA324D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 22 May 2020 16:55:22 +0200 (CEST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"bn2b88oN\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1590159322;\n\tbh=scXvpaaINCb41IpZh+g8JEnJYPs328hlpso4zGduGgo=;\n\th=From:To:Subject:Date:In-Reply-To:References:From;\n\tb=bn2b88oNupPa/caunz1xGuZ0UjGZTkXMmqPoxsgSRP2ezGyPaLt1JnDjJNvSBbUk1\n\tqmRtvUxDQ7zwwfFtTymyQWcKbsHd7uMdez634ZVEt/AZTm98ZCpH7DlDr8Jt5jUmbB\n\tjjnhQKxgvKaDYS9nhHn1+zPLXbeCvqcUsod9by2s=",
        "From": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Fri, 22 May 2020 17:54:57 +0300",
        "Message-Id": "<20200522145459.16836-11-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.26.2",
        "In-Reply-To": "<20200522145459.16836-1-laurent.pinchart@ideasonboard.com>",
        "References": "<20200522145459.16836-1-laurent.pinchart@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH/RFC 09/11] test: Replace explicit DRM\n\tFourCCs with libcamera formats",
        "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>",
        "X-List-Received-Date": "Fri, 22 May 2020 14:55:26 -0000"
    },
    "content": "Use the new pixel format constants to replace usage of macros from\ndrm_fourcc.h.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n test/v4l2_videodevice/buffer_cache.cpp | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)",
    "diff": "diff --git a/test/v4l2_videodevice/buffer_cache.cpp b/test/v4l2_videodevice/buffer_cache.cpp\nindex d730e7550377..b22de88e214c 100644\n--- a/test/v4l2_videodevice/buffer_cache.cpp\n+++ b/test/v4l2_videodevice/buffer_cache.cpp\n@@ -9,6 +9,7 @@\n #include <random>\n #include <vector>\n \n+#include <libcamera/formats.h>\n #include <libcamera/stream.h>\n \n #include \"buffer_source.h\"\n@@ -142,7 +143,7 @@ public:\n \t\tconst unsigned int numBuffers = 8;\n \n \t\tStreamConfiguration cfg;\n-\t\tcfg.pixelFormat = PixelFormat(DRM_FORMAT_YUYV);\n+\t\tcfg.pixelFormat = formats::YUYV;\n \t\tcfg.size = Size(600, 800);\n \t\tcfg.bufferCount = numBuffers;\n \n",
    "prefixes": [
        "libcamera-devel",
        "PATCH/RFC",
        "09/11"
    ]
}