Show a cover letter.

GET /api/covers/26256/?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 26256,
    "url": "https://patchwork.libcamera.org/api/covers/26256/?format=api",
    "web_url": "https://patchwork.libcamera.org/cover/26256/",
    "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": "<20260304232519.335E61EA006B@mailuser.phl.internal>",
    "date": "2026-03-04T23:00:56",
    "name": "[v2,0/4] Simple pipeline: proportional AGC, AWB stats fix, OV2740 tuning",
    "submitter": {
        "id": 261,
        "url": "https://patchwork.libcamera.org/api/people/261/?format=api",
        "name": "Javier Tia",
        "email": "floss@jetm.me"
    },
    "mbox": "https://patchwork.libcamera.org/cover/26256/mbox/",
    "series": [
        {
            "id": 5820,
            "url": "https://patchwork.libcamera.org/api/series/5820/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=5820",
            "date": "2026-03-04T23:00:56",
            "name": "Simple pipeline: proportional AGC, AWB stats fix, OV2740 tuning",
            "version": 2,
            "mbox": "https://patchwork.libcamera.org/series/5820/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/covers/26256/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 43082BE086\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed,  4 Mar 2026 23:25:22 +0000 (UTC)",
            "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id DDA7B625AC;\n\tThu,  5 Mar 2026 00:25:21 +0100 (CET)",
            "from fhigh-b2-smtp.messagingengine.com\n\t(fhigh-b2-smtp.messagingengine.com [202.12.124.153])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 55E83623A8\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu,  5 Mar 2026 00:25:20 +0100 (CET)",
            "from phl-compute-02.internal (phl-compute-02.internal\n\t[10.202.2.42])\n\tby mailfhigh.stl.internal (Postfix) with ESMTP id 74ABE7A008A\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed,  4 Mar 2026 18:25:19 -0500 (EST)",
            "from phl-imap-07 ([10.202.2.97])\n\tby phl-compute-02.internal (MEProxy); Wed, 04 Mar 2026 18:25:19 -0500",
            "by mailuser.phl.internal (Postfix, from userid 501)\n\tid 335E61EA006B; Wed,  4 Mar 2026 18:25:19 -0500 (EST)"
        ],
        "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (2048-bit key;\n\tunprotected) header.d=jetm.me header.i=@jetm.me header.b=\"nsKPcw2/\";\n\tdkim=pass (2048-bit key;\n\tunprotected) header.d=messagingengine.com\n\theader.i=@messagingengine.com header.b=\"4GuM2MzH\"; \n\tdkim-atps=neutral",
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=jetm.me; h=cc\n\t:content-transfer-encoding:content-type:content-type:date:date\n\t:from:from:in-reply-to:in-reply-to:message-id:mime-version\n\t:references:reply-to:subject:subject:to:to; s=fm3; t=1772666719;\n\tx=1772753119; bh=0HOobFkO4RlgGbOTtJj+b0Jvgtp+sjNz++DHCtu97Sg=; b=\n\tnsKPcw2/md2GV/PTNAOrKg0vr8YsgaKmFKIUZJ6+jFyJgD4niL1tsnLFXTJWLOcf\n\tSFdmA+gp5TVqPXb8QkNy/hw7cPRhWJm+Q6t1pVhnEbRw7YW5uL0+or+NUgtlrzc9\n\tJf8ryIVZ4UFZp2RV0RTfCGufWYeKR3lmLgQf+8KySzw40vV6VbiMzF69ZN5+ug+s\n\t+bdOZedKeXaZnJ1oU96KPks5/vH46t2BdUGOgxWy7YsP4l9BDxe3xugMczpq+3vp\n\tLqEB3MMQsDsgnx0jr5IB3aXtcOqtJk++C/WXv5AQP87Jb/CVYWl6bCLRdmNfyBfW\n\tBZWSczLSYLQ15BhVoxFB6g==",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=\n\tmessagingengine.com; h=cc:content-transfer-encoding:content-type\n\t:content-type:date:date:feedback-id:feedback-id:from:from\n\t:in-reply-to:in-reply-to:message-id:mime-version:references\n\t:reply-to:subject:subject:to:to:x-me-proxy:x-me-sender\n\t:x-me-sender:x-sasl-enc; s=fm1; t=1772666719; x=1772753119; bh=0\n\tHOobFkO4RlgGbOTtJj+b0Jvgtp+sjNz++DHCtu97Sg=; b=4GuM2MzHNt5bJ7WP+\n\t/qnJIFEzOSV76n5BHi13AwOtZJn2Ut4lF90kmk08RSPgQ6jKRAdiHXW/MISeswZt\n\te7CARJbifWGg/l+/nBDcLp27CK3Kxiw24NQO03UUyMOTuVJBY4d/O/kacJ3x1V8/\n\tV75Ok0wpUDBoeERGnZ/6RPFvs6sodD5+UKlLvGwxAzppZUacKWhinq6yn8BqDCcr\n\tcXM4dSdZygv5TP2XtQeyFpzcy8Mvundc+cpmwOfJo8FQGeuTDqYHEJkk3sK3FNTH\n\tUSLD/yfAw2htq/EvEFubbeG2YWi9ObIf+uWUWd0FSAQG4qK5IkbWvdnVBOXCjC7Y\n\t+26Sw=="
        ],
        "X-ME-Sender": "<xms:X7-oafLZ1IwZjMPN2EIg64btNtrG55GnzDNyf2Zrf_NyHXR7QQOjTg>\n\t<xme:X7-oad8LF9U4Wzlcao1xi-ao6kyl8lZgkLdvLCijey38C2zT8vK3uY3nsZVEDD_oJ\n\tOrIOap8MyEft9PheWKDc5Y2xzWX4RStyRX9G6mNQ3PfkMU-KIOZMZo>",
        "X-ME-Proxy-Cause": "gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvieegkeduucetufdoteggodetrf\n\tdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu\n\trghilhhouhhtmecufedttdenucgopfhokfffucdluddtmdenucfjughrpefotggggffhvf\n\tffufgjfhesthektddtredtjeenucfhrhhomheplfgrvhhivghrucfvihgruceofhhlohhs\n\tshesjhgvthhmrdhmvgeqnecuggftrfgrthhtvghrnhepteetvdeklefgledtjefhhfdtle\n\tdvhfffgfeuieelgeeigfekgffhleeghfefhfejnecuvehluhhsthgvrhfuihiivgeptden\n\tucfrrghrrghmpehmrghilhhfrhhomhepfhhlohhsshesjhgvthhmrdhmvgdpnhgspghrtg\n\thpthhtohepuddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtoheplhhisggtrghmvghr\n\trgdquggvvhgvlheslhhishhtshdrlhhisggtrghmvghrrgdrohhrgh",
        "X-ME-Proxy": "<xmx:X7-oaVb_TIYXmYY8fs7Q8ABPMjYFtuUT4MnKa2twFmoh3JGrRTSahQ>\n\t<xmx:X7-oacV87btikGW3w3n7q8-YakVxaoMFrKQ8ACa4wCl7uWJI_ykVIg>\n\t<xmx:X7-oaU0T-N5I3cIQSECI_wpjQ5iFWSz87n1qVwwBp1r5MOWDJIWQ-A>\n\t<xmx:X7-oabZSniOItHHfw4k5TXqT3m6TszimiCQ2RyHTXyKEgdf5kC6FHw>\n\t<xmx:X7-oact1PPk1iWsxF1XXwoB12u_zztuHW5BZeue-KoeG1wBle8rNy3Qp>",
        "Feedback-ID": "i9dde48b3:Fastmail",
        "X-Mailer": "MessagingEngine.com Webmail Interface",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "From": "Javier Tia <floss@jetm.me>",
        "To": "libcamera-devel@lists.libcamera.org",
        "Date": "Wed, 04 Mar 2026 17:00:56 -0600",
        "Subject": "[PATCH v2 0/4] Simple pipeline: proportional AGC, AWB stats fix,\n\tOV2740 tuning",
        "In-Reply-To": "20260225221859.600869-1-floss@jetm.me",
        "References": "20260225221859.600869-1-floss@jetm.me",
        "Message-Id": "<20260304232519.335E61EA006B@mailuser.phl.internal>",
        "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>",
        "Errors-To": "libcamera-devel-bounces@lists.libcamera.org",
        "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"
    },
    "content": "This series fixes AGC oscillation and an AWB statistics bug in the\nSimple pipeline, and adds the first sensor-specific tuning file for\nthe SoftISP.\n\nPatch 1 replaces the fixed 10% bang-bang step in the AGC with a\nproportional controller where step size scales with the MSV error.\nThis eliminates the brightness flicker observed on sensors with\nnon-trivial control latency (tested on OV2740 behind Intel\nIPU6/IVSC). Unchanged from v1.\n\nPatch 2 fixes a bit-depth mismatch in the statistics gathering.\nThe SWSTATS_ACCUMULATE_LINE_STATS() macro divides the luminance value\nfor the histogram to normalize it to 8-bit range, but does not apply\nthe same normalization to the RGB sums. For 10-bit and 12-bit\nunpacked Bayer formats, the sums are accumulated at native bit depth\nwhile the AWB subtracts an 8-bit black level, under-correcting by 4x\nor 16x respectively. This skews the AWB grey world gains, producing a\nvisible color cast (~9% green on the OV2740 with BLC=16). The fix\nright-shifts the RGB sums in finishFrame() to normalize them to 8-bit\nscale, matching the histogram and the 8-bit BLC used by AWB.\n\nPatch 3 adds an OV2740 tuning file. With the AWB fix from patch 2,\nno CCM is needed - AWB grey world convergence gives R/G ~ 0.98 and\nB/G ~ 0.99 under 6500K lighting.\n\nPatch 4 adds the OV2740 black level (4096, i.e. 0x40 at 10-bit) to\nCameraSensorHelperOv2740, following the established pattern used by\nOV5675, IMX219, and other sensors. This is the canonical location for\nsensor calibration data and is used across all pipeline handlers.\n\nChanges since v1:\n- Patch 2: New. Fixes the AWB/BLC bit-depth mismatch for >8-bit\n  sensors, eliminating the green cast without needing a CCM.\n- Patch 3 (was patch 2 in v1): Removed CCM - no longer needed with\n  the AWB fix. Removed explicit blackLevel from the tuning file;\n  the value is now provided by CameraSensorHelperOv2740 (patch 4)\n  as suggested by Robert Mader.\n- Patch 4 (was patch 3 in v1): Unchanged.\n\nTested on ThinkPad X1 Carbon Gen 10 (Alder Lake, OV2740, IPU6 ISYS,\nCachyOS kernel 6.19.3, libcamera 0.7.0).\n\nTest results (converged frames, 6500K lighting, no CCM):\n\n  With AWB fix (v2):    R/G=0.984  B/G=0.985  (~1.5% residual)\n  Without fix (v1):     R/G=0.910  B/G=0.904  (~9% green cast)\n  BLC=0 control:        R/G=1.000  B/G=1.001  (proves the mismatch)\n\nJavier Tia (4):\n  ipa: simple: agc: Replace bang-bang controller with proportional\n  libcamera: software_isp: Normalize statistics sums to 8-bit\n  ipa: simple: data: Add OV2740 tuning file\n  ipa: libipa: camera_sensor_helper: Add OV2740 black level\n\n .../internal/software_isp/swstats_cpu.h       |  1 +\n src/ipa/libipa/camera_sensor_helper.cpp       |  2 +\n src/ipa/simple/algorithms/agc.cpp             | 73 +++++++++++++------\n src/ipa/simple/data/meson.build               |  1 +\n src/ipa/simple/data/ov2740.yaml               | 13 ++++\n src/libcamera/software_isp/swstats_cpu.cpp    |  9 +++\n 6 files changed, 75 insertions(+), 24 deletions(-)\n create mode 100644 src/ipa/simple/data/ov2740.yaml"
}