Patch Detail
Show a patch.
GET /api/1.1/patches/10058/?format=api
{ "id": 10058, "url": "https://patchwork.libcamera.org/api/1.1/patches/10058/?format=api", "web_url": "https://patchwork.libcamera.org/patch/10058/", "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": "<20201015171457.75678-2-email@uajain.com>", "date": "2020-10-15T17:14:55", "name": "[libcamera-devel,1/3] android: post_processor: Introduce a PostProcessor interface", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "e0eb8f157d0e015eca28b453689b0408976ff1ba", "submitter": { "id": 1, "url": "https://patchwork.libcamera.org/api/1.1/people/1/?format=api", "name": "Umang Jain", "email": "email@uajain.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/10058/mbox/", "series": [ { "id": 1375, "url": "https://patchwork.libcamera.org/api/1.1/series/1375/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=1375", "date": "2020-10-15T17:14:54", "name": "android: Introduce PostProcessor interface", "version": 1, "mbox": "https://patchwork.libcamera.org/series/1375/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/10058/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/10058/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 60ED3BE905\n\tfor <parsemail@patchwork.libcamera.org>;\n\tThu, 15 Oct 2020 17:15:08 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 30C2F60E8D;\n\tThu, 15 Oct 2020 19:15:08 +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 4B90460E36\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 15 Oct 2020 19:15:06 +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=\"JkujqYzL\"; 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=1602782105; bh=U5d5s+uqvZ20yOYM5r4Z4ntu2jEJ9Hr/NgTrBYH88Js=;\n\th=From:To:Cc:Subject:In-Reply-To:References;\n\tb=JkujqYzLB0qm3FI0s7YW85v120UV5rXWpSod1Hy/ia/m3uaDgtGOLwsNYEIrpjG4w\n\tBozfPKI902AEa86pyLsLvJgCwxaHiDhhm7jSR7iSfMrVjy0f9NPWHiD5x9/H59QjJP\n\tb6dFeoWi0+Qm2QDfvsmSAiZL9Gu9YNv+SAwHkh5jks6kcc2yTXLUOP3sVPs/1bTmXk\n\tJoVnjQtVpDYPKvX9BQke39A6RrlAft0oHZEyLzcWY12IJ6fkyZFRtxFx6cTg/iMncX\n\t2hQbopGDlusWXDce+u8Mle6U5zSjpVp3h8E+2PR2afRWCxVTUOq4/5PZjRz6hsfVkz\n\tmVxGbZWkw7L7Q==", "To": "libcamera-devel@lists.libcamera.org", "Date": "Thu, 15 Oct 2020 22:44:55 +0530", "Message-Id": "<20201015171457.75678-2-email@uajain.com>", "In-Reply-To": "<20201015171457.75678-1-email@uajain.com>", "References": "<20201015171457.75678-1-email@uajain.com>", "Mime-Version": "1.0", "Subject": "[libcamera-devel] [PATCH 1/3] android: post_processor: Introduce a\n\tPostProcessor 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 (refer to CameraStream::Type) for their consumption\nby the HAL layer. The PostProcessor interface can be configured via\nconfigure() and the actual processing can be initiated using process().\n\nThe post-processing layer 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 | 28 ++++++++++++++++++++++++++++\n 1 file changed, 28 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..a891c43\n--- /dev/null\n+++ b/src/android/post_processor.h\n@@ -0,0 +1,28 @@\n+/* SPDX-License-Identifier: LGPL-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 <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 &inCfg,\n+\t\t\t const libcamera::StreamConfiguration &outCfg) = 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) = 0;\n+};\n+\n+#endif /* __ANDROID_POST_PROCESSOR_H__ */\n", "prefixes": [ "libcamera-devel", "1/3" ] }