Show a patch.

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

{
    "id": 14787,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/14787/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/14787/",
    "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": "<20211126003118.42356-5-djrscally@gmail.com>",
    "date": "2021-11-26T00:31:17",
    "name": "[libcamera-devel,4/5] ipa: ipu3: Send lens controls to pipeline handler",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "40311970209f30a94c4d6f28c33c492746f576a3",
    "submitter": {
        "id": 90,
        "url": "https://patchwork.libcamera.org/api/1.1/people/90/?format=api",
        "name": "Daniel Scally",
        "email": "djrscally@gmail.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/14787/mbox/",
    "series": [
        {
            "id": 2757,
            "url": "https://patchwork.libcamera.org/api/1.1/series/2757/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=2757",
            "date": "2021-11-26T00:31:13",
            "name": "Enumerate CameraLens by following sensor's ancillary links",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/2757/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/14787/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/14787/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 BFF45C324F\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 26 Nov 2021 00:31:36 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 7694C60490;\n\tFri, 26 Nov 2021 01:31:36 +0100 (CET)",
            "from mail-wr1-x434.google.com (mail-wr1-x434.google.com\n\t[IPv6:2a00:1450:4864:20::434])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 9D6A260491\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 26 Nov 2021 01:31:30 +0100 (CET)",
            "by mail-wr1-x434.google.com with SMTP id d24so15035815wra.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 25 Nov 2021 16:31:30 -0800 (PST)",
            "from localhost.localdomain\n\t(cpc141996-chfd3-2-0-cust928.12-3.cable.virginm.net. [86.13.91.161])\n\tby smtp.gmail.com with ESMTPSA id\n\tb188sm4381455wmd.45.2021.11.25.16.31.29\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tThu, 25 Nov 2021 16:31:30 -0800 (PST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"oeYwmFF/\"; dkim-atps=neutral",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=PtZtuMpNPvR4zJxo934IO/r140cDWkr6TO5+zilQ0qU=;\n\tb=oeYwmFF/1W4anK5mIK7EOGLnE1QOswf9CX+qWt7+yFHhWgyL+NkG2RP3BTCDRBSorB\n\tMiH55fubfzrmu/NFl0/s+z4ZNz3Uc6T3xgnLi0kkSvIjYo1sDiv5qqCwCoFhaRH8Fqxx\n\tdgGniQdmfat34GLKngfAz5HrHfGImb0jJ2QsKq9SlwbyTxrbKrnE3H/NKyit3cnBDayU\n\tJ9rWEg1SflfrPuDBQPdIHgaxIvKeeR9mxyatGtmMDHPrlI1FI/0pKslXYgHL9SoNxUwA\n\tAf6lgJ02LtzR8TUZF6dL4RF6rA5PT6KlE2Sf/FWGL55mIbLMZASW95ePXmn1oljFtjz7\n\tWLTA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\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=PtZtuMpNPvR4zJxo934IO/r140cDWkr6TO5+zilQ0qU=;\n\tb=nZsr4CNVj/1KirFCzeKa71WAHvgeIYfHg3xsk0BGXSPt+COdxEhm7KAyL9jKblMwRo\n\ttbnbfxufWa/PX1K+J2XVuDHc3netuDNmdfc8CRErU7e3vTvGzfUNRKfLxYIhXzOuEK7f\n\tSb407lzOvS6T3tLBnD6PFvYlo71PK/Hu+rDJ4aIbb0gIXz4r+bnrj+sZVDeUGhTFsIlS\n\tBsqlacaelUS5LKD8QUUWrXznmh6U1oiJMXJebjyA5AYYgYx4Mhm97hgqsfQj0+FYVdsw\n\tnbCtJH1WzF3B/4Y0nltl4/iR5jT9TthIqEQQnybRTGeaSiem/c0RLJbJHorQ5ONPWRZO\n\t3mfw==",
        "X-Gm-Message-State": "AOAM531xXVLuuBTGKXh+d1JtHqD7oE32/qMNoIuFgPbnd4TqEn2d9grJ\n\tT6ZDZ8WSx+jxZWQc1MF1GsoiAJodADk=",
        "X-Google-Smtp-Source": "ABdhPJykaSBCktMhps4b4TPBDk32AcY47Zt5Io6iHb4MPBzbt0UtwGvxCYOwTP1EmWHTXv7A9NrF7w==",
        "X-Received": "by 2002:a5d:584c:: with SMTP id\n\ti12mr10803741wrf.95.1637886690460; \n\tThu, 25 Nov 2021 16:31:30 -0800 (PST)",
        "From": "Daniel Scally <djrscally@gmail.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Fri, 26 Nov 2021 00:31:17 +0000",
        "Message-Id": "<20211126003118.42356-5-djrscally@gmail.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20211126003118.42356-1-djrscally@gmail.com>",
        "References": "<20211126003118.42356-1-djrscally@gmail.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 4/5] ipa: ipu3: Send lens controls to\n\tpipeline handler",
        "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>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "Pick up the focus value from the AF algorithm and send lens controls\nalong in the frame context.\n\nSigned-off-by: Daniel Scally <djrscally@gmail.com>\n---\n src/ipa/ipu3/ipu3.cpp | 4 ++++\n 1 file changed, 4 insertions(+)",
    "diff": "diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp\nindex 6c76193a..abdcd69d 100644\n--- a/src/ipa/ipu3/ipu3.cpp\n+++ b/src/ipa/ipu3/ipu3.cpp\n@@ -173,6 +173,7 @@ private:\n \tuint32_t gain_;\n \tuint32_t minGain_;\n \tuint32_t maxGain_;\n+\tuint32_t focus_;\n \n \tutils::Duration lineDuration_;\n \n@@ -671,6 +672,9 @@ void IPAIPU3::setControls(unsigned int frame)\n \tctrls.set(V4L2_CID_ANALOGUE_GAIN, static_cast<int32_t>(gain_));\n \top.sensorControls = ctrls;\n \n+\tfocus_ = context_.frameContext.af.focus;\n+\top.lensControls.set(V4L2_CID_FOCUS_ABSOLUTE, static_cast<int32_t>(focus_));\n+\n \tqueueFrameAction.emit(frame, op);\n }\n \n",
    "prefixes": [
        "libcamera-devel",
        "4/5"
    ]
}