Patch Detail
Show a patch.
GET /api/patches/16390/?format=api
{ "id": 16390, "url": "https://patchwork.libcamera.org/api/patches/16390/?format=api", "web_url": "https://patchwork.libcamera.org/patch/16390/", "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": "<20220627162732.33160-10-jacopo@jmondi.org>", "date": "2022-06-27T16:27:26", "name": "[libcamera-devel,09/15] libcamera: control_serializer: Support internal controls", "commit_ref": null, "pull_url": null, "state": "not-applicable", "archived": true, "hash": "c53c62857cf2f9a8a913eebad8709a6a19a7e269", "submitter": { "id": 3, "url": "https://patchwork.libcamera.org/api/people/3/?format=api", "name": "Jacopo Mondi", "email": "jacopo@jmondi.org" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/16390/mbox/", "series": [ { "id": 3224, "url": "https://patchwork.libcamera.org/api/series/3224/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3224", "date": "2022-06-27T16:27:17", "name": "Internal controls, sensor delays and IPA init/configure rework", "version": 1, "mbox": "https://patchwork.libcamera.org/series/3224/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/16390/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/16390/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 66E50BD808\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 27 Jun 2022 16:27:57 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id DA4496563B;\n\tMon, 27 Jun 2022 18:27:56 +0200 (CEST)", "from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net\n\t[217.70.183.200])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 483C26563E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 27 Jun 2022 18:27:49 +0200 (CEST)", "(Authenticated sender: jacopo@jmondi.org)\n\tby mail.gandi.net (Postfix) with ESMTPSA id 8435520009;\n\tMon, 27 Jun 2022 16:27:48 +0000 (UTC)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1656347277;\n\tbh=YRcrjHMXZIwdFvwX6ssq+Ra4PbFZJC596koAMpw3dT8=;\n\th=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe:\n\tList-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:\n\tFrom;\n\tb=h3SR8HqED7QDJzxyKY6sZQCj7VWa+Y7LPs/wE+Zu17ORfjyEUMAhEkQDxw32BQUGU\n\tV19k92WDVsPBoGiKMSIrN+TEvQGU5YK7yCiNd3mQRj94BC8DJqT1RUYXKsvYdxewJS\n\tklk1ac2SqPTwvH9OGO1v6MewO6+HwqqPLWwCcf72/NO/0wsoTee5dUbk3e5cJvfnkv\n\tW1Ry1EuYeIltWvXysDgr/v1et+1BvvXDQ+/QyVGagiCyfyOJ5xAMhNKbCHNAt4mNCX\n\tyJj2yz3OXx7c23JB1pbE2bim7TI765mL5pkEHwwj5KLRFCRMMwN+d8FGdionaM+/eT\n\tAgQcjAufLu15w==", "To": "libcamera-devel@lists.libcamera.org", "Date": "Mon, 27 Jun 2022 18:27:26 +0200", "Message-Id": "<20220627162732.33160-10-jacopo@jmondi.org>", "X-Mailer": "git-send-email 2.36.1", "In-Reply-To": "<20220627162732.33160-1-jacopo@jmondi.org>", "References": "<20220627162732.33160-1-jacopo@jmondi.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH 09/15] libcamera: control_serializer:\n\tSupport internal controls", "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": "Jacopo Mondi via libcamera-devel <libcamera-devel@lists.libcamera.org>", "Reply-To": "Jacopo Mondi <jacopo@jmondi.org>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "The control serializer class uses tags to identify which ControlIdMap\nto use to de-serialize a ControlList.\n\nAdd a value for internal controls to the ipa_controls_id_map_type\nenumeration and use it to identify lists of internal controls.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n include/libcamera/ipa/ipa_controls.h | 1 +\n src/libcamera/control_serializer.cpp | 6 ++++++\n 2 files changed, 7 insertions(+)", "diff": "diff --git a/include/libcamera/ipa/ipa_controls.h b/include/libcamera/ipa/ipa_controls.h\nindex e5da1946ce1d..609e28197f50 100644\n--- a/include/libcamera/ipa/ipa_controls.h\n+++ b/include/libcamera/ipa/ipa_controls.h\n@@ -20,6 +20,7 @@ extern \"C\" {\n enum ipa_controls_id_map_type {\n \tIPA_CONTROL_ID_MAP_CONTROLS,\n \tIPA_CONTROL_ID_MAP_PROPERTIES,\n+\tIPA_CONTROL_ID_MAP_INTERNAL_CONTROLS,\n \tIPA_CONTROL_ID_MAP_V4L2,\n };\n \ndiff --git a/src/libcamera/control_serializer.cpp b/src/libcamera/control_serializer.cpp\nindex e87d23625ed2..c5b691a981a2 100644\n--- a/src/libcamera/control_serializer.cpp\n+++ b/src/libcamera/control_serializer.cpp\n@@ -21,6 +21,7 @@\n #include <libcamera/ipa/ipa_controls.h>\n \n #include \"libcamera/internal/byte_stream_buffer.h\"\n+#include \"libcamera/internal/control_ids.h\"\n \n /**\n * \\file control_serializer.h\n@@ -335,6 +336,8 @@ int ControlSerializer::serialize(const ControlList &list,\n \t\tidMapType = IPA_CONTROL_ID_MAP_CONTROLS;\n \telse if (idmap == &properties::properties)\n \t\tidMapType = IPA_CONTROL_ID_MAP_PROPERTIES;\n+\telse if (idmap == &controls::internal::controls)\n+\t\tidMapType = IPA_CONTROL_ID_MAP_INTERNAL_CONTROLS;\n \telse\n \t\tidMapType = IPA_CONTROL_ID_MAP_V4L2;\n \n@@ -461,6 +464,9 @@ ControlInfoMap ControlSerializer::deserialize<ControlInfoMap>(ByteStreamBuffer &\n \tcase IPA_CONTROL_ID_MAP_PROPERTIES:\n \t\tidMap = &properties::properties;\n \t\tbreak;\n+\tcase IPA_CONTROL_ID_MAP_INTERNAL_CONTROLS:\n+\t\tidMap = &controls::internal::controls;\n+\t\tbreak;\n \tcase IPA_CONTROL_ID_MAP_V4L2:\n \t\tcontrolIdMaps_.emplace_back(std::make_unique<ControlIdMap>());\n \t\tlocalIdMap = controlIdMaps_.back().get();\n", "prefixes": [ "libcamera-devel", "09/15" ] }