Show a patch.

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

{
    "id": 1905,
    "url": "https://patchwork.libcamera.org/api/patches/1905/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/1905/",
    "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": "<20190831210220.29819-4-niklas.soderlund@ragnatech.se>",
    "date": "2019-08-31T21:02:17",
    "name": "[libcamera-devel,3/6] libcamera: pipeline: Add helper to process meta data coming from IPA",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "7d43bb0936b7a166581c013bc120d5ed363a9721",
    "submitter": {
        "id": 5,
        "url": "https://patchwork.libcamera.org/api/people/5/?format=api",
        "name": "Niklas Söderlund",
        "email": "niklas.soderlund@ragnatech.se"
    },
    "delegate": {
        "id": 16,
        "url": "https://patchwork.libcamera.org/api/users/16/?format=api",
        "username": "neg",
        "first_name": "Niklas",
        "last_name": "Söderlund",
        "email": "niklas.soderlund@ragnatech.se"
    },
    "mbox": "https://patchwork.libcamera.org/patch/1905/mbox/",
    "series": [
        {
            "id": 476,
            "url": "https://patchwork.libcamera.org/api/series/476/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=476",
            "date": "2019-08-31T21:02:14",
            "name": "libcamera: ipa: Add IPA meta data",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/476/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/1905/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/1905/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<niklas.soderlund@ragnatech.se>",
        "Received": [
            "from bin-mail-out-05.binero.net (bin-mail-out-05.binero.net\n\t[195.74.38.228])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id D0C5C60C18\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat, 31 Aug 2019 23:03:00 +0200 (CEST)",
            "from bismarck.berto.se (unknown [84.172.84.18])\n\tby bin-vsp-out-02.atm.binero.net (Halon) with ESMTPA\n\tid b60ef0ae-cc32-11e9-903a-005056917f90;\n\tSat, 31 Aug 2019 23:02:59 +0200 (CEST)"
        ],
        "X-Halon-ID": "b60ef0ae-cc32-11e9-903a-005056917f90",
        "Authorized-sender": "niklas@soderlund.pp.se",
        "From": "=?utf-8?q?Niklas_S=C3=B6derlund?= <niklas.soderlund@ragnatech.se>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Sat, 31 Aug 2019 23:02:17 +0200",
        "Message-Id": "<20190831210220.29819-4-niklas.soderlund@ragnatech.se>",
        "X-Mailer": "git-send-email 2.22.1",
        "In-Reply-To": "<20190831210220.29819-1-niklas.soderlund@ragnatech.se>",
        "References": "<20190831210220.29819-1-niklas.soderlund@ragnatech.se>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=UTF-8",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 3/6] libcamera: pipeline: Add helper to\n\tprocess meta data coming from IPA",
        "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": "Sat, 31 Aug 2019 21:03:01 -0000"
    },
    "content": "Add a helper to process meta data coming out of an IPA and associating\nit with a request. The helper don't do much yet, it's expected that\nmore code will be needed in the future to deal with versioning of the\nmeta data structure coming from the IPA and the structure provided to\napplications.\n\nSigned-off-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>\n---\n src/libcamera/include/pipeline_handler.h |  2 ++\n src/libcamera/pipeline_handler.cpp       | 16 ++++++++++++++++\n 2 files changed, 18 insertions(+)",
    "diff": "diff --git a/src/libcamera/include/pipeline_handler.h b/src/libcamera/include/pipeline_handler.h\nindex ca40e7ef2b85f372..3c08ecb0260675e0 100644\n--- a/src/libcamera/include/pipeline_handler.h\n+++ b/src/libcamera/include/pipeline_handler.h\n@@ -102,6 +102,8 @@ protected:\n \n \tvoid prepareInternalBuffer(Buffer *buffer, Request *request,\n \t\t\t\t   BufferMemory *mem);\n+\tvoid processMetaData(Request *request, const IPAMetaData &metaData);\n+\n \tCameraManager *manager_;\n \n private:\ndiff --git a/src/libcamera/pipeline_handler.cpp b/src/libcamera/pipeline_handler.cpp\nindex 613751619a398968..04293921d4d81d98 100644\n--- a/src/libcamera/pipeline_handler.cpp\n+++ b/src/libcamera/pipeline_handler.cpp\n@@ -523,6 +523,22 @@ void PipelineHandler::prepareInternalBuffer(Buffer *buffer, Request *request,\n \tbuffer->mem_ = mem;\n }\n \n+/**\n+ * \\brief Helper to process meta data from the IPA\n+ * \\param[in] request The request to associate the \\a metaData with\n+ * \\param[in] metaData The meta data to process\n+ *\n+ * This function is a helper for pipline handler implementations to process\n+ * meta data retrived from an IPA. It is mandatory to call this function with\n+ * any meta data returned from the IPA before it's passed to the application.\n+ */\n+void PipelineHandler::processMetaData(Request *request,\n+\t\t\t\t      const IPAMetaData &metaData)\n+{\n+\trequest->metaData_ = metaData;\n+\trequest->metaData_.ready = true;\n+}\n+\n /**\n  * \\brief Slot for the MediaDevice disconnected signal\n  */\n",
    "prefixes": [
        "libcamera-devel",
        "3/6"
    ]
}