Show a patch.

GET /api/1.1/patches/16755/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 16755,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/16755/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/16755/",
    "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": "<20220725134639.4572-3-naush@raspberrypi.com>",
    "date": "2022-07-25T13:46:26",
    "name": "[libcamera-devel,02/15] DNI: ipa: raspberrypi: Code refactoring to match style guidelines",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "32281058057ff5d911b822ec061326f793e290d4",
    "submitter": {
        "id": 34,
        "url": "https://patchwork.libcamera.org/api/1.1/people/34/?format=api",
        "name": "Naushir Patuck",
        "email": "naush@raspberrypi.com"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/16755/mbox/",
    "series": [
        {
            "id": 3323,
            "url": "https://patchwork.libcamera.org/api/1.1/series/3323/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=3323",
            "date": "2022-07-25T13:46:24",
            "name": "Raspberry Pi IPA code refactor",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/3323/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/16755/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/16755/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 C5982C3275\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 25 Jul 2022 13:46:49 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 0C6DE6331C;\n\tMon, 25 Jul 2022 15:46:49 +0200 (CEST)",
            "from mail-wr1-x42c.google.com (mail-wr1-x42c.google.com\n\t[IPv6:2a00:1450:4864:20::42c])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id DECEB63314\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 25 Jul 2022 15:46:45 +0200 (CEST)",
            "by mail-wr1-x42c.google.com with SMTP id g2so7983769wru.3\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 25 Jul 2022 06:46:45 -0700 (PDT)",
            "from naush-laptop.localdomain ([93.93.133.154])\n\tby smtp.gmail.com with ESMTPSA id\n\ta20-20020a05600c225400b003a32167b8d4sm18054320wmm.13.2022.07.25.06.46.44\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tMon, 25 Jul 2022 06:46:44 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1658756809;\n\tbh=Typccbz1xhGENGT0rs/LnWX2Jul9mQiy7RLQRU+dztU=;\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=MQ9/yfDp/J+YAAN6OY8yb4Sqd8YMn1Jgeu7+CGxd89Wso/zkPrD3y18WCNg/hMl2M\n\tJi6wsygPnzizXXabN4ELOjP899fWs/HhKspH22TgxeB7cyuWFPkHre5kvOAxWuII9Y\n\t54Hx+CPWOiWs38VTPHp1d3b8/DzE0gyNGey+4PWPysocGXkdmjdKottqWvzikRYruR\n\tj7+oX/ctaTS27bJH7mevVtXyCEtnMmO+guPGMVKhSg04DwfHG9RTYK9abULVJPRfxh\n\tumeHpQYHeQiM9n2N/3KEE50i4L/62v+8yAB+ORakg89s1IKCA1NJ7CnHuJhhPQYcnH\n\tn4hqxa5IHObtw==",
            "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=nl8PyeC3qOtyByNU78cfy31hhAJ60/n/XxZIc3TPays=;\n\tb=GHhMObkzVyfHreySl+0+NzxYKaOqNBrtoLiKbZ2po2Kr8NNbg3W15ZM3Akv0L4GJ55\n\tklI8SlvrMZ3HGD+c2Vtevkxhl8kgpSNlO/NbnIBZ3jyYsCn4UGIQ1A6h60gYGGHtAYkV\n\tGsLRgaAABBLtseckriSuHu1PLjiZJG7uroCMfYZAZpLpsCzvZUdf0rUHcSKje+LEc0pl\n\tihr+Bd41mKW5N3s6X9sP3OCGxv0pHCxetfno244Z3SKSWgufbfli3dclsvNXbJgG6SQL\n\twsrguEauFZKtgr/7sYyXeXWcHjR7nvLDKUmayK0oL0ppBt8EEOSYa6mrbsHZsylOOc30\n\tV/gQ=="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"GHhMObkz\"; 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=nl8PyeC3qOtyByNU78cfy31hhAJ60/n/XxZIc3TPays=;\n\tb=fBUyiJMUHc/507XkswqdXJhcLGJMGQJ+kaWYpH5jBoxJkCezWLtL/srgLXAkoJMS5d\n\tzeCUDa08DYL0mEzAmHMnpYi3AbE25Va7EYdetZuUQEECtEqT2lubZtsE7oR37Kgqs3JO\n\tLcXvaMMGuI4xgTt7elt+J0trCFi9LxQefq61PXIBeMzum6BV8Jy/vTppOxq8k2dXcKzx\n\tWcrDVmTNTJtda7w5tXrc1sgaTdL5XKep+lek1EZcbZ3bKOXME1FaH2UrS8sgTijRiepS\n\tXbd3DZOW5OeBByVZ/cUxW3cG0zxkVwmjpz5imsB6FDD5LFcy5xXEFEHOpq8Wg35K9803\n\tOuww==",
        "X-Gm-Message-State": "AJIora9jiX63vX6f6vGJOk/cnrfGZRdl8Nq61NBJA6U1rOJtaHf/NQ0s\n\tl4AgdFBebBeyIVaQ2s4yKb2pvKJkTiosZQ==",
        "X-Google-Smtp-Source": "AGRyM1uTW62a1E1s280KXNjeGOgtIhBsV+w1u9JVhNPpquseRFSQhFCoS6c4AW0GQCw8K/y2+gxWUw==",
        "X-Received": "by 2002:a5d:584e:0:b0:21d:bca6:234d with SMTP id\n\ti14-20020a5d584e000000b0021dbca6234dmr7680814wrf.314.1658756804645; \n\tMon, 25 Jul 2022 06:46:44 -0700 (PDT)",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Mon, 25 Jul 2022 14:46:26 +0100",
        "Message-Id": "<20220725134639.4572-3-naush@raspberrypi.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20220725134639.4572-1-naush@raspberrypi.com>",
        "References": "<20220725134639.4572-1-naush@raspberrypi.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 02/15] DNI: ipa: raspberrypi: Code\n\trefactoring to match style guidelines",
        "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": "Refactor the source files src/ipa/raspberrypi/cam_helper* to match the\nrecommended formatting guidelines for the libcamera project. The vast majority\nof changes in this commit comprise of switching from snake_case to CamelCase,\nand starting class member functions with a lower case character.\n\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\n---\n src/ipa/raspberrypi/cam_helper.cpp        | 88 +++++++++++------------\n src/ipa/raspberrypi/cam_helper.hpp        | 40 +++++------\n src/ipa/raspberrypi/cam_helper_imx219.cpp | 34 ++++-----\n src/ipa/raspberrypi/cam_helper_imx290.cpp | 32 ++++-----\n src/ipa/raspberrypi/cam_helper_imx296.cpp | 24 +++----\n src/ipa/raspberrypi/cam_helper_imx477.cpp | 72 +++++++++----------\n src/ipa/raspberrypi/cam_helper_imx519.cpp | 70 +++++++++---------\n src/ipa/raspberrypi/cam_helper_ov5647.cpp | 44 ++++++------\n src/ipa/raspberrypi/cam_helper_ov9281.cpp | 28 ++++----\n 9 files changed, 216 insertions(+), 216 deletions(-)",
    "diff": "diff --git a/src/ipa/raspberrypi/cam_helper.cpp b/src/ipa/raspberrypi/cam_helper.cpp\nindex 3f81d4187d4d..45db39506937 100644\n--- a/src/ipa/raspberrypi/cam_helper.cpp\n+++ b/src/ipa/raspberrypi/cam_helper.cpp\n@@ -24,16 +24,16 @@ namespace libcamera {\n LOG_DECLARE_CATEGORY(IPARPI)\n }\n \n-static std::map<std::string, CamHelperCreateFunc> cam_helpers;\n+static std::map<std::string, CamHelperCreateFunc> camHelpers;\n \n-CamHelper *CamHelper::Create(std::string const &cam_name)\n+CamHelper *CamHelper::create(std::string const &camName)\n {\n \t/*\n \t * CamHelpers get registered by static RegisterCamHelper\n \t * initialisers.\n \t */\n-\tfor (auto &p : cam_helpers) {\n-\t\tif (cam_name.find(p.first) != std::string::npos)\n+\tfor (auto &p : camHelpers) {\n+\t\tif (camName.find(p.first) != std::string::npos)\n \t\t\treturn p.second();\n \t}\n \n@@ -50,35 +50,35 @@ CamHelper::~CamHelper()\n {\n }\n \n-void CamHelper::Prepare(Span<const uint8_t> buffer,\n+void CamHelper::prepare(Span<const uint8_t> buffer,\n \t\t\tMetadata &metadata)\n {\n \tparseEmbeddedData(buffer, metadata);\n }\n \n-void CamHelper::Process([[maybe_unused]] StatisticsPtr &stats,\n+void CamHelper::process([[maybe_unused]] StatisticsPtr &stats,\n \t\t\t[[maybe_unused]] Metadata &metadata)\n {\n }\n \n-uint32_t CamHelper::ExposureLines(const Duration exposure) const\n+uint32_t CamHelper::exposureLines(const Duration exposure) const\n {\n \tassert(initialized_);\n-\treturn exposure / mode_.line_length;\n+\treturn exposure / mode_.lineLength;\n }\n \n-Duration CamHelper::Exposure(uint32_t exposure_lines) const\n+Duration CamHelper::exposure(uint32_t exposureLines) const\n {\n \tassert(initialized_);\n-\treturn exposure_lines * mode_.line_length;\n+\treturn exposureLines * mode_.lineLength;\n }\n \n-uint32_t CamHelper::GetVBlanking(Duration &exposure,\n+uint32_t CamHelper::getVBlanking(Duration &exposure,\n \t\t\t\t Duration minFrameDuration,\n \t\t\t\t Duration maxFrameDuration) const\n {\n \tuint32_t frameLengthMin, frameLengthMax, vblank;\n-\tuint32_t exposureLines = ExposureLines(exposure);\n+\tuint32_t exposureLines = CamHelper::exposureLines(exposure);\n \n \tassert(initialized_);\n \n@@ -86,15 +86,15 @@ uint32_t CamHelper::GetVBlanking(Duration &exposure,\n \t * minFrameDuration and maxFrameDuration are clamped by the caller\n \t * based on the limits for the active sensor mode.\n \t */\n-\tframeLengthMin = minFrameDuration / mode_.line_length;\n-\tframeLengthMax = maxFrameDuration / mode_.line_length;\n+\tframeLengthMin = minFrameDuration / mode_.lineLength;\n+\tframeLengthMax = maxFrameDuration / mode_.lineLength;\n \n \t/*\n \t * Limit the exposure to the maximum frame duration requested, and\n \t * re-calculate if it has been clipped.\n \t */\n \texposureLines = std::min(frameLengthMax - frameIntegrationDiff_, exposureLines);\n-\texposure = Exposure(exposureLines);\n+\texposure = CamHelper::exposure(exposureLines);\n \n \t/* Limit the vblank to the range allowed by the frame length limits. */\n \tvblank = std::clamp(exposureLines + frameIntegrationDiff_,\n@@ -102,34 +102,34 @@ uint32_t CamHelper::GetVBlanking(Duration &exposure,\n \treturn vblank;\n }\n \n-void CamHelper::SetCameraMode(const CameraMode &mode)\n+void CamHelper::setCameraMode(const CameraMode &mode)\n {\n \tmode_ = mode;\n \tif (parser_) {\n-\t\tparser_->SetBitsPerPixel(mode.bitdepth);\n-\t\tparser_->SetLineLengthBytes(0); /* We use SetBufferSize. */\n+\t\tparser_->setBitsPerPixel(mode.bitdepth);\n+\t\tparser_->setLineLengthBytes(0); /* We use SetBufferSize. */\n \t}\n \tinitialized_ = true;\n }\n \n-void CamHelper::GetDelays(int &exposure_delay, int &gain_delay,\n-\t\t\t  int &vblank_delay) const\n+void CamHelper::getDelays(int &exposureDelay, int &gainDelay,\n+\t\t\t  int &vblankDelay) const\n {\n \t/*\n \t * These values are correct for many sensors. Other sensors will\n \t * need to over-ride this function.\n \t */\n-\texposure_delay = 2;\n-\tgain_delay = 1;\n-\tvblank_delay = 2;\n+\texposureDelay = 2;\n+\tgainDelay = 1;\n+\tvblankDelay = 2;\n }\n \n-bool CamHelper::SensorEmbeddedDataPresent() const\n+bool CamHelper::sensorEmbeddedDataPresent() const\n {\n \treturn false;\n }\n \n-double CamHelper::GetModeSensitivity([[maybe_unused]] const CameraMode &mode) const\n+double CamHelper::getModeSensitivity([[maybe_unused]] const CameraMode &mode) const\n {\n \t/*\n \t * Most sensors have the same sensitivity in every mode, but this\n@@ -140,7 +140,7 @@ double CamHelper::GetModeSensitivity([[maybe_unused]] const CameraMode &mode) co\n \treturn 1.0;\n }\n \n-unsigned int CamHelper::HideFramesStartup() const\n+unsigned int CamHelper::hideFramesStartup() const\n {\n \t/*\n \t * The number of frames when a camera first starts that shouldn't be\n@@ -149,19 +149,19 @@ unsigned int CamHelper::HideFramesStartup() const\n \treturn 0;\n }\n \n-unsigned int CamHelper::HideFramesModeSwitch() const\n+unsigned int CamHelper::hideFramesModeSwitch() const\n {\n \t/* After a mode switch, many sensors return valid frames immediately. */\n \treturn 0;\n }\n \n-unsigned int CamHelper::MistrustFramesStartup() const\n+unsigned int CamHelper::mistrustFramesStartup() const\n {\n \t/* Many sensors return a single bad frame on start-up. */\n \treturn 1;\n }\n \n-unsigned int CamHelper::MistrustFramesModeSwitch() const\n+unsigned int CamHelper::mistrustFramesModeSwitch() const\n {\n \t/* Many sensors return valid metadata immediately. */\n \treturn 0;\n@@ -176,13 +176,13 @@ void CamHelper::parseEmbeddedData(Span<const uint8_t> buffer,\n \tif (buffer.empty())\n \t\treturn;\n \n-\tif (parser_->Parse(buffer, registers) != MdParser::Status::OK) {\n+\tif (parser_->parse(buffer, registers) != MdParser::Status::OK) {\n \t\tLOG(IPARPI, Error) << \"Embedded data buffer parsing failed\";\n \t\treturn;\n \t}\n \n-\tPopulateMetadata(registers, parsedMetadata);\n-\tmetadata.Merge(parsedMetadata);\n+\tpopulateMetadata(registers, parsedMetadata);\n+\tmetadata.merge(parsedMetadata);\n \n \t/*\n \t * Overwrite the exposure/gain, frame length and sensor temperature values\n@@ -190,30 +190,30 @@ void CamHelper::parseEmbeddedData(Span<const uint8_t> buffer,\n \t * Fetch it first in case any other fields were set meaningfully.\n \t */\n \tDeviceStatus deviceStatus, parsedDeviceStatus;\n-\tif (metadata.Get(\"device.status\", deviceStatus) ||\n-\t    parsedMetadata.Get(\"device.status\", parsedDeviceStatus)) {\n+\tif (metadata.get(\"device.status\", deviceStatus) ||\n+\t    parsedMetadata.get(\"device.status\", parsedDeviceStatus)) {\n \t\tLOG(IPARPI, Error) << \"DeviceStatus not found\";\n \t\treturn;\n \t}\n \n-\tdeviceStatus.shutter_speed = parsedDeviceStatus.shutter_speed;\n-\tdeviceStatus.analogue_gain = parsedDeviceStatus.analogue_gain;\n-\tdeviceStatus.frame_length = parsedDeviceStatus.frame_length;\n-\tif (parsedDeviceStatus.sensor_temperature)\n-\t\tdeviceStatus.sensor_temperature = parsedDeviceStatus.sensor_temperature;\n+\tdeviceStatus.shutterSpeed = parsedDeviceStatus.shutterSpeed;\n+\tdeviceStatus.analogueGain = parsedDeviceStatus.analogueGain;\n+\tdeviceStatus.frameLength = parsedDeviceStatus.frameLength;\n+\tif (parsedDeviceStatus.sensorTemperature)\n+\t\tdeviceStatus.sensorTemperature = parsedDeviceStatus.sensorTemperature;\n \n \tLOG(IPARPI, Debug) << \"Metadata updated - \" << deviceStatus;\n \n-\tmetadata.Set(\"device.status\", deviceStatus);\n+\tmetadata.set(\"device.status\", deviceStatus);\n }\n \n-void CamHelper::PopulateMetadata([[maybe_unused]] const MdParser::RegisterMap &registers,\n+void CamHelper::populateMetadata([[maybe_unused]] const MdParser::RegisterMap &registers,\n \t\t\t\t [[maybe_unused]] Metadata &metadata) const\n {\n }\n \n-RegisterCamHelper::RegisterCamHelper(char const *cam_name,\n-\t\t\t\t     CamHelperCreateFunc create_func)\n+RegisterCamHelper::RegisterCamHelper(char const *camName,\n+\t\t\t\t     CamHelperCreateFunc createFunc)\n {\n-\tcam_helpers[std::string(cam_name)] = create_func;\n+\tcamHelpers[std::string(camName)] = createFunc;\n }\ndiff --git a/src/ipa/raspberrypi/cam_helper.hpp b/src/ipa/raspberrypi/cam_helper.hpp\nindex 300f8f8a2d3b..0cd718c4bc4e 100644\n--- a/src/ipa/raspberrypi/cam_helper.hpp\n+++ b/src/ipa/raspberrypi/cam_helper.hpp\n@@ -69,33 +69,33 @@ namespace RPiController {\n class CamHelper\n {\n public:\n-\tstatic CamHelper *Create(std::string const &cam_name);\n+\tstatic CamHelper *create(std::string const &camName);\n \tCamHelper(std::unique_ptr<MdParser> parser, unsigned int frameIntegrationDiff);\n \tvirtual ~CamHelper();\n-\tvoid SetCameraMode(const CameraMode &mode);\n-\tvirtual void Prepare(libcamera::Span<const uint8_t> buffer,\n+\tvoid setCameraMode(const CameraMode &mode);\n+\tvirtual void prepare(libcamera::Span<const uint8_t> buffer,\n \t\t\t     Metadata &metadata);\n-\tvirtual void Process(StatisticsPtr &stats, Metadata &metadata);\n-\tvirtual uint32_t ExposureLines(libcamera::utils::Duration exposure) const;\n-\tvirtual libcamera::utils::Duration Exposure(uint32_t exposure_lines) const;\n-\tvirtual uint32_t GetVBlanking(libcamera::utils::Duration &exposure,\n+\tvirtual void process(StatisticsPtr &stats, Metadata &metadata);\n+\tvirtual uint32_t exposureLines(libcamera::utils::Duration exposure) const;\n+\tvirtual libcamera::utils::Duration exposure(uint32_t exposureLines) const;\n+\tvirtual uint32_t getVBlanking(libcamera::utils::Duration &exposure,\n \t\t\t\t      libcamera::utils::Duration minFrameDuration,\n \t\t\t\t      libcamera::utils::Duration maxFrameDuration) const;\n-\tvirtual uint32_t GainCode(double gain) const = 0;\n-\tvirtual double Gain(uint32_t gain_code) const = 0;\n-\tvirtual void GetDelays(int &exposure_delay, int &gain_delay,\n-\t\t\t       int &vblank_delay) const;\n-\tvirtual bool SensorEmbeddedDataPresent() const;\n-\tvirtual double GetModeSensitivity(const CameraMode &mode) const;\n-\tvirtual unsigned int HideFramesStartup() const;\n-\tvirtual unsigned int HideFramesModeSwitch() const;\n-\tvirtual unsigned int MistrustFramesStartup() const;\n-\tvirtual unsigned int MistrustFramesModeSwitch() const;\n+\tvirtual uint32_t gainCode(double gain) const = 0;\n+\tvirtual double gain(uint32_t gainCode) const = 0;\n+\tvirtual void getDelays(int &exposureDelay, int &gainDelay,\n+\t\t\t       int &vblankDelay) const;\n+\tvirtual bool sensorEmbeddedDataPresent() const;\n+\tvirtual double getModeSensitivity(const CameraMode &mode) const;\n+\tvirtual unsigned int hideFramesStartup() const;\n+\tvirtual unsigned int hideFramesModeSwitch() const;\n+\tvirtual unsigned int mistrustFramesStartup() const;\n+\tvirtual unsigned int mistrustFramesModeSwitch() const;\n \n protected:\n \tvoid parseEmbeddedData(libcamera::Span<const uint8_t> buffer,\n \t\t\t       Metadata &metadata);\n-\tvirtual void PopulateMetadata(const MdParser::RegisterMap &registers,\n+\tvirtual void populateMetadata(const MdParser::RegisterMap &registers,\n \t\t\t\t      Metadata &metadata) const;\n \n \tstd::unique_ptr<MdParser> parser_;\n@@ -116,8 +116,8 @@ private:\n typedef CamHelper *(*CamHelperCreateFunc)();\n struct RegisterCamHelper\n {\n-\tRegisterCamHelper(char const *cam_name,\n-\t\t\t  CamHelperCreateFunc create_func);\n+\tRegisterCamHelper(char const *camName,\n+\t\t\t  CamHelperCreateFunc createFunc);\n };\n \n } // namespace RPi\ndiff --git a/src/ipa/raspberrypi/cam_helper_imx219.cpp b/src/ipa/raspberrypi/cam_helper_imx219.cpp\nindex a3caab714602..17c35143923a 100644\n--- a/src/ipa/raspberrypi/cam_helper_imx219.cpp\n+++ b/src/ipa/raspberrypi/cam_helper_imx219.cpp\n@@ -39,10 +39,10 @@ class CamHelperImx219 : public CamHelper\n {\n public:\n \tCamHelperImx219();\n-\tuint32_t GainCode(double gain) const override;\n-\tdouble Gain(uint32_t gain_code) const override;\n-\tunsigned int MistrustFramesModeSwitch() const override;\n-\tbool SensorEmbeddedDataPresent() const override;\n+\tuint32_t gainCode(double gain) const override;\n+\tdouble gain(uint32_t gainCode) const override;\n+\tunsigned int mistrustFramesModeSwitch() const override;\n+\tbool sensorEmbeddedDataPresent() const override;\n \n private:\n \t/*\n@@ -51,7 +51,7 @@ private:\n \t */\n \tstatic constexpr int frameIntegrationDiff = 4;\n \n-\tvoid PopulateMetadata(const MdParser::RegisterMap &registers,\n+\tvoid populateMetadata(const MdParser::RegisterMap &registers,\n \t\t\t      Metadata &metadata) const override;\n };\n \n@@ -64,17 +64,17 @@ CamHelperImx219::CamHelperImx219()\n {\n }\n \n-uint32_t CamHelperImx219::GainCode(double gain) const\n+uint32_t CamHelperImx219::gainCode(double gain) const\n {\n \treturn (uint32_t)(256 - 256 / gain);\n }\n \n-double CamHelperImx219::Gain(uint32_t gain_code) const\n+double CamHelperImx219::gain(uint32_t gainCode) const\n {\n-\treturn 256.0 / (256 - gain_code);\n+\treturn 256.0 / (256 - gainCode);\n }\n \n-unsigned int CamHelperImx219::MistrustFramesModeSwitch() const\n+unsigned int CamHelperImx219::mistrustFramesModeSwitch() const\n {\n \t/*\n \t * For reasons unknown, we do occasionally get a bogus metadata frame\n@@ -84,26 +84,26 @@ unsigned int CamHelperImx219::MistrustFramesModeSwitch() const\n \treturn 1;\n }\n \n-bool CamHelperImx219::SensorEmbeddedDataPresent() const\n+bool CamHelperImx219::sensorEmbeddedDataPresent() const\n {\n \treturn ENABLE_EMBEDDED_DATA;\n }\n \n-void CamHelperImx219::PopulateMetadata(const MdParser::RegisterMap &registers,\n+void CamHelperImx219::populateMetadata(const MdParser::RegisterMap &registers,\n \t\t\t\t       Metadata &metadata) const\n {\n \tDeviceStatus deviceStatus;\n \n-\tdeviceStatus.shutter_speed = Exposure(registers.at(expHiReg) * 256 + registers.at(expLoReg));\n-\tdeviceStatus.analogue_gain = Gain(registers.at(gainReg));\n-\tdeviceStatus.frame_length = registers.at(frameLengthHiReg) * 256 + registers.at(frameLengthLoReg);\n+\tdeviceStatus.shutterSpeed = exposure(registers.at(expHiReg) * 256 + registers.at(expLoReg));\n+\tdeviceStatus.analogueGain = gain(registers.at(gainReg));\n+\tdeviceStatus.frameLength = registers.at(frameLengthHiReg) * 256 + registers.at(frameLengthLoReg);\n \n-\tmetadata.Set(\"device.status\", deviceStatus);\n+\tmetadata.set(\"device.status\", deviceStatus);\n }\n \n-static CamHelper *Create()\n+static CamHelper *create()\n {\n \treturn new CamHelperImx219();\n }\n \n-static RegisterCamHelper reg(\"imx219\", &Create);\n+static RegisterCamHelper reg(\"imx219\", &create);\ndiff --git a/src/ipa/raspberrypi/cam_helper_imx290.cpp b/src/ipa/raspberrypi/cam_helper_imx290.cpp\nindex 871c1f8eaec4..0d9a94d8d3f6 100644\n--- a/src/ipa/raspberrypi/cam_helper_imx290.cpp\n+++ b/src/ipa/raspberrypi/cam_helper_imx290.cpp\n@@ -15,11 +15,11 @@ class CamHelperImx290 : public CamHelper\n {\n public:\n \tCamHelperImx290();\n-\tuint32_t GainCode(double gain) const override;\n-\tdouble Gain(uint32_t gain_code) const override;\n-\tvoid GetDelays(int &exposure_delay, int &gain_delay,\n-\t\t       int &vblank_delay) const override;\n-\tunsigned int HideFramesModeSwitch() const override;\n+\tuint32_t gainCode(double gain) const override;\n+\tdouble gain(uint32_t gainCode) const override;\n+\tvoid getDelays(int &exposureDelay, int &gainDelay,\n+\t\t       int &vblankDelay) const override;\n+\tunsigned int hideFramesModeSwitch() const override;\n \n private:\n \t/*\n@@ -34,34 +34,34 @@ CamHelperImx290::CamHelperImx290()\n {\n }\n \n-uint32_t CamHelperImx290::GainCode(double gain) const\n+uint32_t CamHelperImx290::gainCode(double gain) const\n {\n \tint code = 66.6667 * log10(gain);\n \treturn std::max(0, std::min(code, 0xf0));\n }\n \n-double CamHelperImx290::Gain(uint32_t gain_code) const\n+double CamHelperImx290::gain(uint32_t gainCode) const\n {\n-\treturn pow(10, 0.015 * gain_code);\n+\treturn pow(10, 0.015 * gainCode);\n }\n \n-void CamHelperImx290::GetDelays(int &exposure_delay, int &gain_delay,\n-\t\t\t\tint &vblank_delay) const\n+void CamHelperImx290::getDelays(int &exposureDelay, int &gainDelay,\n+\t\t\t\tint &vblankDelay) const\n {\n-\texposure_delay = 2;\n-\tgain_delay = 2;\n-\tvblank_delay = 2;\n+\texposureDelay = 2;\n+\tgainDelay = 2;\n+\tvblankDelay = 2;\n }\n \n-unsigned int CamHelperImx290::HideFramesModeSwitch() const\n+unsigned int CamHelperImx290::hideFramesModeSwitch() const\n {\n \t/* After a mode switch, we seem to get 1 bad frame. */\n \treturn 1;\n }\n \n-static CamHelper *Create()\n+static CamHelper *create()\n {\n \treturn new CamHelperImx290();\n }\n \n-static RegisterCamHelper reg(\"imx290\", &Create);\n+static RegisterCamHelper reg(\"imx290\", &create);\ndiff --git a/src/ipa/raspberrypi/cam_helper_imx296.cpp b/src/ipa/raspberrypi/cam_helper_imx296.cpp\nindex a1a771cb96d5..15674335fa75 100644\n--- a/src/ipa/raspberrypi/cam_helper_imx296.cpp\n+++ b/src/ipa/raspberrypi/cam_helper_imx296.cpp\n@@ -19,10 +19,10 @@ class CamHelperImx296 : public CamHelper\n {\n public:\n \tCamHelperImx296();\n-\tuint32_t GainCode(double gain) const override;\n-\tdouble Gain(uint32_t gain_code) const override;\n-\tuint32_t ExposureLines(Duration exposure) const override;\n-\tDuration Exposure(uint32_t exposure_lines) const override;\n+\tuint32_t gainCode(double gain) const override;\n+\tdouble gain(uint32_t gainCode) const override;\n+\tuint32_t exposureLines(Duration exposure) const override;\n+\tDuration exposure(uint32_t exposureLines) const override;\n \n private:\n \tstatic constexpr uint32_t maxGainCode = 239;\n@@ -40,30 +40,30 @@ CamHelperImx296::CamHelperImx296()\n {\n }\n \n-uint32_t CamHelperImx296::GainCode(double gain) const\n+uint32_t CamHelperImx296::gainCode(double gain) const\n {\n \tuint32_t code = 20 * std::log10(gain) * 10;\n \treturn std::min(code, maxGainCode);\n }\n \n-double CamHelperImx296::Gain(uint32_t gain_code) const\n+double CamHelperImx296::gain(uint32_t gainCode) const\n {\n-\treturn std::pow(10.0, gain_code / 200.0);\n+\treturn std::pow(10.0, gainCode / 200.0);\n }\n \n-uint32_t CamHelperImx296::ExposureLines(Duration exposure) const\n+uint32_t CamHelperImx296::exposureLines(Duration exposure) const\n {\n \treturn (exposure - 14.26us) / timePerLine;\n }\n \n-Duration CamHelperImx296::Exposure(uint32_t exposure_lines) const\n+Duration CamHelperImx296::exposure(uint32_t exposureLines) const\n {\n-\treturn exposure_lines * timePerLine + 14.26us;\n+\treturn exposureLines * timePerLine + 14.26us;\n }\n \n-static CamHelper *Create()\n+static CamHelper *create()\n {\n \treturn new CamHelperImx296();\n }\n \n-static RegisterCamHelper reg(\"imx296\", &Create);\n+static RegisterCamHelper reg(\"imx296\", &create);\ndiff --git a/src/ipa/raspberrypi/cam_helper_imx477.cpp b/src/ipa/raspberrypi/cam_helper_imx477.cpp\nindex 0e1c0dbd142f..0767a5e1dcc5 100644\n--- a/src/ipa/raspberrypi/cam_helper_imx477.cpp\n+++ b/src/ipa/raspberrypi/cam_helper_imx477.cpp\n@@ -43,14 +43,14 @@ class CamHelperImx477 : public CamHelper\n {\n public:\n \tCamHelperImx477();\n-\tuint32_t GainCode(double gain) const override;\n-\tdouble Gain(uint32_t gain_code) const override;\n-\tvoid Prepare(libcamera::Span<const uint8_t> buffer, Metadata &metadata) override;\n-\tuint32_t GetVBlanking(Duration &exposure, Duration minFrameDuration,\n+\tuint32_t gainCode(double gain) const override;\n+\tdouble gain(uint32_t gainCode) const override;\n+\tvoid prepare(libcamera::Span<const uint8_t> buffer, Metadata &metadata) override;\n+\tuint32_t getVBlanking(Duration &exposure, Duration minFrameDuration,\n \t\t\t      Duration maxFrameDuration) const override;\n-\tvoid GetDelays(int &exposure_delay, int &gain_delay,\n-\t\t       int &vblank_delay) const override;\n-\tbool SensorEmbeddedDataPresent() const override;\n+\tvoid getDelays(int &exposureDelay, int &gainDelay,\n+\t\t       int &vblankDelay) const override;\n+\tbool sensorEmbeddedDataPresent() const override;\n \n private:\n \t/*\n@@ -63,7 +63,7 @@ private:\n \t/* Largest long exposure scale factor given as a left shift on the frame length. */\n \tstatic constexpr int longExposureShiftMax = 7;\n \n-\tvoid PopulateMetadata(const MdParser::RegisterMap &registers,\n+\tvoid populateMetadata(const MdParser::RegisterMap &registers,\n \t\t\t      Metadata &metadata) const override;\n };\n \n@@ -72,22 +72,22 @@ CamHelperImx477::CamHelperImx477()\n {\n }\n \n-uint32_t CamHelperImx477::GainCode(double gain) const\n+uint32_t CamHelperImx477::gainCode(double gain) const\n {\n \treturn static_cast<uint32_t>(1024 - 1024 / gain);\n }\n \n-double CamHelperImx477::Gain(uint32_t gain_code) const\n+double CamHelperImx477::gain(uint32_t gainCode) const\n {\n-\treturn 1024.0 / (1024 - gain_code);\n+\treturn 1024.0 / (1024 - gainCode);\n }\n \n-void CamHelperImx477::Prepare(libcamera::Span<const uint8_t> buffer, Metadata &metadata)\n+void CamHelperImx477::prepare(libcamera::Span<const uint8_t> buffer, Metadata &metadata)\n {\n \tMdParser::RegisterMap registers;\n \tDeviceStatus deviceStatus;\n \n-\tif (metadata.Get(\"device.status\", deviceStatus)) {\n+\tif (metadata.get(\"device.status\", deviceStatus)) {\n \t\tLOG(IPARPI, Error) << \"DeviceStatus not found from DelayedControls\";\n \t\treturn;\n \t}\n@@ -105,27 +105,27 @@ void CamHelperImx477::Prepare(libcamera::Span<const uint8_t> buffer, Metadata &m\n \t * Otherwise, all values are updated with what is reported in the\n \t * embedded data.\n \t */\n-\tif (deviceStatus.frame_length > frameLengthMax) {\n+\tif (deviceStatus.frameLength > frameLengthMax) {\n \t\tDeviceStatus parsedDeviceStatus;\n \n-\t\tmetadata.Get(\"device.status\", parsedDeviceStatus);\n-\t\tparsedDeviceStatus.shutter_speed = deviceStatus.shutter_speed;\n-\t\tparsedDeviceStatus.frame_length = deviceStatus.frame_length;\n-\t\tmetadata.Set(\"device.status\", parsedDeviceStatus);\n+\t\tmetadata.get(\"device.status\", parsedDeviceStatus);\n+\t\tparsedDeviceStatus.shutterSpeed = deviceStatus.shutterSpeed;\n+\t\tparsedDeviceStatus.frameLength = deviceStatus.frameLength;\n+\t\tmetadata.set(\"device.status\", parsedDeviceStatus);\n \n \t\tLOG(IPARPI, Debug) << \"Metadata updated for long exposure: \"\n \t\t\t\t   << parsedDeviceStatus;\n \t}\n }\n \n-uint32_t CamHelperImx477::GetVBlanking(Duration &exposure,\n+uint32_t CamHelperImx477::getVBlanking(Duration &exposure,\n \t\t\t\t       Duration minFrameDuration,\n \t\t\t\t       Duration maxFrameDuration) const\n {\n \tuint32_t frameLength, exposureLines;\n \tunsigned int shift = 0;\n \n-\tframeLength = mode_.height + CamHelper::GetVBlanking(exposure, minFrameDuration,\n+\tframeLength = mode_.height + CamHelper::getVBlanking(exposure, minFrameDuration,\n \t\t\t\t\t\t\t     maxFrameDuration);\n \t/*\n \t * Check if the frame length calculated needs to be setup for long\n@@ -144,43 +144,43 @@ uint32_t CamHelperImx477::GetVBlanking(Duration &exposure,\n \tif (shift) {\n \t\t/* Account for any rounding in the scaled frame length value. */\n \t\tframeLength <<= shift;\n-\t\texposureLines = ExposureLines(exposure);\n+\t\texposureLines = CamHelperImx477::exposureLines(exposure);\n \t\texposureLines = std::min(exposureLines, frameLength - frameIntegrationDiff);\n-\t\texposure = Exposure(exposureLines);\n+\t\texposure = CamHelperImx477::exposure(exposureLines);\n \t}\n \n \treturn frameLength - mode_.height;\n }\n \n-void CamHelperImx477::GetDelays(int &exposure_delay, int &gain_delay,\n-\t\t\t\tint &vblank_delay) const\n+void CamHelperImx477::getDelays(int &exposureDelay, int &gainDelay,\n+\t\t\t\tint &vblankDelay) const\n {\n-\texposure_delay = 2;\n-\tgain_delay = 2;\n-\tvblank_delay = 3;\n+\texposureDelay = 2;\n+\tgainDelay = 2;\n+\tvblankDelay = 3;\n }\n \n-bool CamHelperImx477::SensorEmbeddedDataPresent() const\n+bool CamHelperImx477::sensorEmbeddedDataPresent() const\n {\n \treturn true;\n }\n \n-void CamHelperImx477::PopulateMetadata(const MdParser::RegisterMap &registers,\n+void CamHelperImx477::populateMetadata(const MdParser::RegisterMap &registers,\n \t\t\t\t       Metadata &metadata) const\n {\n \tDeviceStatus deviceStatus;\n \n-\tdeviceStatus.shutter_speed = Exposure(registers.at(expHiReg) * 256 + registers.at(expLoReg));\n-\tdeviceStatus.analogue_gain = Gain(registers.at(gainHiReg) * 256 + registers.at(gainLoReg));\n-\tdeviceStatus.frame_length = registers.at(frameLengthHiReg) * 256 + registers.at(frameLengthLoReg);\n-\tdeviceStatus.sensor_temperature = std::clamp<int8_t>(registers.at(temperatureReg), -20, 80);\n+\tdeviceStatus.shutterSpeed = exposure(registers.at(expHiReg) * 256 + registers.at(expLoReg));\n+\tdeviceStatus.analogueGain = gain(registers.at(gainHiReg) * 256 + registers.at(gainLoReg));\n+\tdeviceStatus.frameLength = registers.at(frameLengthHiReg) * 256 + registers.at(frameLengthLoReg);\n+\tdeviceStatus.sensorTemperature = std::clamp<int8_t>(registers.at(temperatureReg), -20, 80);\n \n-\tmetadata.Set(\"device.status\", deviceStatus);\n+\tmetadata.set(\"device.status\", deviceStatus);\n }\n \n-static CamHelper *Create()\n+static CamHelper *create()\n {\n \treturn new CamHelperImx477();\n }\n \n-static RegisterCamHelper reg(\"imx477\", &Create);\n+static RegisterCamHelper reg(\"imx477\", &create);\ndiff --git a/src/ipa/raspberrypi/cam_helper_imx519.cpp b/src/ipa/raspberrypi/cam_helper_imx519.cpp\nindex eaf24982b37f..1752760e64a2 100644\n--- a/src/ipa/raspberrypi/cam_helper_imx519.cpp\n+++ b/src/ipa/raspberrypi/cam_helper_imx519.cpp\n@@ -43,14 +43,14 @@ class CamHelperImx519 : public CamHelper\n {\n public:\n \tCamHelperImx519();\n-\tuint32_t GainCode(double gain) const override;\n-\tdouble Gain(uint32_t gain_code) const override;\n-\tvoid Prepare(libcamera::Span<const uint8_t> buffer, Metadata &metadata) override;\n-\tuint32_t GetVBlanking(Duration &exposure, Duration minFrameDuration,\n+\tuint32_t gainCode(double gain) const override;\n+\tdouble gain(uint32_t gainCode) const override;\n+\tvoid prepare(libcamera::Span<const uint8_t> buffer, Metadata &metadata) override;\n+\tuint32_t getVBlanking(Duration &exposure, Duration minFrameDuration,\n \t\t\t      Duration maxFrameDuration) const override;\n-\tvoid GetDelays(int &exposure_delay, int &gain_delay,\n-\t\t       int &vblank_delay) const override;\n-\tbool SensorEmbeddedDataPresent() const override;\n+\tvoid getDelays(int &exposureDelay, int &gainDelay,\n+\t\t       int &vblankDelay) const override;\n+\tbool sensorEmbeddedDataPresent() const override;\n \n private:\n \t/*\n@@ -63,7 +63,7 @@ private:\n \t/* Largest long exposure scale factor given as a left shift on the frame length. */\n \tstatic constexpr int longExposureShiftMax = 7;\n \n-\tvoid PopulateMetadata(const MdParser::RegisterMap &registers,\n+\tvoid populateMetadata(const MdParser::RegisterMap &registers,\n \t\t\t      Metadata &metadata) const override;\n };\n \n@@ -72,22 +72,22 @@ CamHelperImx519::CamHelperImx519()\n {\n }\n \n-uint32_t CamHelperImx519::GainCode(double gain) const\n+uint32_t CamHelperImx519::gainCode(double gain) const\n {\n \treturn static_cast<uint32_t>(1024 - 1024 / gain);\n }\n \n-double CamHelperImx519::Gain(uint32_t gain_code) const\n+double CamHelperImx519::gain(uint32_t gainCode) const\n {\n-\treturn 1024.0 / (1024 - gain_code);\n+\treturn 1024.0 / (1024 - gainCode);\n }\n \n-void CamHelperImx519::Prepare(libcamera::Span<const uint8_t> buffer, Metadata &metadata)\n+void CamHelperImx519::prepare(libcamera::Span<const uint8_t> buffer, Metadata &metadata)\n {\n \tMdParser::RegisterMap registers;\n \tDeviceStatus deviceStatus;\n \n-\tif (metadata.Get(\"device.status\", deviceStatus)) {\n+\tif (metadata.get(\"device.status\", deviceStatus)) {\n \t\tLOG(IPARPI, Error) << \"DeviceStatus not found from DelayedControls\";\n \t\treturn;\n \t}\n@@ -105,27 +105,27 @@ void CamHelperImx519::Prepare(libcamera::Span<const uint8_t> buffer, Metadata &m\n \t * Otherwise, all values are updated with what is reported in the\n \t * embedded data.\n \t */\n-\tif (deviceStatus.frame_length > frameLengthMax) {\n+\tif (deviceStatus.frameLength > frameLengthMax) {\n \t\tDeviceStatus parsedDeviceStatus;\n \n-\t\tmetadata.Get(\"device.status\", parsedDeviceStatus);\n-\t\tparsedDeviceStatus.shutter_speed = deviceStatus.shutter_speed;\n-\t\tparsedDeviceStatus.frame_length = deviceStatus.frame_length;\n-\t\tmetadata.Set(\"device.status\", parsedDeviceStatus);\n+\t\tmetadata.get(\"device.status\", parsedDeviceStatus);\n+\t\tparsedDeviceStatus.shutterSpeed = deviceStatus.shutterSpeed;\n+\t\tparsedDeviceStatus.frameLength = deviceStatus.frameLength;\n+\t\tmetadata.set(\"device.status\", parsedDeviceStatus);\n \n \t\tLOG(IPARPI, Debug) << \"Metadata updated for long exposure: \"\n \t\t\t\t   << parsedDeviceStatus;\n \t}\n }\n \n-uint32_t CamHelperImx519::GetVBlanking(Duration &exposure,\n+uint32_t CamHelperImx519::getVBlanking(Duration &exposure,\n \t\t\t\t       Duration minFrameDuration,\n \t\t\t\t       Duration maxFrameDuration) const\n {\n \tuint32_t frameLength, exposureLines;\n \tunsigned int shift = 0;\n \n-\tframeLength = mode_.height + CamHelper::GetVBlanking(exposure, minFrameDuration,\n+\tframeLength = mode_.height + CamHelper::getVBlanking(exposure, minFrameDuration,\n \t\t\t\t\t\t\t     maxFrameDuration);\n \t/*\n \t * Check if the frame length calculated needs to be setup for long\n@@ -144,42 +144,42 @@ uint32_t CamHelperImx519::GetVBlanking(Duration &exposure,\n \tif (shift) {\n \t\t/* Account for any rounding in the scaled frame length value. */\n \t\tframeLength <<= shift;\n-\t\texposureLines = ExposureLines(exposure);\n+\t\texposureLines = CamHelperImx519::exposureLines(exposure);\n \t\texposureLines = std::min(exposureLines, frameLength - frameIntegrationDiff);\n-\t\texposure = Exposure(exposureLines);\n+\t\texposure = CamHelperImx519::exposure(exposureLines);\n \t}\n \n \treturn frameLength - mode_.height;\n }\n \n-void CamHelperImx519::GetDelays(int &exposure_delay, int &gain_delay,\n-\t\t\t\tint &vblank_delay) const\n+void CamHelperImx519::getDelays(int &exposureDelay, int &gainDelay,\n+\t\t\t\tint &vblankDelay) const\n {\n-\texposure_delay = 2;\n-\tgain_delay = 2;\n-\tvblank_delay = 3;\n+\texposureDelay = 2;\n+\tgainDelay = 2;\n+\tvblankDelay = 3;\n }\n \n-bool CamHelperImx519::SensorEmbeddedDataPresent() const\n+bool CamHelperImx519::sensorEmbeddedDataPresent() const\n {\n \treturn true;\n }\n \n-void CamHelperImx519::PopulateMetadata(const MdParser::RegisterMap &registers,\n+void CamHelperImx519::populateMetadata(const MdParser::RegisterMap &registers,\n \t\t\t\t       Metadata &metadata) const\n {\n \tDeviceStatus deviceStatus;\n \n-\tdeviceStatus.shutter_speed = Exposure(registers.at(expHiReg) * 256 + registers.at(expLoReg));\n-\tdeviceStatus.analogue_gain = Gain(registers.at(gainHiReg) * 256 + registers.at(gainLoReg));\n-\tdeviceStatus.frame_length = registers.at(frameLengthHiReg) * 256 + registers.at(frameLengthLoReg);\n+\tdeviceStatus.shutterSpeed = exposure(registers.at(expHiReg) * 256 + registers.at(expLoReg));\n+\tdeviceStatus.analogueGain = gain(registers.at(gainHiReg) * 256 + registers.at(gainLoReg));\n+\tdeviceStatus.frameLength = registers.at(frameLengthHiReg) * 256 + registers.at(frameLengthLoReg);\n \n-\tmetadata.Set(\"device.status\", deviceStatus);\n+\tmetadata.set(\"device.status\", deviceStatus);\n }\n \n-static CamHelper *Create()\n+static CamHelper *create()\n {\n \treturn new CamHelperImx519();\n }\n \n-static RegisterCamHelper reg(\"imx519\", &Create);\n+static RegisterCamHelper reg(\"imx519\", &create);\ndiff --git a/src/ipa/raspberrypi/cam_helper_ov5647.cpp b/src/ipa/raspberrypi/cam_helper_ov5647.cpp\nindex 702c2d07f73a..9dc3fc44e5e8 100644\n--- a/src/ipa/raspberrypi/cam_helper_ov5647.cpp\n+++ b/src/ipa/raspberrypi/cam_helper_ov5647.cpp\n@@ -15,14 +15,14 @@ class CamHelperOv5647 : public CamHelper\n {\n public:\n \tCamHelperOv5647();\n-\tuint32_t GainCode(double gain) const override;\n-\tdouble Gain(uint32_t gain_code) const override;\n-\tvoid GetDelays(int &exposure_delay, int &gain_delay,\n-\t\t       int &vblank_delay) const override;\n-\tunsigned int HideFramesStartup() const override;\n-\tunsigned int HideFramesModeSwitch() const override;\n-\tunsigned int MistrustFramesStartup() const override;\n-\tunsigned int MistrustFramesModeSwitch() const override;\n+\tuint32_t gainCode(double gain) const override;\n+\tdouble gain(uint32_t gainCode) const override;\n+\tvoid getDelays(int &exposureDelay, int &gainDelay,\n+\t\t       int &vblankDelay) const override;\n+\tunsigned int hideFramesStartup() const override;\n+\tunsigned int hideFramesModeSwitch() const override;\n+\tunsigned int mistrustFramesStartup() const override;\n+\tunsigned int mistrustFramesModeSwitch() const override;\n \n private:\n \t/*\n@@ -42,29 +42,29 @@ CamHelperOv5647::CamHelperOv5647()\n {\n }\n \n-uint32_t CamHelperOv5647::GainCode(double gain) const\n+uint32_t CamHelperOv5647::gainCode(double gain) const\n {\n \treturn static_cast<uint32_t>(gain * 16.0);\n }\n \n-double CamHelperOv5647::Gain(uint32_t gain_code) const\n+double CamHelperOv5647::gain(uint32_t gainCode) const\n {\n-\treturn static_cast<double>(gain_code) / 16.0;\n+\treturn static_cast<double>(gainCode) / 16.0;\n }\n \n-void CamHelperOv5647::GetDelays(int &exposure_delay, int &gain_delay,\n-\t\t\t\tint &vblank_delay) const\n+void CamHelperOv5647::getDelays(int &exposureDelay, int &gainDelay,\n+\t\t\t\tint &vblankDelay) const\n {\n \t/*\n \t * We run this sensor in a mode where the gain delay is bumped up to\n \t * 2. It seems to be the only way to make the delays \"predictable\".\n \t */\n-\texposure_delay = 2;\n-\tgain_delay = 2;\n-\tvblank_delay = 2;\n+\texposureDelay = 2;\n+\tgainDelay = 2;\n+\tvblankDelay = 2;\n }\n \n-unsigned int CamHelperOv5647::HideFramesStartup() const\n+unsigned int CamHelperOv5647::hideFramesStartup() const\n {\n \t/*\n \t * On startup, we get a couple of under-exposed frames which\n@@ -73,7 +73,7 @@ unsigned int CamHelperOv5647::HideFramesStartup() const\n \treturn 2;\n }\n \n-unsigned int CamHelperOv5647::HideFramesModeSwitch() const\n+unsigned int CamHelperOv5647::hideFramesModeSwitch() const\n {\n \t/*\n \t * After a mode switch, we get a couple of under-exposed frames which\n@@ -82,7 +82,7 @@ unsigned int CamHelperOv5647::HideFramesModeSwitch() const\n \treturn 2;\n }\n \n-unsigned int CamHelperOv5647::MistrustFramesStartup() const\n+unsigned int CamHelperOv5647::mistrustFramesStartup() const\n {\n \t/*\n \t * First couple of frames are under-exposed and are no good for control\n@@ -91,7 +91,7 @@ unsigned int CamHelperOv5647::MistrustFramesStartup() const\n \treturn 2;\n }\n \n-unsigned int CamHelperOv5647::MistrustFramesModeSwitch() const\n+unsigned int CamHelperOv5647::mistrustFramesModeSwitch() const\n {\n \t/*\n \t * First couple of frames are under-exposed even after a simple\n@@ -100,9 +100,9 @@ unsigned int CamHelperOv5647::MistrustFramesModeSwitch() const\n \treturn 2;\n }\n \n-static CamHelper *Create()\n+static CamHelper *create()\n {\n \treturn new CamHelperOv5647();\n }\n \n-static RegisterCamHelper reg(\"ov5647\", &Create);\n+static RegisterCamHelper reg(\"ov5647\", &create);\ndiff --git a/src/ipa/raspberrypi/cam_helper_ov9281.cpp b/src/ipa/raspberrypi/cam_helper_ov9281.cpp\nindex 9de868c31dc0..130450afefc7 100644\n--- a/src/ipa/raspberrypi/cam_helper_ov9281.cpp\n+++ b/src/ipa/raspberrypi/cam_helper_ov9281.cpp\n@@ -15,10 +15,10 @@ class CamHelperOv9281 : public CamHelper\n {\n public:\n \tCamHelperOv9281();\n-\tuint32_t GainCode(double gain) const override;\n-\tdouble Gain(uint32_t gain_code) const override;\n-\tvoid GetDelays(int &exposure_delay, int &gain_delay,\n-\t\t       int &vblank_delay) const override;\n+\tuint32_t gainCode(double gain) const override;\n+\tdouble gain(uint32_t gainCode) const override;\n+\tvoid getDelays(int &exposureDelay, int &gainDelay,\n+\t\t       int &vblankDelay) const override;\n \n private:\n \t/*\n@@ -38,28 +38,28 @@ CamHelperOv9281::CamHelperOv9281()\n {\n }\n \n-uint32_t CamHelperOv9281::GainCode(double gain) const\n+uint32_t CamHelperOv9281::gainCode(double gain) const\n {\n \treturn static_cast<uint32_t>(gain * 16.0);\n }\n \n-double CamHelperOv9281::Gain(uint32_t gain_code) const\n+double CamHelperOv9281::gain(uint32_t gainCode) const\n {\n-\treturn static_cast<double>(gain_code) / 16.0;\n+\treturn static_cast<double>(gainCode) / 16.0;\n }\n \n-void CamHelperOv9281::GetDelays(int &exposure_delay, int &gain_delay,\n-\t\t\t\tint &vblank_delay) const\n+void CamHelperOv9281::getDelays(int &exposureDelay, int &gainDelay,\n+\t\t\t\tint &vblankDelay) const\n {\n \t/* The driver appears to behave as follows: */\n-\texposure_delay = 2;\n-\tgain_delay = 2;\n-\tvblank_delay = 2;\n+\texposureDelay = 2;\n+\tgainDelay = 2;\n+\tvblankDelay = 2;\n }\n \n-static CamHelper *Create()\n+static CamHelper *create()\n {\n \treturn new CamHelperOv9281();\n }\n \n-static RegisterCamHelper reg(\"ov9281\", &Create);\n+static RegisterCamHelper reg(\"ov9281\", &create);\n",
    "prefixes": [
        "libcamera-devel",
        "02/15"
    ]
}