Show a patch.

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

{
    "id": 16303,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/16303/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/16303/",
    "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": "<20220621230826.23906-2-laurent.pinchart@ideasonboard.com>",
    "date": "2022-06-21T23:08:26",
    "name": "[libcamera-devel,2/2] README: Add short testing instructions with cam",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "a79f263ec1045a507867c59b6f9379586c5b6a22",
    "submitter": {
        "id": 2,
        "url": "https://patchwork.libcamera.org/api/1.1/people/2/?format=api",
        "name": "Laurent Pinchart",
        "email": "laurent.pinchart@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/16303/mbox/",
    "series": [
        {
            "id": 3199,
            "url": "https://patchwork.libcamera.org/api/1.1/series/3199/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3199",
            "date": "2022-06-21T23:08:25",
            "name": "[libcamera-devel,1/2] Documentation: Fix length of title underlines",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/3199/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/16303/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/16303/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 38036BD808\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 21 Jun 2022 23:08:50 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 31D786563E;\n\tWed, 22 Jun 2022 01:08:48 +0200 (CEST)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 03D1C65631\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 22 Jun 2022 01:08:47 +0200 (CEST)",
            "from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 9297659D;\n\tWed, 22 Jun 2022 01:08:46 +0200 (CEST)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1655852928;\n\tbh=6pV7nNbcDYEYbk5M+t+WrGYwbzWlut2/W0e0IYso5As=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:\n\tFrom;\n\tb=VxNhgxAo+16a+KD2PnsFRtQ6xMljCUMyaNFyW+U5HMtRRvZvrRDIvTJAdIolSOrwf\n\tJdLAp8+YwViol0oA84dXki/OwSMZ5UTH2Mmts/JEZaSSydcxbB2VJ5HeSDXH41l/Fy\n\tIt9nw3enf/ZpTbVaDzOAvg/uGOsn24jLwaBpsBNdUZhnhut7MQXG46/i8OHUMNlH1B\n\tIeEwDHUkWkD3g7iFTgiPGVi8oi1vMYj1elKphMfS777XfsOZ0xWs6lhfRXyJtXC/7K\n\tzGX0jzDQUvgEwGH+5GfzmGpTv1rPCZpd659DAYeBQEAOawaEhuqipl4JzpH18m74gS\n\tdu+4P9iCYLrXg==",
            "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1655852926;\n\tbh=6pV7nNbcDYEYbk5M+t+WrGYwbzWlut2/W0e0IYso5As=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=q54U/OcsZRzZ5SPDQjkpXoAkjmxDyp3pkSp2FNmH4pHfFqPpA8crZ8ghIWlIhqqYk\n\tYSbWkE/lwLOH64g1vurN6cB0bsWFaliFW+YJYOI9f92qk/mrCCUS6zuJWwqM+Ysnhn\n\tA4H+tU0/7ITWo0LCAmIcoGbPOIjHGI0XK/wS2kW4="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"q54U/Ocs\"; dkim-atps=neutral",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Wed, 22 Jun 2022 02:08:26 +0300",
        "Message-Id": "<20220621230826.23906-2-laurent.pinchart@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.35.1",
        "In-Reply-To": "<20220621230826.23906-1-laurent.pinchart@ideasonboard.com>",
        "References": "<20220621230826.23906-1-laurent.pinchart@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 2/2] README: Add short testing\n\tinstructions with cam",
        "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>",
        "From": "Laurent Pinchart via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>",
        "Reply-To": "Laurent Pinchart <laurent.pinchart@ideasonboard.com>",
        "Cc": "Pavel Machek <pavel@ucw.cz>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "The README.rst file contains the getting started instructions, but lacks\na simple way to test libcamera. Add a short section about basic cam\nusage.\n\nSuggested-by: Pavel Machek <pavel@ucw.cz>\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n Documentation/environment_variables.rst |  2 ++\n README.rst                              | 15 +++++++++++++++\n 2 files changed, 17 insertions(+)",
    "diff": "diff --git a/Documentation/environment_variables.rst b/Documentation/environment_variables.rst\nindex f092cbbd29c5..dcfdb1a33a32 100644\n--- a/Documentation/environment_variables.rst\n+++ b/Documentation/environment_variables.rst\n@@ -86,6 +86,8 @@ global environment:\n    :~$ export LIBCAMERA_LOG_LEVELS='Camera:DEBUG,V4L2:DEBUG'\n    :~$ cam --list\n \n+.. _log levels:\n+\n Log levels\n ~~~~~~~~~~\n \ndiff --git a/README.rst b/README.rst\nindex f81d6e2e7867..578aa19f0f54 100644\n--- a/README.rst\n+++ b/README.rst\n@@ -101,6 +101,21 @@ for android: [optional]\n for lc-compliance: [optional]\n         libevent-dev\n \n+Basic testing with cam utility\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+The ``cam`` utility can be used for basic testing. You can list the cameras\n+detected on the system with ``cam -l``, and capture ten frames from the first\n+camera and save them to disk with ``cam -c 1 --capture=10 --file``. See\n+``cam -h`` for more information about the ``cam`` tool.\n+\n+In case of problems, a detailed debug log can be obtained from libcamera by\n+setting the :ref:`LIBCAMERA_LOG_LEVELS <log levels>` environment variable:\n+\n+.. code::\n+\n+    :~$ LIBCAMERA_LOG_LEVELS=*:DEBUG cam -l\n+\n Using GStreamer plugin\n ~~~~~~~~~~~~~~~~~~~~~~\n \n",
    "prefixes": [
        "libcamera-devel",
        "2/2"
    ]
}