Patch Detail
Show a patch.
GET /api/1.1/patches/15037/?format=api
{ "id": 15037, "url": "https://patchwork.libcamera.org/api/1.1/patches/15037/?format=api", "web_url": "https://patchwork.libcamera.org/patch/15037/", "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": "<20211203224230.38700-8-djrscally@gmail.com>", "date": "2021-12-03T22:42:30", "name": "[libcamera-devel,v2,7/7] ipa: ipu3: Send lens controls to pipeline handler", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "b6c2f5a80498230660fe0cbba277dd64e6163a94", "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/15037/mbox/", "series": [ { "id": 2815, "url": "https://patchwork.libcamera.org/api/1.1/series/2815/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=2815", "date": "2021-12-03T22:42:23", "name": "Enumerate CameraLens by following sensor's ancillary links", "version": 2, "mbox": "https://patchwork.libcamera.org/series/2815/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/15037/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/15037/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 399D8C3250\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 3 Dec 2021 22:42:45 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D3B876086A;\n\tFri, 3 Dec 2021 23:42:44 +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 8463360866\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 3 Dec 2021 23:42:42 +0100 (CET)", "by mail-wr1-x434.google.com with SMTP id o13so8618705wrs.12\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 03 Dec 2021 14:42:42 -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\to25sm3939919wms.17.2021.12.03.14.42.41\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tFri, 03 Dec 2021 14:42:41 -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=\"Z/doEwo/\"; 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=8BMguWwxIullLZL6opZ6tb3+ZmbY4ZCvkD3EpDSeXO8=;\n\tb=Z/doEwo/bl9xYnpCTSTEZcgkROPPqcH07AfsOmzAcgJBDJQxvFq8g/HUdCIIa8ihyC\n\t0gxoQTuhNcF0TBmf/F6U47lMQv9pBk3fWQPt+4p+xjJtW600tFPE+YpNHI1ylApmKYau\n\tOMatZrfQU/GV0Z0Pj1802XW7w9bL1KlYrCHHPODCFWwfDS15RqmEFpI5OdnWPqmAlv3x\n\t6o2Byg7yYObJLTIGsB1wIcTJABhbJh2dU0o2Fnhs8m7jfyQGgnxKrhtiAUM4cPAqFQN/\n\taE3ML1RcDMMEJiXFLo3oAjQaYZGRl3x4HNXzEDefZjn6Hi7WxHPrG8zoFsZ2SeswlTHM\n\tiDww==", "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=8BMguWwxIullLZL6opZ6tb3+ZmbY4ZCvkD3EpDSeXO8=;\n\tb=JtLmlwNNovX12nPOIEdaaj5PvcQfBrVHeIPYfnB25G9eCCuXvWXml1VqronGyVFBtT\n\tISFU7GwHUb9fg9V8VQi8PMC+MDSm05XNrI7GChLLWhTth0Km4/5MKbp/TvWz60irqZD/\n\tdYtZUo4Ko5WVPu7wiR75WYH6c+QlmhBT201y1X3NioonMQhLlJ580G4RbstMf1TLj5Ts\n\t1FimWKzYoBvml6SHUFMH9gXiAoTSej72NDFrMnJz+pChqR0bpRoRGrzFvF1ccEupMypt\n\t6BK9ECvMLk8PIn1WZuxWUSLnuvDDjoUvsWTbGrJWtaMQ24WFy7dysDsm7pMVfGjMEIy+\n\tUPiw==", "X-Gm-Message-State": "AOAM531t21cxG0COMoA/eKS8WhMX36ftUNXr1znAwhSDr5VCgk8tB4h6\n\tAF6BdQK10yH4ypz0vsKcw75Fuz563YU=", "X-Google-Smtp-Source": "ABdhPJymWeBDgFT0MXZvq8FD53tCHvLK6Dfl3lI677TU7FU2ze0rJTgyctqFCjMiQLQa7cm0/0B0qg==", "X-Received": "by 2002:a5d:59ab:: with SMTP id\n\tp11mr24757159wrr.340.1638571362247; \n\tFri, 03 Dec 2021 14:42:42 -0800 (PST)", "From": "Daniel Scally <djrscally@gmail.com>", "To": "libcamera-devel@lists.libcamera.org", "Date": "Fri, 3 Dec 2021 22:42:30 +0000", "Message-Id": "<20211203224230.38700-8-djrscally@gmail.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20211203224230.38700-1-djrscally@gmail.com>", "References": "<20211203224230.38700-1-djrscally@gmail.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v2 7/7] 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---\nChanges in v2:\n\n\t- Created a ControlList to hold the lensCtrls (Laurent)\n\n src/ipa/ipu3/ipu3.cpp | 7 +++++++\n 1 file changed, 7 insertions(+)", "diff": "diff --git a/src/ipa/ipu3/ipu3.cpp b/src/ipa/ipu3/ipu3.cpp\nindex 3828650d..5c57797d 100644\n--- a/src/ipa/ipu3/ipu3.cpp\n+++ b/src/ipa/ipu3/ipu3.cpp\n@@ -174,6 +174,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@@ -674,6 +675,12 @@ 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+\n+\tControlList lensCtrls(lensCtrls_);\n+\tlensCtrls.set(V4L2_CID_FOCUS_ABSOLUTE, static_cast<int32_t>(focus_));\n+\top.lensControls = lensCtrls;\n+\n \tqueueFrameAction.emit(frame, op);\n }\n \n", "prefixes": [ "libcamera-devel", "v2", "7/7" ] }