Show a patch.

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

{
    "id": 10967,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/10967/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/10967/",
    "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": "<20210123051704.188117-3-paul.elder@ideasonboard.com>",
    "date": "2021-01-23T05:16:58",
    "name": "[libcamera-devel,v3,2/8] android: jpeg: exif: Fix setOrientation EXIF values",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "bb3fb3a0058e217e305272f78b57dec2c67fb55b",
    "submitter": {
        "id": 17,
        "url": "https://patchwork.libcamera.org/api/1.1/people/17/?format=api",
        "name": "Paul Elder",
        "email": "paul.elder@ideasonboard.com"
    },
    "delegate": {
        "id": 17,
        "url": "https://patchwork.libcamera.org/api/1.1/users/17/?format=api",
        "username": "epaul",
        "first_name": "Paul",
        "last_name": "Elder",
        "email": "paul.elder@ideasonboard.com"
    },
    "mbox": "https://patchwork.libcamera.org/patch/10967/mbox/",
    "series": [
        {
            "id": 1601,
            "url": "https://patchwork.libcamera.org/api/1.1/series/1601/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1601",
            "date": "2021-01-23T05:16:56",
            "name": "Fill in android result metadata and EXIF tabs",
            "version": 3,
            "mbox": "https://patchwork.libcamera.org/series/1601/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/10967/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/10967/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 943AFC0F2B\n\tfor <parsemail@patchwork.libcamera.org>;\n\tSat, 23 Jan 2021 05:17:19 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 5EF6F6828F;\n\tSat, 23 Jan 2021 06:17:19 +0100 (CET)",
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 6E11F6827C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 23 Jan 2021 06:17:18 +0100 (CET)",
            "from pyrite.rasen.tech (unknown\n\t[IPv6:2400:4051:61:600:2c71:1b79:d06d:5032])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 8C4F78AE;\n\tSat, 23 Jan 2021 06:17:16 +0100 (CET)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"FWXpv93r\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1611379038;\n\tbh=jHTXVB+m5+o+aUCtFb/59jK9ktOvjGcW2WdLzFFTgbA=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=FWXpv93r1ot8IwbrCE7XI1P5PUmHTXdMYx8ljsTSeRjKOS4bKLVkpwC5lm5LFzoTo\n\t1H/wouBX8JBQ29GK9n1CwoxJjutmwam9BmZiLB4ISe+Mw+ZPlc7jipaFEKw3J/kzN6\n\tLV/m9Q8IbjyOLW7amvApbaTFzzWXwuzAzyMDscWw=",
        "From": "Paul Elder <paul.elder@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Sat, 23 Jan 2021 14:16:58 +0900",
        "Message-Id": "<20210123051704.188117-3-paul.elder@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.27.0",
        "In-Reply-To": "<20210123051704.188117-1-paul.elder@ideasonboard.com>",
        "References": "<20210123051704.188117-1-paul.elder@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Subject": "[libcamera-devel] [PATCH v3 2/8] android: jpeg: exif: Fix\n\tsetOrientation EXIF values",
        "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": "The input to setOrientation is angle clockwise from the sensor\norientation, while the EXIF output values were swapped for 90\nand 270 degrees.\n\nFrom the EXIF spec:\n\n6 = The 0th row is the visual right-hand side of the image, and the\n    0th column is the visual top.\n8 = The 0th row is the visual left-hand side of the image, and the\n    0th column is the visual bottom.\n\n6 should be 90 degrees clockwise, while 8 should 270 degrees clockwise.\nFix this.\n\nAs Android defines the rotation as the clockwise angle by which the\nimage needs to be rotated to appear in the correct orientation on the\ndevice screen, the previous values would be correct if the input angle\nwas from the camera orientation. Since the correct input should be the\nrequested JPEG orientation, these new values are the correct ones.\n\nSigned-off-by: Paul Elder <paul.elder@ideasonboard.com>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n\n---\nNo change in v3\n\nChanges in v2\n- expand commit message\n---\n src/android/jpeg/exif.cpp | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/src/android/jpeg/exif.cpp b/src/android/jpeg/exif.cpp\nindex 5d9492fb..d4f86006 100644\n--- a/src/android/jpeg/exif.cpp\n+++ b/src/android/jpeg/exif.cpp\n@@ -307,13 +307,13 @@ void Exif::setOrientation(int orientation)\n \t\tvalue = 1;\n \t\tbreak;\n \tcase 90:\n-\t\tvalue = 8;\n+\t\tvalue = 6;\n \t\tbreak;\n \tcase 180:\n \t\tvalue = 3;\n \t\tbreak;\n \tcase 270:\n-\t\tvalue = 6;\n+\t\tvalue = 8;\n \t\tbreak;\n \t}\n \n",
    "prefixes": [
        "libcamera-devel",
        "v3",
        "2/8"
    ]
}