[{"id":2220,"web_url":"https://patchwork.libcamera.org/comment/2220/","msgid":"<20190711062331.GH5247@pendragon.ideasonboard.com>","date":"2019-07-11T06:23:31","subject":"Re: [libcamera-devel] [PATCH v3 6/7] libcamera: ipa: add dummy IPA\n\tthat needs to be isolated","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/people/2/","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"content":"Hi Paul,\n\nThank you for the patch.\n\nOn Wed, Jul 10, 2019 at 03:44:49AM +0900, Paul Elder wrote:\n> Add a dummy IPA that needs to be isolated.\n> \n> Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>\n> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n> ---\n> Changes in v3:\n> - fix header\n> \n> Changes in v2:\n> - ipaModuleInfo contains license rather than \"please isolate me\"\n> \n>  src/ipa/ipa_dummy_isolate.cpp | 46 +++++++++++++++++++++++++++++++++++\n>  1 file changed, 46 insertions(+)\n>  create mode 100644 src/ipa/ipa_dummy_isolate.cpp\n> \n> diff --git a/src/ipa/ipa_dummy_isolate.cpp b/src/ipa/ipa_dummy_isolate.cpp\n> new file mode 100644\n> index 0000000..8520546\n> --- /dev/null\n> +++ b/src/ipa/ipa_dummy_isolate.cpp\n> @@ -0,0 +1,46 @@\n> +/* SPDX-License-Identifier: LGPL-2.1-or-later */\n> +/*\n> + * Copyright (C) 2019, Google Inc.\n> + *\n> + * ipa_dummy_isolate.cpp - Dummy Image Processing Algorithm module that needs to be isolated\n\nYou can wrap the line and keep the Reviewed-by.\n\n> + */\n> +\n> +#include <iostream>\n> +\n> +#include <libcamera/ipa/ipa_interface.h>\n> +#include <libcamera/ipa/ipa_module_info.h>\n> +\n> +namespace libcamera {\n> +\n> +class IPADummyIsolate : public IPAInterface\n> +{\n> +public:\n> +\tint init();\n> +};\n> +\n> +int IPADummyIsolate::init()\n> +{\n> +\tstd::cout << \"initializing isolated dummy IPA!\" << std::endl;\n> +\treturn 0;\n> +}\n> +\n> +/*\n> + * External IPA module interface\n> + */\n> +\n> +extern \"C\" {\n> +const struct IPAModuleInfo ipaModuleInfo = {\n> +\tIPA_MODULE_API_VERSION,\n> +\t0,\n> +\t\"PipelineHandlerVimc\",\n> +\t\"Dummy IPA for Vimc that needs to be isolated\",\n> +\t\"Proprietary\",\n> +};\n> +\n> +IPAInterface *ipaCreate()\n> +{\n> +\treturn new IPADummyIsolate();\n> +}\n> +};\n> +\n> +}; /* namespace libcamera */","headers":{"Return-Path":"<laurent.pinchart@ideasonboard.com>","Received":["from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id DE36960C23\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 11 Jul 2019 08:23:59 +0200 (CEST)","from pendragon.ideasonboard.com (softbank126163157105.bbtec.net\n\t[126.163.157.105])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 83BE531C;\n\tThu, 11 Jul 2019 08:23:58 +0200 (CEST)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1562826239;\n\tbh=YMhbLbGzLD7fsyPS/rotiooh3rnIHhrRwm4vwmpWHAY=;\n\th=Date:From:To:Cc:Subject:References:In-Reply-To:From;\n\tb=Het5Ip8Txwk+Lyqb8tYYqUjoaiCFjs+aLn0EKRFSqAOHMPE+h76jru6wzeee4xeP0\n\tnuO25ltpi1ajRyIwPd6K24L9RZFy+PJuzXT/IG5tQ0nUrUr6gW4fOIGnJS3t95LMjL\n\tV1cxR+piXrpRq2RxYhviZ1X+6HzcSgaEtNITijMY=","Date":"Thu, 11 Jul 2019 09:23:31 +0300","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"Paul Elder <paul.elder@ideasonboard.com>","Cc":"libcamera-devel@lists.libcamera.org","Message-ID":"<20190711062331.GH5247@pendragon.ideasonboard.com>","References":"<20190709184450.32023-1-paul.elder@ideasonboard.com>\n\t<20190709184450.32023-7-paul.elder@ideasonboard.com>","MIME-Version":"1.0","Content-Type":"text/plain; charset=utf-8","Content-Disposition":"inline","In-Reply-To":"<20190709184450.32023-7-paul.elder@ideasonboard.com>","User-Agent":"Mutt/1.10.1 (2018-07-13)","Subject":"Re: [libcamera-devel] [PATCH v3 6/7] libcamera: ipa: add dummy IPA\n\tthat needs to be isolated","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":"Thu, 11 Jul 2019 06:24:00 -0000"}}]