Show a patch.

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

{
    "id": 1326,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/1326/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/1326/",
    "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": "<20190527223540.21855-9-paul.elder@ideasonboard.com>",
    "date": "2019-05-27T22:35:40",
    "name": "[libcamera-devel,8/8] libcamera: pipeline: vimc: add dummy IPA",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "497025ab40c5233155a029718ec29a116247c6ea",
    "submitter": {
        "id": 17,
        "url": "https://patchwork.libcamera.org/api/1.1/people/17/?format=api",
        "name": "Paul Elder",
        "email": "paul.elder@ideasonboard.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/1326/mbox/",
    "series": [
        {
            "id": 330,
            "url": "https://patchwork.libcamera.org/api/1.1/series/330/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=330",
            "date": "2019-05-27T22:35:32",
            "name": "Add IPAManager and IPAInterface",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/330/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/1326/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/1326/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<paul.elder@ideasonboard.com>",
        "Received": [
            "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 5C02D61908\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 28 May 2019 00:35:53 +0200 (CEST)",
            "from localhost.localdomain (unknown [96.44.9.117])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id A631AD85;\n\tTue, 28 May 2019 00:35:52 +0200 (CEST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1558996553;\n\tbh=sbtYDBvv8TNHx3Xz8YtLPRboM979wclK7p3+mnnOifs=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=JFBEalsIpOvOx4oAaEbTBnRmYvq9eZSrfEVnA30RzNUXlfnjR/p55fC6KrOH7EFg4\n\tJu50yFxUlSxhl1AL+zWoby4alVCjtBymZMdwUiwWguDg3CQnhu9srS4T11Kb2nB8oV\n\tUYsYW3sXFIKv4GiNxx3nT6la/j+f6keyd0TjIZbw=",
        "From": "Paul Elder <paul.elder@ideasonboard.com>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Mon, 27 May 2019 18:35:40 -0400",
        "Message-Id": "<20190527223540.21855-9-paul.elder@ideasonboard.com>",
        "X-Mailer": "git-send-email 2.20.1",
        "In-Reply-To": "<20190527223540.21855-1-paul.elder@ideasonboard.com>",
        "References": "<20190527223540.21855-1-paul.elder@ideasonboard.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 8/8] libcamera: pipeline: vimc: add dummy\n\tIPA",
        "X-BeenThere": "libcamera-devel@lists.libcamera.org",
        "X-Mailman-Version": "2.1.23",
        "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>",
        "X-List-Received-Date": "Mon, 27 May 2019 22:35:53 -0000"
    },
    "content": "Make the vimc pipeline handler get the dummy IPA, to show how an IPA can\nbe acquired by a pipeline handler.\n\nSigned-off-by: Paul Elder <paul.elder@ideasonboard.com>\n---\n src/libcamera/pipeline/vimc.cpp | 10 ++++++++++\n 1 file changed, 10 insertions(+)",
    "diff": "diff --git a/src/libcamera/pipeline/vimc.cpp b/src/libcamera/pipeline/vimc.cpp\nindex d3ff527..1df5e5a 100644\n--- a/src/libcamera/pipeline/vimc.cpp\n+++ b/src/libcamera/pipeline/vimc.cpp\n@@ -9,10 +9,12 @@\n #include <array>\n \n #include <libcamera/camera.h>\n+#include <libcamera/ipa/ipa_interface.h>\n #include <libcamera/request.h>\n #include <libcamera/stream.h>\n \n #include \"device_enumerator.h\"\n+#include \"ipa_manager.h\"\n #include \"log.h\"\n #include \"media_device.h\"\n #include \"pipeline_handler.h\"\n@@ -252,6 +254,14 @@ bool PipelineHandlerVimc::match(DeviceEnumerator *enumerator)\n \tif (!media)\n \t\treturn false;\n \n+\tIPAManager *ipaManager = IPAManager::instance();\n+\tipaManager->addDir(\"src/ipa\");\n+\tstd::unique_ptr<IPAInterface> ipa = ipaManager->createIPA(this);\n+\tif (ipa == nullptr)\n+\t\tLOG(VIMC, Error) << \"no matching IPA found\";\n+\telse\n+\t\tipa->init();\n+\n \tstd::unique_ptr<VimcCameraData> data = utils::make_unique<VimcCameraData>(this);\n \n \t/* Locate and open the capture video node. */\n",
    "prefixes": [
        "libcamera-devel",
        "8/8"
    ]
}