Show a patch.

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

{
    "id": 11654,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/11654/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/11654/",
    "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": "<20210323080231.3389137-1-hiroh@chromium.org>",
    "date": "2021-03-23T08:02:31",
    "name": "[libcamera-devel] android: exif: Contain IMAGE_WIDTH and IMAGE_LENGTH data",
    "commit_ref": null,
    "pull_url": null,
    "state": "deferred",
    "archived": false,
    "hash": "94df72685c24e8002abfd86cb1ca3ca61c1e9462",
    "submitter": {
        "id": 63,
        "url": "https://patchwork.libcamera.org/api/1.1/people/63/?format=api",
        "name": "Hirokazu Honda",
        "email": "hiroh@chromium.org"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/11654/mbox/",
    "series": [
        {
            "id": 1818,
            "url": "https://patchwork.libcamera.org/api/1.1/series/1818/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1818",
            "date": "2021-03-23T08:02:31",
            "name": "[libcamera-devel] android: exif: Contain IMAGE_WIDTH and IMAGE_LENGTH data",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/1818/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/11654/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/11654/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 11CF2C32E5\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue, 23 Mar 2021 08:02:43 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 5773E68D69;\n\tTue, 23 Mar 2021 09:02:42 +0100 (CET)",
            "from mail-pf1-x436.google.com (mail-pf1-x436.google.com\n\t[IPv6:2607:f8b0:4864:20::436])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id EE209602DB\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 23 Mar 2021 09:02:39 +0100 (CET)",
            "by mail-pf1-x436.google.com with SMTP id x126so13472260pfc.13\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 23 Mar 2021 01:02:39 -0700 (PDT)",
            "from hiroh2.tok.corp.google.com\n\t([2401:fa00:8f:2:8115:e5cc:747b:64de])\n\tby smtp.gmail.com with ESMTPSA id\n\tj20sm2240256pji.3.2021.03.23.01.02.36\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 23 Mar 2021 01:02:37 -0700 (PDT)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=chromium.org header.i=@chromium.org\n\theader.b=\"m7aZMdzo\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org;\n\ts=google; h=from:to:cc:subject:date:message-id:mime-version\n\t:content-transfer-encoding;\n\tbh=95SIiCXBR1XUHASgEzilGxCLaldgcIWx7ba3yX/OiLk=;\n\tb=m7aZMdzoXOWbwI/V5Ya/8RePLN7t0LJ+sSUoo93pGO3ayJ2ElRNEhQZEuN6yD9XS79\n\tQe15bzxyWeZhWEWshaDOFbMwjJbwiIeodRjAfAH0lQ6+ozutPSDg03AgF7aozK1e85Q8\n\tKnFojpE7E12EIti4cgv01JI16M5ygpHrBURng=",
        "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:mime-version\n\t:content-transfer-encoding;\n\tbh=95SIiCXBR1XUHASgEzilGxCLaldgcIWx7ba3yX/OiLk=;\n\tb=CO0OGYz26kMpCP5wLiRFZoB5ldTKsCunvyPErvI971jWRYn0195QxQH8H5sgS6TNSS\n\tReaIdiWhaDjD8k62TffMdv0HikncfOqlrgdt63ixG/tKQgh3TtqMeugt/6EnCQAnMyq4\n\tgfGCg6CbXUnBNtoOtCf/6w6uh4KvsL0y8D8SgxxPCvS2lZQxdpKC0aMDkEDHOY9wSBDg\n\ttigpIynFtnx3ZE0f/Zsl8+pvvrvA/K+BdASaIq/YLf7RtOSsopDkRdzucYhooXQzsCx8\n\tdVOayf4v8zpciQV8RMt0uV2UDdvRX04IsuRSyp2niRshumxR/DNHr6SFJK5rfZmJ+eQV\n\tZovQ==",
        "X-Gm-Message-State": "AOAM531uOzvexKlJA9+biFh/IjzRKWYxLQiTwkMCPM5J6TiR+HaobHSB\n\t4ZVEBsiuq314TFu1dG0aQOijuVX7ll//Fw==",
        "X-Google-Smtp-Source": "ABdhPJx9HTiSJ+rrjCxeQNUt7BBLwiS4WWezLJSgxzujb2h8zgLSaCs/3satIm6mwW6X8AzuHQf0Kw==",
        "X-Received": "by 2002:a17:902:f242:b029:e4:6dfc:8c1f with SMTP id\n\tj2-20020a170902f242b02900e46dfc8c1fmr4173930plc.0.1616486557727; \n\tTue, 23 Mar 2021 01:02:37 -0700 (PDT)",
        "From": "Hirokazu Honda <hiroh@chromium.org>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Tue, 23 Mar 2021 17:02:31 +0900",
        "Message-Id": "<20210323080231.3389137-1-hiroh@chromium.org>",
        "X-Mailer": "git-send-email 2.31.0.rc2.261.g7f71774620-goog",
        "MIME-Version": "1.0",
        "Subject": "[libcamera-devel] [PATCH] android: exif: Contain IMAGE_WIDTH and\n\tIMAGE_LENGTH data",
        "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>",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "ChromeOS camera test checks if exif data has the IMAGE_WIDTH and\nIMAGE_LENGTH and they are the same as the requested jpeg size.\nThis adds the resolution data to exif.\n\nSigned-off-by: Hirokazu Honda <hiroh@chromium.org>\n\n---\n src/android/jpeg/exif.cpp | 2 ++\n 1 file changed, 2 insertions(+)\n\n--\n2.31.0.rc2.261.g7f71774620-goog",
    "diff": "diff --git a/src/android/jpeg/exif.cpp b/src/android/jpeg/exif.cpp\nindex 922086cd..29c7be0f 100644\n--- a/src/android/jpeg/exif.cpp\n+++ b/src/android/jpeg/exif.cpp\n@@ -286,6 +286,8 @@ void Exif::setModel(const std::string &model)\n\n void Exif::setSize(const Size &size)\n {\n+\tsetLong(EXIF_IFD_0, EXIF_TAG_IMAGE_LENGTH, size.height);\n+\tsetLong(EXIF_IFD_0, EXIF_TAG_IMAGE_WIDTH, size.width);\n \tsetLong(EXIF_IFD_EXIF, EXIF_TAG_PIXEL_Y_DIMENSION, size.height);\n \tsetLong(EXIF_IFD_EXIF, EXIF_TAG_PIXEL_X_DIMENSION, size.width);\n }\n",
    "prefixes": [
        "libcamera-devel"
    ]
}