Show a patch.

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

{
    "id": 10022,
    "url": "https://patchwork.libcamera.org/api/patches/10022/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/10022/",
    "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": "<20201008141038.83425-2-email@uajain.com>",
    "date": "2020-10-08T14:10:36",
    "name": "[libcamera-devel,RFC,1/3] android: post_processor: Introduce a PostProcessor interface",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "723145ab7c31098fd7ae078384c55e202336362e",
    "submitter": {
        "id": 1,
        "url": "https://patchwork.libcamera.org/api/people/1/?format=api",
        "name": "Umang Jain",
        "email": "email@uajain.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/10022/mbox/",
    "series": [
        {
            "id": 1367,
            "url": "https://patchwork.libcamera.org/api/series/1367/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1367",
            "date": "2020-10-08T14:10:35",
            "name": "Introduce PostProcessor Interface for CameraStream",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/1367/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/10022/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/10022/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 576E6BEEE0\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu,  8 Oct 2020 14:11:00 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 258E8605D1;\n\tThu,  8 Oct 2020 16:11:00 +0200 (CEST)",
            "from mail.uajain.com (static.126.159.217.95.clients.your-server.de\n\t[95.217.159.126])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 932B26035D\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu,  8 Oct 2020 16:10:58 +0200 (CEST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=uajain.com header.i=@uajain.com\n\theader.b=\"VOxFZ5c1\"; dkim-atps=neutral",
        "From": "Umang Jain <email@uajain.com>",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=uajain.com; s=mail;\n\tt=1602166258; bh=73s4xjI1ABvJvhINL3UUIfGgLTKIalqMEcGIFiei4Jc=;\n\th=From:To:Cc:Subject:In-Reply-To:References;\n\tb=VOxFZ5c1vnvOUKDkLdPq+6LD95iyz1ntDY1YfLB7UWONXUDeupgQDexG2ilSkNoU0\n\tHQkVbQRAS/Awkz/uAiZddvouvDophD+xjZLVa/2UWi5orGHJzQxsqiL5tMtiUJL/0X\n\teh/PQjqvUO4Gq4gfKTbF08ZDnA7RPs7dzLTcBFpZ8obK/MYbxnUGEqturyxpf+Id3U\n\tvtjSdM9sOObujGPsn+BqBlmkGZUYL/Pk4Er6jSpayXwv+ug9DdWONFPyJpThl0YeCT\n\tz594Ssqvqs6qqjGrIdhpQqgJXp+lBwRKIejvm6vr6bWFPkz+10N7D8bKy4zj++xtko\n\tu6YOAmG268MYQ==",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Thu,  8 Oct 2020 19:40:36 +0530",
        "Message-Id": "<20201008141038.83425-2-email@uajain.com>",
        "In-Reply-To": "<20201008141038.83425-1-email@uajain.com>",
        "References": "<20201008141038.83425-1-email@uajain.com>",
        "Mime-Version": "1.0",
        "Subject": "[libcamera-devel] [RFC PATCH 1/3] android: post_processor:\n\tIntroduce a PostProcessor interface",
        "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": "Introduce a PostProcessor interface for the streams that require any\nkind of processing for their consumption by the HAL layer. The\nPostProcessor interface can be configured via configure() and the actual\nprocessing can be initiated using process().\n\nThe interface is similar to the Encoder interface. The PostProcessor is\nmeant to replace the Encoder interface and introduce a more generic\npost-processing layer which can be extended to have multiple post\nprocessors for various stream configurations. As of now, we only have\none post processor (JPEG), hence the subsequent commit will port its\nfunction to this interface.\n\nSigned-off-by: Umang Jain <email@uajain.com>\n---\n src/android/post_processor.h | 30 ++++++++++++++++++++++++++++++\n 1 file changed, 30 insertions(+)\n create mode 100644 src/android/post_processor.h",
    "diff": "diff --git a/src/android/post_processor.h b/src/android/post_processor.h\nnew file mode 100644\nindex 0000000..fa676c9\n--- /dev/null\n+++ b/src/android/post_processor.h\n@@ -0,0 +1,30 @@\n+/* SPDX-License-Identifier: GPL-2.1-or-later */\n+/*\n+ * Copyright (C) 2020, Google Inc.\n+ *\n+ * post_processor.h - CameraStream Post Processing Interface\n+ */\n+#ifndef __ANDROID_POST_PROCESSOR_H__\n+#define __ANDROID_POST_PROCESSOR_H__\n+\n+#include <stdarg.h>\n+\n+#include <libcamera/buffer.h>\n+#include <libcamera/span.h>\n+#include <libcamera/stream.h>\n+\n+class CameraMetadata;\n+\n+class PostProcessor\n+{\n+public:\n+\tvirtual ~PostProcessor() {};\n+\n+\tvirtual int configure(const libcamera::StreamConfiguration &cfg) = 0;\n+\tvirtual int process(const libcamera::FrameBuffer *source,\n+\t\t\t    const libcamera::Span<uint8_t> &destination,\n+\t\t\t    CameraMetadata *metadata,\n+\t\t\t    ...) = 0;\n+};\n+\n+#endif /* __ANDROID_POST_PROCESSOR_H__ */\n",
    "prefixes": [
        "libcamera-devel",
        "RFC",
        "1/3"
    ]
}