Show a patch.

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

{
    "id": 16844,
    "url": "https://patchwork.libcamera.org/api/patches/16844/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/16844/",
    "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-9-naush@raspberrypi.com>",
    "date": "2022-07-27T08:55:24",
    "name": "[libcamera-devel,v3,8/8] ipa: raspberrypi: agc: Fix log message prefixes",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "f21d74f27ace87b727701463b0b9d20cf0950e6b",
    "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/16844/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/16844/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/16844/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 2A173C3275\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 27 Jul 2022 08:55:47 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id CE92663329;\n\tWed, 27 Jul 2022 10:55:46 +0200 (CEST)",
            "from mail-wr1-x430.google.com (mail-wr1-x430.google.com\n\t[IPv6:2a00:1450:4864:20::430])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 2264663317\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 27 Jul 2022 10:55:39 +0200 (CEST)",
            "by mail-wr1-x430.google.com with SMTP id v17so4302552wrr.10\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 27 Jul 2022 01:55:39 -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.37\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tWed, 27 Jul 2022 01:55:37 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1658912146;\n\tbh=uV+b4/p+XoTU3kGaC2bVyANWaENg0m5o4x3QwaV8kss=;\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=V335Va9mGA6IPSJawCW4WTxYqKMtOcl/Br6xH4g3gv05CzoiLNEDQDG7mLXqO5Nit\n\tCEATIwQGcEdnDOOoZNJxjh8PZhqCzTXTaBlh41Belay3BPiDYIkmqtxGWIVGASlH0c\n\tBBrwMqxwVqEAKxbIsjV8D3KV6jrTwHJ3VHAJBwiXlGcuN1ElzyhyXx6c+Nku3L23wM\n\thuviT+IEyweT84dznfXT8kDcGJWell5tj3KcL+E7iNffv7C0pzyXxP1ZzE57s62deM\n\t8+7gdZCCVaSU+vfxGcqdD1x7W++9uuHe/p3JbC+qLTpbSBgwrN2A145JsEe6cuCUTC\n\tzHLr/fnvK8Tew==",
            "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=4GOE19+aLl33czo+TaTv1ukOtk3l3EiGN5X495ux0nM=;\n\tb=i0uLKP/LEJTBbJbpcxnNi7sirKEjOvz59tWOZT4/Us8XwnljEig2cPg46e3jbbBBQX\n\thctiARdRnjZpWJrD6t3/3XM3VKl6Odoc69MNe8s/WAea+A/+TWpVmPE3edfC0UKSsi7J\n\t7S47Z8/Zl6xtPEk/8WySZQUFLitFj1RosXk749ltpp01zvQ7VRWzgkIoMgoY+YrrO8Z3\n\tL1uKARNXIycDCWZL+MdAamFeKwbOE70jR/GxHfL8o+/1IqufxYmlaVOUwZzzz9eePZck\n\trJ0yrtTJ/RZmZCZaq2ZpRNe0zbb4J1wqAF0Dw786gqGKQs/LxTF7fK+Txl41a/q9Xy5i\n\t6jrA=="
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"i0uLKP/L\"; 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=4GOE19+aLl33czo+TaTv1ukOtk3l3EiGN5X495ux0nM=;\n\tb=bLaGmbZg7LCG4uOvV/dFnb26DYbWZp9I1nNvTGKBkqAIgZRGgpiR7pu4+/BLNZrWmL\n\tU1GzV8WYzDIGgiBXQML0Yo/GJuB1lA6ldR+4mu6e0k8h4ClvmtfKO7HX927h9f5+Yle+\n\tN1oXeGlD7KZUjQEFHF3bnzfPE3/36LyxcGt2qI7xLBgH+PK5Evp4EXUlkkfd4bmsCkhF\n\t99Qjaz7nF4jp1++r57EbJD+Y19vHPQEluijkgZ042NDxqcqOivCcCqSwX6erKRF4kjBo\n\txinImT7zlyZVNYfRREP6v8CW7wnxfoOvqrsCfRAPS/h2n8/IA7nnhaTijTp0Gc+nse2F\n\tfd5A==",
        "X-Gm-Message-State": "AJIora9wa+OmIQJVenyaGQVp8SyIbgrU+wXXOJNvPA/TL9bbcxAvEFBU\n\tBsQhwUfj4X6/q7vtGzSsJ7+3eOPQky2mDQ==",
        "X-Google-Smtp-Source": "AGRyM1uz9aQ489E4vTw82yLPHZMt35Fdxz7JsohjB5TsaDShHBFj8U+gzarfKioIU0StE1nDdSskBg==",
        "X-Received": "by 2002:a5d:5960:0:b0:21e:84ff:caac with SMTP id\n\te32-20020a5d5960000000b0021e84ffcaacmr9727981wri.255.1658912138491; \n\tWed, 27 Jul 2022 01:55:38 -0700 (PDT)",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Wed, 27 Jul 2022 09:55:24 +0100",
        "Message-Id": "<20220727085524.13290-9-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 8/8] ipa: raspberrypi: agc: Fix log\n\tmessage prefixes",
        "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": "Remove \"Agc:\" as that gets prefixed by the logging system.\ns/AgcConfig/AgcMeteringMode/ and s/AgcConfig/AgcMeteringMode where appropriate.\n\nSigned-off-by: Naushir Patuck <naush@raspberrypi.com>\nReviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n src/ipa/raspberrypi/controller/rpi/agc.cpp | 20 ++++++++++----------\n 1 file changed, 10 insertions(+), 10 deletions(-)",
    "diff": "diff --git a/src/ipa/raspberrypi/controller/rpi/agc.cpp b/src/ipa/raspberrypi/controller/rpi/agc.cpp\nindex e0c174b6580d..adec8592626d 100644\n--- a/src/ipa/raspberrypi/controller/rpi/agc.cpp\n+++ b/src/ipa/raspberrypi/controller/rpi/agc.cpp\n@@ -35,11 +35,11 @@ void AgcMeteringMode::read(boost::property_tree::ptree const &params)\n \tint num = 0;\n \tfor (auto &p : params.get_child(\"weights\")) {\n \t\tif (num == AgcStatsSize)\n-\t\t\tLOG(RPiAgc, Fatal) << \"AgcConfig: too many weights\";\n+\t\t\tLOG(RPiAgc, Fatal) << \"AgcMeteringMode: too many weights\";\n \t\tweights[num++] = p.second.get_value<double>();\n \t}\n \tif (num != AgcStatsSize)\n-\t\tLOG(RPiAgc, Fatal) << \"AgcConfig: insufficient weights\";\n+\t\tLOG(RPiAgc, Fatal) << \"AgcMeteringMode: insufficient weights\";\n }\n \n static std::string\n@@ -79,10 +79,10 @@ void AgcExposureMode::read(boost::property_tree::ptree const &params)\n \tint numAgs = readList(gain, params.get_child(\"gain\"));\n \tif (numShutters < 2 || numAgs < 2)\n \t\tLOG(RPiAgc, Fatal)\n-\t\t\t<< \"AgcConfig: must have at least two entries in exposure profile\";\n+\t\t\t<< \"AgcExposureMode: must have at least two entries in exposure profile\";\n \tif (numShutters != numAgs)\n \t\tLOG(RPiAgc, Fatal)\n-\t\t\t<< \"AgcConfig: expect same number of exposure and gain entries in exposure profile\";\n+\t\t\t<< \"AgcExposureMode: expect same number of exposure and gain entries in exposure profile\";\n }\n \n static std::string\n@@ -464,7 +464,7 @@ void Agc::housekeepConfig()\n \tif (strcmp(meteringModeName_.c_str(), status_.meteringMode)) {\n \t\tauto it = config_.meteringModes.find(meteringModeName_);\n \t\tif (it == config_.meteringModes.end())\n-\t\t\tLOG(RPiAgc, Fatal) << \"Agc: no metering mode \" << meteringModeName_;\n+\t\t\tLOG(RPiAgc, Fatal) << \"No metering mode \" << meteringModeName_;\n \t\tmeteringMode_ = &it->second;\n \t\tcopyString(meteringModeName_, status_.meteringMode,\n \t\t\t   sizeof(status_.meteringMode));\n@@ -472,7 +472,7 @@ void Agc::housekeepConfig()\n \tif (strcmp(exposureModeName_.c_str(), status_.exposureMode)) {\n \t\tauto it = config_.exposureModes.find(exposureModeName_);\n \t\tif (it == config_.exposureModes.end())\n-\t\t\tLOG(RPiAgc, Fatal) << \"Agc: no exposure profile \" << exposureModeName_;\n+\t\t\tLOG(RPiAgc, Fatal) << \"No exposure profile \" << exposureModeName_;\n \t\texposureMode_ = &it->second;\n \t\tcopyString(exposureModeName_, status_.exposureMode,\n \t\t\t   sizeof(status_.exposureMode));\n@@ -481,7 +481,7 @@ void Agc::housekeepConfig()\n \t\tauto it =\n \t\t\tconfig_.constraintModes.find(constraintModeName_);\n \t\tif (it == config_.constraintModes.end())\n-\t\t\tLOG(RPiAgc, Fatal) << \"Agc: no constraint list \" << constraintModeName_;\n+\t\t\tLOG(RPiAgc, Fatal) << \"No constraint list \" << constraintModeName_;\n \t\tconstraintMode_ = &it->second;\n \t\tcopyString(constraintModeName_, status_.constraintMode,\n \t\t\t   sizeof(status_.constraintMode));\n@@ -498,7 +498,7 @@ void Agc::fetchCurrentExposure(Metadata *imageMetadata)\n \tDeviceStatus *deviceStatus =\n \t\timageMetadata->getLocked<DeviceStatus>(\"device.status\");\n \tif (!deviceStatus)\n-\t\tLOG(RPiAgc, Fatal) << \"Agc: no device metadata\";\n+\t\tLOG(RPiAgc, Fatal) << \"No device metadata\";\n \tcurrent_.shutter = deviceStatus->shutterSpeed;\n \tcurrent_.analogueGain = deviceStatus->analogueGain;\n \tAgcStatus *agcStatus =\n@@ -513,7 +513,7 @@ void Agc::fetchAwbStatus(Metadata *imageMetadata)\n \tawb_.gainG = 1.0;\n \tawb_.gainB = 1.0;\n \tif (imageMetadata->get(\"awb.status\", awb_) != 0)\n-\t\tLOG(RPiAgc, Debug) << \"Agc: no AWB status found\";\n+\t\tLOG(RPiAgc, Debug) << \"No AWB status found\";\n }\n \n static double computeInitialY(bcm2835_isp_stats *stats, AwbStatus const &awb,\n@@ -570,7 +570,7 @@ void Agc::computeGain(bcm2835_isp_stats *statistics, Metadata *imageMetadata,\n \tstruct LuxStatus lux = {};\n \tlux.lux = 400; /* default lux level to 400 in case no metadata found */\n \tif (imageMetadata->get(\"lux.status\", lux) != 0)\n-\t\tLOG(RPiAgc, Warning) << \"Agc: no lux level found\";\n+\t\tLOG(RPiAgc, Warning) << \"No lux level found\";\n \tHistogram h(statistics->hist[0].g_hist, NUM_HISTOGRAM_BINS);\n \tdouble evGain = status_.ev * config_.baseEv;\n \t/*\n",
    "prefixes": [
        "libcamera-devel",
        "v3",
        "8/8"
    ]
}