Patch Detail
Show a patch.
GET /api/patches/16838/?format=api
{ "id": 16838, "url": "https://patchwork.libcamera.org/api/patches/16838/?format=api", "web_url": "https://patchwork.libcamera.org/patch/16838/", "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": "<20220727085524.13290-4-naush@raspberrypi.com>", "date": "2022-07-27T08:55:19", "name": "[libcamera-devel,v3,3/8] ipa: raspberrypi: Remove extern \"C\" declarations", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "1362bdef28ee385600af86f683fbadd7277a2e61", "submitter": { "id": 34, "url": "https://patchwork.libcamera.org/api/people/34/?format=api", "name": "Naushir Patuck", "email": "naush@raspberrypi.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/16838/mbox/", "series": [ { "id": 3335, "url": "https://patchwork.libcamera.org/api/series/3335/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3335", "date": "2022-07-27T08:55:16", "name": "[libcamera-devel,v3,1/8] ipa: raspberrypi: Code refactoring to match style guidelines", "version": 3, "mbox": "https://patchwork.libcamera.org/series/3335/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/16838/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/16838/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 7A78AC3275\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 27 Jul 2022 08:55:36 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 2509863319;\n\tWed, 27 Jul 2022 10:55:36 +0200 (CEST)", "from mail-wr1-x429.google.com (mail-wr1-x429.google.com\n\t[IPv6:2a00:1450:4864:20::429])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id BA89E6330E\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 27 Jul 2022 10:55:34 +0200 (CEST)", "by mail-wr1-x429.google.com with SMTP id h9so23284951wrm.0\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 27 Jul 2022 01:55:34 -0700 (PDT)", "from naush-laptop.localdomain ([93.93.133.154])\n\tby smtp.gmail.com with ESMTPSA id\n\tv3-20020a1cac03000000b003a0375c4f73sm1559408wme.44.2022.07.27.01.55.33\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 27 Jul 2022 01:55:33 -0700 (PDT)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1658912136;\n\tbh=DZaxv2T17gLdbYtEhtz8H/QG4ShyhpAO0hAj8ka2Qao=;\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=LaYh45+Hl3FsAYQVWvUYyuvuyoCgcSY8xXJOtVUcVL5AXBbp1gLzR4aBhI2tnAY74\n\tArp7aMSFbklrpy8S3jcEkPsGcXs4Sxb3e+U880Ejmha73dx5GJi4mu1YQw+IlqGwVl\n\tYCRV6s14ODD1/v9B0fFwlr4w1WkXdTotD78Uk4qQypNAC993VKKbwUKUFxR+46qaHz\n\t219hemjCNqL2Ut6uwDzahkhTNGZ1rmFd1gyOSeyqNPoOQYS6V9OU+2b/yaTfFyiJGx\n\t0QNcfuj1CDCXRdnJkoobsOk1aQ14Bjq2WcJq8K3gtPDy4VPA6k1icUMZibUxSfTwoJ\n\tTXHmk1oXNl4uQ==", "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references\n\t:mime-version:content-transfer-encoding;\n\tbh=NY7JyaOac2q2MSMD7Q38yiXfBA4PvnnhUAE6F35MFJg=;\n\tb=HZ8Xnj7ccgVWkPGohp6jBC29T2OlJuWinyDQ9Ti1kzf+iN21VqtBdhgARcMiYTk6lM\n\tDbGW0wWfeqc9LADBAQdn9CIKA7ogsv5NNQaGBxJ2xR7lS6elgH5BSePUz7CuME6p5ulo\n\tqcVk+1IHe32npNWhHR1xCAjsbaJiV00SKd5RRzn9yXn59BH6wY3Qxi3RA5BYl7B3gRv8\n\txJn/Hjv4C4WoO7RZilTT/zs1uoFxLhFZeywYaCs93JT5fJxFov7GAPBKu+BVC+dajz85\n\tkuCTl6RZ4XnBHW0LWlCZcQ97RsKrKuRzIsfI53/JxwpoJK3hEzJIrne5kwxeOx6Ipx/p\n\tmJjQ==" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"HZ8Xnj7c\"; dkim-atps=neutral", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20210112;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references:mime-version:content-transfer-encoding;\n\tbh=NY7JyaOac2q2MSMD7Q38yiXfBA4PvnnhUAE6F35MFJg=;\n\tb=fmsjk/W7Dva3w4pr6y1dl1lN0rbb0pk2qI2ygiF4SxiDNJZbWdZU+6deBGVJ9XQ39d\n\tovYE1nC5x737G+GyypQvJW+JMEd26PQabADWEE4yuWQeHxM3HcHPDAFdBzPMwUkhJMRX\n\tNiQAyjGRqXbU4cevOvE/i1o6V4gLDDMhT83caWdzvFtW72lQwv5PPj9WNiQaD4MAzq9P\n\tOhPCsCQ39rVEL47/atQdZKwsYgMzXBJOSYmqQrNSGSknsOP1z0EYBq8zvluCOhohQFjr\n\t0mnpQb8QbYEeNU401PPuSExov3oLkAHkuFZRZeEHnl/hqPfTcReDMJGA1/nHcGkusUBB\n\tIhNQ==", "X-Gm-Message-State": "AJIora8uCuL1boRJd5nnWYBoN8DpuVyqstwBpDHKLK6cBYqKWu3O/S2v\n\tUoxtZrl4TqgDeNCQqBsaN2Mow5DFapGPNQ==", "X-Google-Smtp-Source": "AGRyM1ud+9aIVJJFKHoZ6+PrwazPJL4mZa6/oHTzkraIPsCRu9/0WaiyOhJJlJPn6TrYIlK2sIE+mQ==", "X-Received": "by 2002:a5d:6489:0:b0:21d:a9a1:3511 with SMTP id\n\to9-20020a5d6489000000b0021da9a13511mr13032171wri.626.1658912133981; \n\tWed, 27 Jul 2022 01:55:33 -0700 (PDT)", "To": "libcamera-devel@lists.libcamera.org", "Date": "Wed, 27 Jul 2022 09:55:19 +0100", "Message-Id": "<20220727085524.13290-4-naush@raspberrypi.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20220727085524.13290-1-naush@raspberrypi.com>", "References": "<20220727085524.13290-1-naush@raspberrypi.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[libcamera-devel] [PATCH v3 3/8] ipa: raspberrypi: Remove extern\n\t\"C\" declarations", "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": "Naushir Patuck via libcamera-devel\n\t<libcamera-devel@lists.libcamera.org>", "Reply-To": "Naushir Patuck <naush@raspberrypi.com>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Since the controller header files are now C++ specific, remove the extern \"C\"\ndeclarations.\n\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n src/ipa/raspberrypi/controller/agc_status.h | 8 --------\n src/ipa/raspberrypi/controller/alsc_status.h | 8 --------\n src/ipa/raspberrypi/controller/awb_status.h | 8 --------\n src/ipa/raspberrypi/controller/black_level_status.h | 8 --------\n src/ipa/raspberrypi/controller/camera_mode.h | 8 --------\n src/ipa/raspberrypi/controller/ccm_status.h | 8 --------\n src/ipa/raspberrypi/controller/contrast_status.h | 8 --------\n src/ipa/raspberrypi/controller/denoise_status.h | 8 --------\n src/ipa/raspberrypi/controller/dpc_status.h | 8 --------\n src/ipa/raspberrypi/controller/focus_status.h | 8 --------\n src/ipa/raspberrypi/controller/geq_status.h | 8 --------\n src/ipa/raspberrypi/controller/lux_status.h | 8 --------\n src/ipa/raspberrypi/controller/noise_status.h | 8 --------\n src/ipa/raspberrypi/controller/sharpen_status.h | 8 --------\n 14 files changed, 112 deletions(-)", "diff": "diff --git a/src/ipa/raspberrypi/controller/agc_status.h b/src/ipa/raspberrypi/controller/agc_status.h\nindex 9d184a158411..c7b7c1b2d938 100644\n--- a/src/ipa/raspberrypi/controller/agc_status.h\n+++ b/src/ipa/raspberrypi/controller/agc_status.h\n@@ -13,10 +13,6 @@\n * \"agc.status\" metadata.\n */\n \n-#ifdef __cplusplus\n-extern \"C\" {\n-#endif\n-\n /*\n * Note: total_exposure_value will be reported as zero until the algorithm has\n * seen statistics and calculated meaningful values. The contents should be\n@@ -39,7 +35,3 @@ struct AgcStatus {\n \tdouble digitalGain;\n \tint locked;\n };\n-\n-#ifdef __cplusplus\n-}\n-#endif\ndiff --git a/src/ipa/raspberrypi/controller/alsc_status.h b/src/ipa/raspberrypi/controller/alsc_status.h\nindex e074f9359faa..d7122f5190ce 100644\n--- a/src/ipa/raspberrypi/controller/alsc_status.h\n+++ b/src/ipa/raspberrypi/controller/alsc_status.h\n@@ -11,10 +11,6 @@\n * \"alsc.status\" metadata.\n */\n \n-#ifdef __cplusplus\n-extern \"C\" {\n-#endif\n-\n #define ALSC_CELLS_X 16\n #define ALSC_CELLS_Y 12\n \n@@ -23,7 +19,3 @@ struct AlscStatus {\n \tdouble g[ALSC_CELLS_Y][ALSC_CELLS_X];\n \tdouble b[ALSC_CELLS_Y][ALSC_CELLS_X];\n };\n-\n-#ifdef __cplusplus\n-}\n-#endif\ndiff --git a/src/ipa/raspberrypi/controller/awb_status.h b/src/ipa/raspberrypi/controller/awb_status.h\nindex 2f6e88ef6e7f..353906f8aefd 100644\n--- a/src/ipa/raspberrypi/controller/awb_status.h\n+++ b/src/ipa/raspberrypi/controller/awb_status.h\n@@ -11,10 +11,6 @@\n * under the tag \"awb.status\".\n */\n \n-#ifdef __cplusplus\n-extern \"C\" {\n-#endif\n-\n struct AwbStatus {\n \tchar mode[32];\n \tdouble temperatureK;\n@@ -22,7 +18,3 @@ struct AwbStatus {\n \tdouble gainG;\n \tdouble gainB;\n };\n-\n-#ifdef __cplusplus\n-}\n-#endif\ndiff --git a/src/ipa/raspberrypi/controller/black_level_status.h b/src/ipa/raspberrypi/controller/black_level_status.h\nindex 8b0523834dcf..8d2c497aef3a 100644\n--- a/src/ipa/raspberrypi/controller/black_level_status.h\n+++ b/src/ipa/raspberrypi/controller/black_level_status.h\n@@ -8,16 +8,8 @@\n \n /* The \"black level\" algorithm stores the black levels to use. */\n \n-#ifdef __cplusplus\n-extern \"C\" {\n-#endif\n-\n struct BlackLevelStatus {\n \tuint16_t blackLevelR; /* out of 16 bits */\n \tuint16_t blackLevelG;\n \tuint16_t blackLevelB;\n };\n-\n-#ifdef __cplusplus\n-}\n-#endif\ndiff --git a/src/ipa/raspberrypi/controller/camera_mode.h b/src/ipa/raspberrypi/controller/camera_mode.h\nindex 47a0fea424ca..6e1597d23a28 100644\n--- a/src/ipa/raspberrypi/controller/camera_mode.h\n+++ b/src/ipa/raspberrypi/controller/camera_mode.h\n@@ -16,10 +16,6 @@\n * including binning, scaling, cropping etc.\n */\n \n-#ifdef __cplusplus\n-extern \"C\" {\n-#endif\n-\n #define CAMERA_MODE_NAME_LEN 32\n \n struct CameraMode {\n@@ -46,7 +42,3 @@ struct CameraMode {\n \t/* sensitivity of this mode */\n \tdouble sensitivity;\n };\n-\n-#ifdef __cplusplus\n-}\n-#endif\ndiff --git a/src/ipa/raspberrypi/controller/ccm_status.h b/src/ipa/raspberrypi/controller/ccm_status.h\nindex 4cdd8bed0311..44471d0ef901 100644\n--- a/src/ipa/raspberrypi/controller/ccm_status.h\n+++ b/src/ipa/raspberrypi/controller/ccm_status.h\n@@ -8,15 +8,7 @@\n \n /* The \"ccm\" algorithm generates an appropriate colour matrix. */\n \n-#ifdef __cplusplus\n-extern \"C\" {\n-#endif\n-\n struct CcmStatus {\n \tdouble matrix[9];\n \tdouble saturation;\n };\n-\n-#ifdef __cplusplus\n-}\n-#endif\ndiff --git a/src/ipa/raspberrypi/controller/contrast_status.h b/src/ipa/raspberrypi/controller/contrast_status.h\nindex 5eb084f78e71..88152575288f 100644\n--- a/src/ipa/raspberrypi/controller/contrast_status.h\n+++ b/src/ipa/raspberrypi/controller/contrast_status.h\n@@ -11,10 +11,6 @@\n * of contrast stretching based on the AGC histogram.\n */\n \n-#ifdef __cplusplus\n-extern \"C\" {\n-#endif\n-\n #define CONTRAST_NUM_POINTS 33\n \n struct ContrastPoint {\n@@ -27,7 +23,3 @@ struct ContrastStatus {\n \tdouble brightness;\n \tdouble contrast;\n };\n-\n-#ifdef __cplusplus\n-}\n-#endif\ndiff --git a/src/ipa/raspberrypi/controller/denoise_status.h b/src/ipa/raspberrypi/controller/denoise_status.h\nindex c2d9c7301b19..e97368aaab54 100644\n--- a/src/ipa/raspberrypi/controller/denoise_status.h\n+++ b/src/ipa/raspberrypi/controller/denoise_status.h\n@@ -8,17 +8,9 @@\n \n /* This stores the parameters required for Denoise. */\n \n-#ifdef __cplusplus\n-extern \"C\" {\n-#endif\n-\n struct DenoiseStatus {\n \tdouble noiseConstant;\n \tdouble noiseSlope;\n \tdouble strength;\n \tunsigned int mode;\n };\n-\n-#ifdef __cplusplus\n-}\n-#endif\ndiff --git a/src/ipa/raspberrypi/controller/dpc_status.h b/src/ipa/raspberrypi/controller/dpc_status.h\nindex c99ad8c500a6..685ffc7b91b5 100644\n--- a/src/ipa/raspberrypi/controller/dpc_status.h\n+++ b/src/ipa/raspberrypi/controller/dpc_status.h\n@@ -8,14 +8,6 @@\n \n /* The \"DPC\" algorithm sets defective pixel correction strength. */\n \n-#ifdef __cplusplus\n-extern \"C\" {\n-#endif\n-\n struct DpcStatus {\n \tint strength; /* 0 = \"off\", 1 = \"normal\", 2 = \"strong\" */\n };\n-\n-#ifdef __cplusplus\n-}\n-#endif\ndiff --git a/src/ipa/raspberrypi/controller/focus_status.h b/src/ipa/raspberrypi/controller/focus_status.h\nindex c75795dc0621..f0dbe4e2c4a2 100644\n--- a/src/ipa/raspberrypi/controller/focus_status.h\n+++ b/src/ipa/raspberrypi/controller/focus_status.h\n@@ -14,15 +14,7 @@\n * measurements, it's not driving any kind of auto-focus algorithm!\n */\n \n-#ifdef __cplusplus\n-extern \"C\" {\n-#endif\n-\n struct FocusStatus {\n \tunsigned int num;\n \tuint32_t focusMeasures[FOCUS_REGIONS];\n };\n-\n-#ifdef __cplusplus\n-}\n-#endif\ndiff --git a/src/ipa/raspberrypi/controller/geq_status.h b/src/ipa/raspberrypi/controller/geq_status.h\nindex 0ebb7ce71d5b..791f34ca2e52 100644\n--- a/src/ipa/raspberrypi/controller/geq_status.h\n+++ b/src/ipa/raspberrypi/controller/geq_status.h\n@@ -8,15 +8,7 @@\n \n /* The \"GEQ\" algorithm calculates the green equalisation thresholds */\n \n-#ifdef __cplusplus\n-extern \"C\" {\n-#endif\n-\n struct GeqStatus {\n \tuint16_t offset;\n \tdouble slope;\n };\n-\n-#ifdef __cplusplus\n-}\n-#endif\ndiff --git a/src/ipa/raspberrypi/controller/lux_status.h b/src/ipa/raspberrypi/controller/lux_status.h\nindex c1134bec3694..cd5ed473c10d 100644\n--- a/src/ipa/raspberrypi/controller/lux_status.h\n+++ b/src/ipa/raspberrypi/controller/lux_status.h\n@@ -17,15 +17,7 @@\n * (presumably meaningless) value in the image metadata.\n */\n \n-#ifdef __cplusplus\n-extern \"C\" {\n-#endif\n-\n struct LuxStatus {\n \tdouble lux;\n \tdouble aperture;\n };\n-\n-#ifdef __cplusplus\n-}\n-#endif\ndiff --git a/src/ipa/raspberrypi/controller/noise_status.h b/src/ipa/raspberrypi/controller/noise_status.h\nindex 689beed394a7..843260f013ae 100644\n--- a/src/ipa/raspberrypi/controller/noise_status.h\n+++ b/src/ipa/raspberrypi/controller/noise_status.h\n@@ -8,15 +8,7 @@\n \n /* The \"noise\" algorithm stores an estimate of the noise profile for this image. */\n \n-#ifdef __cplusplus\n-extern \"C\" {\n-#endif\n-\n struct NoiseStatus {\n \tdouble noiseConstant;\n \tdouble noiseSlope;\n };\n-\n-#ifdef __cplusplus\n-}\n-#endif\ndiff --git a/src/ipa/raspberrypi/controller/sharpen_status.h b/src/ipa/raspberrypi/controller/sharpen_status.h\nindex 5ea21ab23f91..c66eaa73af3b 100644\n--- a/src/ipa/raspberrypi/controller/sharpen_status.h\n+++ b/src/ipa/raspberrypi/controller/sharpen_status.h\n@@ -8,10 +8,6 @@\n \n /* The \"sharpen\" algorithm stores the strength to use. */\n \n-#ifdef __cplusplus\n-extern \"C\" {\n-#endif\n-\n struct SharpenStatus {\n \t/* controls the smallest level of detail (or noise!) that sharpening will pick up */\n \tdouble threshold;\n@@ -22,7 +18,3 @@ struct SharpenStatus {\n \t/* The sharpening strength requested by the user or application. */\n \tdouble userStrength;\n };\n-\n-#ifdef __cplusplus\n-}\n-#endif\n", "prefixes": [ "libcamera-devel", "v3", "3/8" ] }