{"id":17240,"url":"https://patchwork.libcamera.org/api/1.1/covers/17240/?format=json","web_url":"https://patchwork.libcamera.org/cover/17240/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20220829233017.2699444-1-paul.elder@ideasonboard.com>","date":"2022-08-29T23:30:10","name":"[libcamera-devel,v4,0/7] utils: ipc: Add support for enums and Flags","submitter":{"id":17,"url":"https://patchwork.libcamera.org/api/1.1/people/17/?format=json","name":"Paul Elder","email":"paul.elder@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/cover/17240/mbox/","series":[{"id":3450,"url":"https://patchwork.libcamera.org/api/1.1/series/3450/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=3450","date":"2022-08-29T23:30:10","name":"utils: ipc: Add support for enums and Flags","version":4,"mbox":"https://patchwork.libcamera.org/series/3450/mbox/"}],"comments":"https://patchwork.libcamera.org/api/covers/17240/comments/","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 73B60C3272\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 29 Aug 2022 23:30:29 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 4CCFC61FC2;\n\tTue, 30 Aug 2022 01:30:28 +0200 (CEST)","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 B0FFA61F9C\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 30 Aug 2022 01:30:26 +0200 (CEST)","from pyrite.mediacom.info (unknown\n\t[IPv6:2604:2d80:ad8a:9000:1bf9:855b:22de:3645])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 4DC66481;\n\tTue, 30 Aug 2022 01:30:25 +0200 (CEST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1661815828;\n\tbh=Gd4n0KriQUmc2CBbMcQqxTNFv0Y9BfT4OxEd/2Xq2/w=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=AEZHpcXNcsAPY2zfRMaEh7N5VOZQqGYoHZhb+vybZcWpcxhmjpfw3OThLnGBV8O3S\n\t0/RocvHy9WyTEWB/HLKL+zX94V2nLgSJgsKpueJpmi7CgGUsf53rlaZk4nJsNW+vst\n\tS7iQdPLeK/++CzywKzihtzpxljzEEZwt8Jy3ovCcyo20vEpO4dVUhxHmTHxkMAVn5J\n\tKivEUhzm8NM4R1EnivniSAK7+NB8n+9l9azmmdoTNG6citPjq8FIB+JONiCHJO0grs\n\tGHt3hLA07uEWt2hVfSwKfe77Q03Keya8ODpwL1DnhdhOYg4coUNxYuMxCpi2MAvP9a\n\tSLHY02WCAbXJg==","v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1661815826;\n\tbh=Gd4n0KriQUmc2CBbMcQqxTNFv0Y9BfT4OxEd/2Xq2/w=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=cWKrja9v5Y7AEeX/NPd5Rt0l0fL5jOhjt3djQ9BveBCURjxgN7+4CNLhM1wNixP6I\n\tQJy0i+fMoy8PukOdKSFskszFbVjrR8eMN2rd06PdHGDGV/X1pPenwzj1HV1TSehmPm\n\tBTRTDz0m17ArO1ZsoN58qtnilwvRC/BpEz/BXvbU="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=ideasonboard.com\n\theader.i=@ideasonboard.com\n\theader.b=\"cWKrja9v\"; dkim-atps=neutral","To":"libcamera-devel@lists.libcamera.org","Date":"Mon, 29 Aug 2022 18:30:10 -0500","Message-Id":"<20220829233017.2699444-1-paul.elder@ideasonboard.com>","X-Mailer":"git-send-email 2.30.2","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v4 0/7] utils: ipc: Add support for enums\n\tand Flags","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>","From":"Paul Elder via libcamera-devel <libcamera-devel@lists.libcamera.org>","Reply-To":"Paul Elder <paul.elder@ideasonboard.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"This patch series adds support for enums in function parameters, and\nFlags all-around.\n\n\"all-around\" does happen to exclude direct function return values,\nthough.\n\nPatches 1~2 touch enums, where the first patch adds a test for current\nenum support that hasn't been tested before, and the second actually\nadds support for enums in function parameters.\n\nPatches 3~4 add support for Flags, and 5 adds a test for it.\n\nPatches 6 and 7 extend vimc to have dummy function parameters that are\nenums and Flags to test enums and Flags as function parameters.\n\nv4 is mostly the same as v3/v3.1, just with flags being passed by value\ninstead of const reference, and removing \"[TEST]\" from the last two\npatches. Mostly ready to push; just sending this just in case.\n\nPaul Elder (7):\n  test: generated_serializer: Test enum that is struct member\n  utils: ipc: Add support for enums in function parameters\n  libcamera: ipa_data_serializer: Add serializer for Flags\n  utils: ipc: Add support for Flags\n  test: generated_serializer: Test Flags that is struct member\n  ipa: vimc: Add IPAOperationCode to init() parameter list\n  ipa: vimc: Add Flags to parameters\n\n .../libcamera/internal/ipa_data_serializer.h  | 46 +++++++++++++++++++\n include/libcamera/ipa/core.mojom              |  9 ++++\n include/libcamera/ipa/ipa_interface.h         |  1 +\n include/libcamera/ipa/vimc.mojom              | 14 +++++-\n src/ipa/vimc/vimc.cpp                         | 22 +++++++--\n src/libcamera/pipeline/vimc/vimc.cpp          | 15 ++++--\n test/ipa/ipa_interface_test.cpp               |  6 ++-\n .../generated_serializer_test.cpp             | 23 ++++++++++\n .../include/libcamera/ipa/test.mojom          |  9 ++++\n .../definition_functions.tmpl                 |  2 +-\n .../module_ipa_interface.h.tmpl               |  2 +-\n .../module_ipa_proxy.h.tmpl                   |  2 +-\n .../libcamera_templates/proxy_functions.tmpl  | 20 +++++++-\n .../libcamera_templates/serializer.tmpl       |  4 ++\n .../generators/mojom_libcamera_generator.py   | 29 ++++++++++--\n 15 files changed, 187 insertions(+), 17 deletions(-)"}