Show a patch.

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

{
    "id": 9513,
    "url": "https://patchwork.libcamera.org/api/patches/9513/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/9513/",
    "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": "<20200907164450.13082-3-david.plowman@raspberrypi.com>",
    "date": "2020-09-07T16:44:48",
    "name": "[libcamera-devel,RFC,2/4] libcamera: Add SensorCrop control",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "8600b3a97e60f69636b56278827c5e9914e3ab38",
    "submitter": {
        "id": 42,
        "url": "https://patchwork.libcamera.org/api/people/42/?format=api",
        "name": "David Plowman",
        "email": "david.plowman@raspberrypi.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/9513/mbox/",
    "series": [
        {
            "id": 1270,
            "url": "https://patchwork.libcamera.org/api/series/1270/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1270",
            "date": "2020-09-07T16:44:46",
            "name": "Digital zoom",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/1270/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/9513/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/9513/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 65100BDB1C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon,  7 Sep 2020 16:45:00 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 2F1E762B90;\n\tMon,  7 Sep 2020 18:45:00 +0200 (CEST)",
            "from mail-wr1-x441.google.com (mail-wr1-x441.google.com\n\t[IPv6:2a00:1450:4864:20::441])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 6607A60372\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon,  7 Sep 2020 18:44:57 +0200 (CEST)",
            "by mail-wr1-x441.google.com with SMTP id z1so16479083wrt.3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 07 Sep 2020 09:44:57 -0700 (PDT)",
            "from pi4-davidp.lan (plowpeople3.plus.com. [80.229.223.72])\n\tby smtp.gmail.com with ESMTPSA id\n\tv3sm27707033wmh.6.2020.09.07.09.44.56\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 07 Sep 2020 09:44:56 -0700 (PDT)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=raspberrypi.com header.i=@raspberrypi.com\n\theader.b=\"SdNYWQw/\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=cS3PuvAp3Llsuq3WC0FESFzYKEwZc+lcHlaZ68hADTM=;\n\tb=SdNYWQw/n80vbBEPOqU/tT6CVH21UZqRmWGJd4Nxddar2NLYEnboa9itKQ597+S5pT\n\t6KPcPjmfh9oKJYfD6oFlgs9ZcqcU+5dzwY8cZHIllt5qocs8EIbsFC5wg/KpA3B4aL2Y\n\tNv5q72IQ/iyakjexhf1foHWSuVyCbO3qOW9alI+Z1RcN0qeXXsZNnmLsTH1UnYvkszAV\n\tji1UVNbC+mCoZZodkk1IXP3ImBBJK/1QL2Fabgsqo6FC3Js13GBFewN+YLXLn2QQkMkd\n\tnTpx1+mDdDnrNLoOjXu3OikwJOPjz/EX0eABA/TxotgyrITlQgmLUsAj7GxxP+Ozd1aN\n\thV4Q==",
        "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=cS3PuvAp3Llsuq3WC0FESFzYKEwZc+lcHlaZ68hADTM=;\n\tb=jwzbGcEB6KWt/5whcpniHkSgVR4GAjNPlQ/kXAJCD2D0+OwPG38xxiYRRUpsOvnPFe\n\tmKaQAC3uEn7kq9Kz9wVIqeA7LAbffDRhSOrCRJXnObd4AP61VgTdXRj4ATbymZ3IrraP\n\tQbjIEaY/T09/bS8l5Qoy4L0m5VUuQ+VlihxPi8gdVumEfwXOry25K3gNhbGPWGGpGAP2\n\txuVrHHT2pilpObdQpHVr25pffInnx/CD0DX0liBi7RFkeuNgp0tjOISQ+6wlrNpTd+GD\n\tNuXVywR6RogFXbASX2d3YnseL1ceLLDNp1c+0B8FDOk6LLV517+DxH1qHk89p/W5IwGJ\n\tgQbw==",
        "X-Gm-Message-State": "AOAM533cv5S8w58ynLtjagXR1NeEOOt1FhzqhNko4FeKDtZe3gcbdDbs\n\tD6y/SVedzX1bOSzA7lnovySwWiOy/I1yRw==",
        "X-Google-Smtp-Source": "ABdhPJyOcbZr11BFyk3rQPmcmWE1C4AnEOPL1dgZc8CuIvXmhml1YVry5YNhmFUJZ4gTq6QhbLtkoQ==",
        "X-Received": "by 2002:adf:e7ce:: with SMTP id\n\te14mr21718783wrn.43.1599497096942; \n\tMon, 07 Sep 2020 09:44:56 -0700 (PDT)",
        "From": "David Plowman <david.plowman@raspberrypi.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Mon,  7 Sep 2020 17:44:48 +0100",
        "Message-Id": "<20200907164450.13082-3-david.plowman@raspberrypi.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20200907164450.13082-1-david.plowman@raspberrypi.com>",
        "References": "<20200907164450.13082-1-david.plowman@raspberrypi.com>",
        "MIME-Version": "1.0",
        "Subject": "[libcamera-devel] [RFC PATCH 2/4] libcamera: Add SensorCrop control",
        "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 SensorCrop control selects how much of the sensor's output image\nwill be scaled to form the output image. It can be used to implement\ndigital zoom.\n---\n src/libcamera/control_ids.yaml | 9 +++++++++\n 1 file changed, 9 insertions(+)",
    "diff": "diff --git a/src/libcamera/control_ids.yaml b/src/libcamera/control_ids.yaml\nindex 3560d4a..cebaa25 100644\n--- a/src/libcamera/control_ids.yaml\n+++ b/src/libcamera/control_ids.yaml\n@@ -273,4 +273,13 @@ controls:\n         order in an array of 9 floating point values.\n \n       size: [3x3]\n+\n+  - SensorCrop:\n+      type: Rectangle\n+      description: |\n+        Sets the portion of the full sensor image, in pixels, that will be\n+        scaled up to form the whole of the final output image. This control\n+        can be used to implement digital zoom. The size of the full sensor\n+        image within which an application can crop is available from the\n+        SensorOutputSize property.\n ...\n",
    "prefixes": [
        "libcamera-devel",
        "RFC",
        "2/4"
    ]
}