{"id":19379,"url":"https://patchwork.libcamera.org/api/1.1/patches/19379/?format=json","web_url":"https://patchwork.libcamera.org/patch/19379/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20240109102547.2762-3-david.plowman@raspberrypi.com>","date":"2024-01-09T10:25:47","name":"[libcamera-devel,v4,2/2] ipa: rpi: vc4: data: Update tuning files for HDR","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"65649d174f6d32a3bb7539ec2aadf994a3c55119","submitter":{"id":42,"url":"https://patchwork.libcamera.org/api/1.1/people/42/?format=json","name":"David Plowman","email":"david.plowman@raspberrypi.com"},"delegate":null,"mbox":"https://patchwork.libcamera.org/patch/19379/mbox/","series":[{"id":4135,"url":"https://patchwork.libcamera.org/api/1.1/series/4135/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=4135","date":"2024-01-09T10:25:45","name":"HDR for Raspberry Pi","version":4,"mbox":"https://patchwork.libcamera.org/series/4135/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/19379/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/19379/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 48A33C323E\n\tfor <parsemail@patchwork.libcamera.org>;\n\tTue,  9 Jan 2024 10:25:57 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 7434962B58;\n\tTue,  9 Jan 2024 11:25:56 +0100 (CET)","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 E7DFB62B52\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue,  9 Jan 2024 11:25:52 +0100 (CET)","by mail-wr1-x430.google.com with SMTP id\n\tffacd0b85a97d-33687627ad0so2521409f8f.2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tTue, 09 Jan 2024 02:25:52 -0800 (PST)","from pi4-davidp.pitowers.org\n\t([2001:4d4e:300:1f:70fb:d051:958c:e7b3])\n\tby smtp.gmail.com with ESMTPSA id\n\tc15-20020a5d4ccf000000b00336765e9babsm2005086wrt.83.2024.01.09.02.25.50\n\t(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n\tTue, 09 Jan 2024 02:25:50 -0800 (PST)"],"DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1704795956;\n\tbh=nb6uF+o6t+5QUaXN2SHBpbrUvLjFvQlRlkdqFeRw/KQ=;\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=VOPMYPLzRK/NJk5aC83cyKU+b2RiHuQqBagmb6lbx6ojw0pL2qA1oOCFX8edO4cjm\n\tDUQpiTBCAsUDKDtF85P9jumNswTQSTh8KDHSlnQk4FBPsCXEidp/5REeq7s6fh4eN7\n\t8Xcpfyfi6ZxBHVPvBxuEwPdK6JxNwVJxZ7JaEAgJ7TalVw0uZAGSt1Nl4ofZ154hzZ\n\taZfUGWeT+WQVZEZxlCvPb7FwQl6xiWKfUtF20N9lBJhIjEv70jF6N/nk7YLK/Hzsce\n\tkj9sDlKL5U3C4REGh9ZEAAFV3vrkCk20OfMgKwdcfP2ivIkeePAL9+U8qMwnW4kxqN\n\tCbdbbi4AWqQBg==","v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=raspberrypi.com; s=google; t=1704795952; x=1705400752;\n\tdarn=lists.libcamera.org; \n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:from:to:cc:subject:date\n\t:message-id:reply-to;\n\tbh=4VK91kViVDJb2jFRtNmqS/0/E+J4AJ51tC5pFB+2zzg=;\n\tb=ab2qRnyf852DDhphSqSLeg5AU4bHPY132iwxrfnUHI8JE3dcgiRFFX7oxCV5/fTuBZ\n\tpoUq9H7epd7SLgbQirJmw9vEAm/iUGt1UeRmRRFBkimA6Bi5LvYRu1saVmE9VMpCt8WA\n\tTs/QGobQnu7PqwmCNCQCUZKPlgg6zHVhKWhet6rAVpmwtembs/V2fww8lADh8RLeGFiM\n\tNv49h0j08R6mXCq1IvsjRBkDqd9iEnS5mxv0hVkQQyXGOA5T8CY2yosn9ByWrPfGRieq\n\tebrsWEqFTTl/kmMxq/oiBAa1HA1GG6fw1efoBSYNO4i8lpKHdmB/BNQPdNdv7yFmMTBw\n\tjUZw=="],"Authentication-Results":"lancelot.ideasonboard.com; dkim=pass (2048-bit key; \n\tunprotected) header.d=raspberrypi.com\n\theader.i=@raspberrypi.com\n\theader.b=\"ab2qRnyf\"; dkim-atps=neutral","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20230601; t=1704795952; x=1705400752;\n\th=content-transfer-encoding:mime-version:references:in-reply-to\n\t:message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n\t:subject:date:message-id:reply-to;\n\tbh=4VK91kViVDJb2jFRtNmqS/0/E+J4AJ51tC5pFB+2zzg=;\n\tb=HvF3ogCO0L9NdpfLofb3DTFp2oVpTjx0937vxI/aV8++hDh74z2YTLHbTynp3r1H40\n\t+k/H2JgW5/zA9EnAWy/2vd7e0Rr4RAEXSVZ+cvRI2fV7la14xv1RWDz7/4SqaCydtD8v\n\t0rsKkDnCH2TERZRFu1aqynDZAC4VhdfhY8zdaplOPyrzNM8NyhGD+UNmDGg18I+2+tcQ\n\tF6dVR87yw/qivURQJRSibU606Yi+2Yl7N5+Iw/jbF1P0tKD6c0u2ldp6GrqjJcn7jr4V\n\t5Y41RmDUgBZ12XnT4dv0Oq0QnBx9eOwZCZPVpnQJcXEnpEAOr53CQ3DYCMvkAIauptQi\n\t5dOQ==","X-Gm-Message-State":"AOJu0YzEJ88TSnJZQPzQRr5grWq3VBU1x70nqAb022naWJBqvFhGs4VX\n\tKSnA3VU6B57frCCS5TnaBxtMR0NkfXaTiD+GeEuxLt3AZ3Q=","X-Google-Smtp-Source":"AGHT+IG955blcM8RYJ5A5X7VkT+B0yV7hC4gJ0p/OJIZW0hlXXeufn+BUKqN8VTLlfA6SveS9WCQKQ==","X-Received":"by 2002:adf:f850:0:b0:336:c964:fabf with SMTP id\n\td16-20020adff850000000b00336c964fabfmr400195wrq.104.1704795951148; \n\tTue, 09 Jan 2024 02:25:51 -0800 (PST)","To":"libcamera-devel@lists.libcamera.org","Date":"Tue,  9 Jan 2024 10:25:47 +0000","Message-Id":"<20240109102547.2762-3-david.plowman@raspberrypi.com>","X-Mailer":"git-send-email 2.30.2","In-Reply-To":"<20240109102547.2762-1-david.plowman@raspberrypi.com>","References":"<20240109102547.2762-1-david.plowman@raspberrypi.com>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v4 2/2] ipa: rpi: vc4: data: Update tuning\n\tfiles for HDR","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":"David Plowman via libcamera-devel <libcamera-devel@lists.libcamera.org>","Reply-To":"David Plowman <david.plowman@raspberrypi.com>","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"All the Raspberry Pi official camera tuning files are updated for\nHDR. As stated previously, there is no mechanism in the hardware for\ncombining images so all this does is enable multi-channel AGC to\nproduce short and long exposure frames. It will be up to the\napplication to deal with them.\n\nThe changes are identical in every tuning file.\n\n1. The existing AGC tuning is duplicated twice so that we have 3 AGC\nchannels.\n\n2. The first is left alone (the default AGC channel), the second is\ntweaked to under-expose significantly (ev -3) and the final one is\ntweaked to over-exposure slightly (ev +0.5)\n\n3. Control parameters are provided to the \"rpi.hdr\" algorithm to\nassociate these AGC channels correctly with the HDR modes.\n\nSigned-off-by: David Plowman <david.plowman@raspberrypi.com>\n---\n src/ipa/rpi/vc4/data/imx219.json           | 384 +++++++++++++++-----\n src/ipa/rpi/vc4/data/imx219_noir.json      | 384 +++++++++++++++-----\n src/ipa/rpi/vc4/data/imx477.json           | 376 +++++++++++++++-----\n src/ipa/rpi/vc4/data/imx477_noir.json      | 384 +++++++++++++++-----\n src/ipa/rpi/vc4/data/imx708.json           | 346 +++++++++++++-----\n src/ipa/rpi/vc4/data/imx708_noir.json      | 346 +++++++++++++-----\n src/ipa/rpi/vc4/data/imx708_wide.json      | 346 +++++++++++++-----\n src/ipa/rpi/vc4/data/imx708_wide_noir.json | 346 +++++++++++++-----\n src/ipa/rpi/vc4/data/ov5647.json           | 388 ++++++++++++++++-----\n 9 files changed, 2524 insertions(+), 776 deletions(-)","diff":"diff --git a/src/ipa/rpi/vc4/data/imx219.json b/src/ipa/rpi/vc4/data/imx219.json\nindex e8fce164..54defc0b 100644\n--- a/src/ipa/rpi/vc4/data/imx219.json\n+++ b/src/ipa/rpi/vc4/data/imx219.json\n@@ -131,95 +131,282 @@\n         {\n             \"rpi.agc\":\n             {\n-                \"metering_modes\":\n-                {\n-                    \"centre-weighted\":\n-                    {\n-                        \"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n-                    },\n-                    \"spot\":\n-                    {\n-                        \"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n-                    },\n-                    \"matrix\":\n-                    {\n-                        \"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n-                    }\n-                },\n-                \"exposure_modes\":\n-                {\n-                    \"normal\":\n-                    {\n-                        \"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n-                    },\n-                    \"short\":\n-                    {\n-                        \"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n-                    },\n-                    \"long\":\n-                    {\n-                        \"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n-                    }\n-                },\n-                \"constraint_modes\":\n-                {\n-                    \"normal\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.5,\n-                                1000, 0.5\n-                            ]\n-                        }\n-                    ],\n-                    \"highlight\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.5,\n-                                1000, 0.5\n-                            ]\n-                        },\n-                        {\n-                            \"bound\": \"UPPER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.8,\n-                                1000, 0.8\n-                            ]\n-                        }\n-                    ],\n-                    \"shadows\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.0,\n-                            \"q_hi\": 0.5,\n-                            \"y_target\":\n-                            [\n-                                0, 0.17,\n-                                1000, 0.17\n-                            ]\n-                        }\n-                    ]\n-                },\n-                \"y_target\":\n-                [\n-                    0, 0.16,\n-                    1000, 0.165,\n-                    10000, 0.17\n-                ]\n-            }\n+\t\t\"channels\":\n+\t\t[\n+\t\t    {\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.5,\n+\t\t\t\t\t1000, 0.5\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.5,\n+\t\t\t\t\t1000, 0.5\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"shadows\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.0,\n+\t\t\t\t    \"q_hi\": 0.5,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.17,\n+\t\t\t\t\t1000, 0.17\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t]\n+\t\t    },\n+\t\t    {\n+\t\t\t\"base_ev\": 0.125,\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.5,\n+\t\t\t\t\t1000, 0.5\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.5,\n+\t\t\t\t\t1000, 0.5\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"shadows\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.0,\n+\t\t\t\t    \"q_hi\": 0.5,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.17,\n+\t\t\t\t\t1000, 0.17\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t]\n+\t\t    },\n+\t\t    {\n+\t\t\t\"base_ev\": 1.5,\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.5,\n+\t\t\t\t\t1000, 0.5\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.5,\n+\t\t\t\t\t1000, 0.5\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"shadows\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.0,\n+\t\t\t\t    \"q_hi\": 0.5,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.17,\n+\t\t\t\t\t1000, 0.17\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t]\n+\t\t    }\n+\t\t]\n+\t    }\n         },\n         {\n             \"rpi.alsc\":\n@@ -463,6 +650,21 @@\n         },\n         {\n             \"rpi.sharpen\": { }\n-        }\n+        },\n+\t{\n+\t    \"rpi.hdr\":\n+\t    {\n+\t\t\"MultiExposure\":\n+\t\t{\n+\t\t    \"cadence\": [ 1, 2 ],\n+\t\t    \"channel_map\": { \"short\": 1, \"long\": 2 }\n+\t\t},\n+\t\t\"SingleExposure\":\n+\t\t{\n+\t\t    \"cadence\": [ 1 ],\n+\t\t    \"channel_map\": { \"short\": 1 }\n+\t\t}\n+\t    }\n+\t}\n     ]\n-}\n\\ No newline at end of file\n+}\ndiff --git a/src/ipa/rpi/vc4/data/imx219_noir.json b/src/ipa/rpi/vc4/data/imx219_noir.json\nindex cfedb943..e823a90d 100644\n--- a/src/ipa/rpi/vc4/data/imx219_noir.json\n+++ b/src/ipa/rpi/vc4/data/imx219_noir.json\n@@ -47,95 +47,282 @@\n         {\n             \"rpi.agc\":\n             {\n-                \"metering_modes\":\n-                {\n-                    \"centre-weighted\":\n-                    {\n-                        \"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n-                    },\n-                    \"spot\":\n-                    {\n-                        \"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n-                    },\n-                    \"matrix\":\n-                    {\n-                        \"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n-                    }\n-                },\n-                \"exposure_modes\":\n-                {\n-                    \"normal\":\n-                    {\n-                        \"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n-                    },\n-                    \"short\":\n-                    {\n-                        \"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n-                    },\n-                    \"long\":\n-                    {\n-                        \"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n-                    }\n-                },\n-                \"constraint_modes\":\n-                {\n-                    \"normal\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.5,\n-                                1000, 0.5\n-                            ]\n-                        }\n-                    ],\n-                    \"highlight\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.5,\n-                                1000, 0.5\n-                            ]\n-                        },\n-                        {\n-                            \"bound\": \"UPPER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.8,\n-                                1000, 0.8\n-                            ]\n-                        }\n-                    ],\n-                    \"shadows\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.0,\n-                            \"q_hi\": 0.5,\n-                            \"y_target\":\n-                            [\n-                                0, 0.17,\n-                                1000, 0.17\n-                            ]\n-                        }\n-                    ]\n-                },\n-                \"y_target\":\n-                [\n-                    0, 0.16,\n-                    1000, 0.165,\n-                    10000, 0.17\n-                ]\n-            }\n+\t\t\"channels\":\n+\t\t[\n+\t\t    {\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.5,\n+\t\t\t\t\t1000, 0.5\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.5,\n+\t\t\t\t\t1000, 0.5\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"shadows\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.0,\n+\t\t\t\t    \"q_hi\": 0.5,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.17,\n+\t\t\t\t\t1000, 0.17\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t]\n+\t\t    },\n+\t\t    {\n+\t\t\t\"base_ev\": 0.125,\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.5,\n+\t\t\t\t\t1000, 0.5\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.5,\n+\t\t\t\t\t1000, 0.5\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"shadows\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.0,\n+\t\t\t\t    \"q_hi\": 0.5,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.17,\n+\t\t\t\t\t1000, 0.17\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t]\n+\t\t    },\n+\t\t    {\n+\t\t\t\"base_ev\": 1.5,\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.5,\n+\t\t\t\t\t1000, 0.5\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.5,\n+\t\t\t\t\t1000, 0.5\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"shadows\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.0,\n+\t\t\t\t    \"q_hi\": 0.5,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.17,\n+\t\t\t\t\t1000, 0.17\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t]\n+\t\t    }\n+\t\t]\n+\t    }\n         },\n         {\n             \"rpi.alsc\":\n@@ -397,6 +584,21 @@\n         },\n         {\n             \"rpi.sharpen\": { }\n-        }\n+        },\n+\t{\n+\t    \"rpi.hdr\":\n+\t    {\n+\t\t\"MultiExposure\":\n+\t\t{\n+\t\t    \"cadence\": [ 1, 2 ],\n+\t\t    \"channel_map\": { \"short\": 1, \"long\": 2 }\n+\t\t},\n+\t\t\"SingleExposure\":\n+\t\t{\n+\t\t    \"cadence\": [ 1 ],\n+\t\t    \"channel_map\": { \"short\": 1 }\n+\t\t}\n+\t    }\n+\t}\n     ]\n-}\n\\ No newline at end of file\n+}\ndiff --git a/src/ipa/rpi/vc4/data/imx477.json b/src/ipa/rpi/vc4/data/imx477.json\nindex 0e39d419..853bfa67 100644\n--- a/src/ipa/rpi/vc4/data/imx477.json\n+++ b/src/ipa/rpi/vc4/data/imx477.json\n@@ -136,95 +136,282 @@\n         {\n             \"rpi.agc\":\n             {\n-                \"metering_modes\":\n-                {\n-                    \"centre-weighted\":\n-                    {\n-                        \"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n-                    },\n-                    \"spot\":\n-                    {\n-                        \"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n-                    },\n-                    \"matrix\":\n+\t\t\"channels\":\n+\t\t[\n                     {\n-                        \"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n-                    }\n-                },\n-                \"exposure_modes\":\n-                {\n-                    \"normal\":\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.3,\n+\t\t\t\t\t1000, 0.3\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.3,\n+\t\t\t\t\t1000, 0.3\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"shadows\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.0,\n+\t\t\t\t    \"q_hi\": 0.5,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.17,\n+\t\t\t\t\t1000, 0.17\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t]\n+\t\t    },\n                     {\n-                        \"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n-                    },\n-                    \"short\":\n+\t\t\t\"base_ev\": 0.125,\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.3,\n+\t\t\t\t\t1000, 0.3\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.3,\n+\t\t\t\t\t1000, 0.3\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"shadows\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.0,\n+\t\t\t\t    \"q_hi\": 0.5,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.17,\n+\t\t\t\t\t1000, 0.17\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t]\n+\t\t    },\n                     {\n-                        \"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n-                    },\n-                    \"long\":\n-                    {\n-                        \"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n-                    }\n-                },\n-                \"constraint_modes\":\n-                {\n-                    \"normal\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.3,\n-                                1000, 0.3\n-                            ]\n-                        }\n-                    ],\n-                    \"highlight\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.3,\n-                                1000, 0.3\n-                            ]\n-                        },\n-                        {\n-                            \"bound\": \"UPPER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.8,\n-                                1000, 0.8\n-                            ]\n-                        }\n-                    ],\n-                    \"shadows\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.0,\n-                            \"q_hi\": 0.5,\n-                            \"y_target\":\n-                            [\n-                                0, 0.17,\n-                                1000, 0.17\n-                            ]\n-                        }\n-                    ]\n-                },\n-                \"y_target\":\n-                [\n-                    0, 0.16,\n-                    1000, 0.165,\n-                    10000, 0.17\n-                ]\n-            }\n+\t\t\t\"base_ev\": 1.5,\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.3,\n+\t\t\t\t\t1000, 0.3\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.3,\n+\t\t\t\t\t1000, 0.3\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"shadows\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.0,\n+\t\t\t\t    \"q_hi\": 0.5,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.17,\n+\t\t\t\t\t1000, 0.17\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t]\n+\t\t    }\n+\t\t]\n+\t    }\n         },\n         {\n             \"rpi.alsc\":\n@@ -468,6 +655,21 @@\n         },\n         {\n             \"rpi.sharpen\": { }\n-        }\n+        },\n+\t{\n+\t    \"rpi.hdr\":\n+\t    {\n+\t\t\"MultiExposure\":\n+\t\t{\n+\t\t    \"cadence\": [ 1, 2 ],\n+\t\t    \"channel_map\": { \"short\": 1, \"long\": 2 }\n+\t\t},\n+\t\t\"SingleExposure\":\n+\t\t{\n+\t\t    \"cadence\": [ 1 ],\n+\t\t    \"channel_map\": { \"short\": 1 }\n+\t\t}\n+\t    }\n+\t}\n     ]\n }\n\\ No newline at end of file\ndiff --git a/src/ipa/rpi/vc4/data/imx477_noir.json b/src/ipa/rpi/vc4/data/imx477_noir.json\nindex 52d7f072..143e20bd 100644\n--- a/src/ipa/rpi/vc4/data/imx477_noir.json\n+++ b/src/ipa/rpi/vc4/data/imx477_noir.json\n@@ -47,95 +47,282 @@\n         {\n             \"rpi.agc\":\n             {\n-                \"metering_modes\":\n-                {\n-                    \"centre-weighted\":\n-                    {\n-                        \"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n-                    },\n-                    \"spot\":\n-                    {\n-                        \"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n-                    },\n-                    \"matrix\":\n-                    {\n-                        \"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n-                    }\n-                },\n-                \"exposure_modes\":\n-                {\n-                    \"normal\":\n-                    {\n-                        \"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n-                    },\n-                    \"short\":\n-                    {\n-                        \"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n-                    },\n-                    \"long\":\n-                    {\n-                        \"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n-                    }\n-                },\n-                \"constraint_modes\":\n-                {\n-                    \"normal\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.3,\n-                                1000, 0.3\n-                            ]\n-                        }\n-                    ],\n-                    \"highlight\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.3,\n-                                1000, 0.3\n-                            ]\n-                        },\n-                        {\n-                            \"bound\": \"UPPER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.8,\n-                                1000, 0.8\n-                            ]\n-                        }\n-                    ],\n-                    \"shadows\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.0,\n-                            \"q_hi\": 0.5,\n-                            \"y_target\":\n-                            [\n-                                0, 0.17,\n-                                1000, 0.17\n-                            ]\n-                        }\n-                    ]\n-                },\n-                \"y_target\":\n-                [\n-                    0, 0.16,\n-                    1000, 0.165,\n-                    10000, 0.17\n-                ]\n-            }\n+\t\t\"channels\":\n+\t\t[\n+\t\t    {\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.3,\n+\t\t\t\t\t1000, 0.3\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.3,\n+\t\t\t\t\t1000, 0.3\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"shadows\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.0,\n+\t\t\t\t    \"q_hi\": 0.5,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.17,\n+\t\t\t\t\t1000, 0.17\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t]\n+\t\t    },\n+\t\t    {\n+\t\t\t\"base_ev\": 0.125,\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.3,\n+\t\t\t\t\t1000, 0.3\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.3,\n+\t\t\t\t\t1000, 0.3\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"shadows\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.0,\n+\t\t\t\t    \"q_hi\": 0.5,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.17,\n+\t\t\t\t\t1000, 0.17\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t]\n+\t\t    },\n+\t\t    {\n+\t\t\t\"base_ev\": 1.5,\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.3,\n+\t\t\t\t\t1000, 0.3\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.3,\n+\t\t\t\t\t1000, 0.3\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"shadows\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.0,\n+\t\t\t\t    \"q_hi\": 0.5,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.17,\n+\t\t\t\t\t1000, 0.17\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t]\n+\t\t    }\n+\t\t]\n+\t    }\n         },\n         {\n             \"rpi.alsc\":\n@@ -424,6 +611,21 @@\n         },\n         {\n             \"rpi.sharpen\": { }\n-        }\n+        },\n+\t{\n+\t    \"rpi.hdr\":\n+\t    {\n+\t\t\"MultiExposure\":\n+\t\t{\n+\t\t    \"cadence\": [ 1, 2 ],\n+\t\t    \"channel_map\": { \"short\": 1, \"long\": 2 }\n+\t\t},\n+\t\t\"SingleExposure\":\n+\t\t{\n+\t\t    \"cadence\": [ 1 ],\n+\t\t    \"channel_map\": { \"short\": 1 }\n+\t\t}\n+\t    }\n+\t}\n     ]\n-}\n\\ No newline at end of file\n+}\ndiff --git a/src/ipa/rpi/vc4/data/imx708.json b/src/ipa/rpi/vc4/data/imx708.json\nindex c40a5994..26aafc95 100644\n--- a/src/ipa/rpi/vc4/data/imx708.json\n+++ b/src/ipa/rpi/vc4/data/imx708.json\n@@ -139,86 +139,255 @@\n         {\n             \"rpi.agc\":\n             {\n-                \"metering_modes\":\n-                {\n-                    \"centre-weighted\":\n-                    {\n-                        \"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n-                    },\n-                    \"spot\":\n-                    {\n-                        \"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n-                    },\n-                    \"matrix\":\n-                    {\n-                        \"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n-                    }\n-                },\n-                \"exposure_modes\":\n-                {\n-                    \"normal\":\n-                    {\n-                        \"shutter\": [ 100, 15000, 30000, 60000, 120000 ],\n-                        \"gain\": [ 1.0, 1.0, 2.0, 4.0, 6.0 ]\n-                    },\n-                    \"short\":\n-                    {\n-                        \"shutter\": [ 100, 5000, 10000, 20000, 120000 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 6.0 ]\n-                    },\n-                    \"long\":\n-                    {\n-                        \"shutter\": [ 1000, 30000, 60000, 90000, 120000 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n-                    }\n-                },\n-                \"constraint_modes\":\n-                {\n-                    \"normal\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.2,\n-                                1000, 0.2\n-                            ]\n-                        }\n-                    ],\n-                    \"highlight\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.2,\n-                                1000, 0.2\n-                            ]\n-                        },\n-                        {\n-                            \"bound\": \"UPPER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.8,\n-                                1000, 0.8\n-                            ]\n-                        }\n-                    ]\n-                },\n-                \"y_target\":\n-                [\n-                    0, 0.16,\n-                    1000, 0.165,\n-                    10000, 0.17\n-                ],\n-                \"startup_frames\": 5,\n-                \"convergence_frames\": 6,\n-                \"speed\": 0.15\n-            }\n+\t\t\"channels\":\n+\t\t[\n+\t\t    {\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 15000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 1.0, 2.0, 4.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 1000, 30000, 60000, 90000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t],\n+\t\t\t\"startup_frames\": 5,\n+\t\t\t\"convergence_frames\": 6,\n+\t\t\t\"speed\": 0.15\n+\t\t    },\n+\t\t    {\n+\t\t\t\"base_ev\": 0.125,\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 15000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 1.0, 2.0, 4.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 1000, 30000, 60000, 90000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t],\n+\t\t\t\"startup_frames\": 5,\n+\t\t\t\"convergence_frames\": 6,\n+\t\t\t\"speed\": 0.15\n+\t\t    },\n+\t\t    {\n+\t\t\t\"base_ev\": 1.5,\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 15000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 1.0, 2.0, 4.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 1000, 30000, 60000, 90000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t],\n+\t\t\t\"startup_frames\": 5,\n+\t\t\t\"convergence_frames\": 6,\n+\t\t\t\"speed\": 0.15\n+\t\t    }\n+\t\t]\n+\t    }\n         },\n         {\n             \"rpi.alsc\":\n@@ -457,6 +626,21 @@\n                 \"skip_frames\": 5,\n                 \"map\": [ 0.0, 445, 15.0, 925 ]\n             }\n-        }\n+        },\n+\t{\n+\t    \"rpi.hdr\":\n+\t    {\n+\t\t\"MultiExposure\":\n+\t\t{\n+\t\t    \"cadence\": [ 1, 2 ],\n+\t\t    \"channel_map\": { \"short\": 1, \"long\": 2 }\n+\t\t},\n+\t\t\"SingleExposure\":\n+\t\t{\n+\t\t    \"cadence\": [ 1 ],\n+\t\t    \"channel_map\": { \"short\": 1 }\n+\t\t}\n+\t    }\n+\t}\n     ]\n }\ndiff --git a/src/ipa/rpi/vc4/data/imx708_noir.json b/src/ipa/rpi/vc4/data/imx708_noir.json\nindex 8d498153..8259ca4d 100644\n--- a/src/ipa/rpi/vc4/data/imx708_noir.json\n+++ b/src/ipa/rpi/vc4/data/imx708_noir.json\n@@ -139,86 +139,255 @@\n         {\n             \"rpi.agc\":\n             {\n-                \"metering_modes\":\n-                {\n-                    \"centre-weighted\":\n-                    {\n-                        \"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n-                    },\n-                    \"spot\":\n-                    {\n-                        \"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n-                    },\n-                    \"matrix\":\n-                    {\n-                        \"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n-                    }\n-                },\n-                \"exposure_modes\":\n-                {\n-                    \"normal\":\n-                    {\n-                        \"shutter\": [ 100, 15000, 30000, 60000, 120000 ],\n-                        \"gain\": [ 1.0, 1.0, 2.0, 4.0, 6.0 ]\n-                    },\n-                    \"short\":\n-                    {\n-                        \"shutter\": [ 100, 5000, 10000, 20000, 120000 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 6.0 ]\n-                    },\n-                    \"long\":\n-                    {\n-                        \"shutter\": [ 1000, 30000, 60000, 90000, 120000 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n-                    }\n-                },\n-                \"constraint_modes\":\n-                {\n-                    \"normal\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.2,\n-                                1000, 0.2\n-                            ]\n-                        }\n-                    ],\n-                    \"highlight\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.2,\n-                                1000, 0.2\n-                            ]\n-                        },\n-                        {\n-                            \"bound\": \"UPPER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.8,\n-                                1000, 0.8\n-                            ]\n-                        }\n-                    ]\n-                },\n-                \"y_target\":\n-                [\n-                    0, 0.16,\n-                    1000, 0.165,\n-                    10000, 0.17\n-                ],\n-                \"startup_frames\": 5,\n-                \"convergence_frames\": 6,\n-                \"speed\": 0.15\n-            }\n+\t\t\"channels\":\n+\t\t[\n+\t\t    {\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 15000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 1.0, 2.0, 4.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 1000, 30000, 60000, 90000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t],\n+\t\t\t\"startup_frames\": 5,\n+\t\t\t\"convergence_frames\": 6,\n+\t\t\t\"speed\": 0.15\n+\t\t    },\n+\t\t    {\n+\t\t\t\"base_ev\": 0.125,\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 15000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 1.0, 2.0, 4.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 1000, 30000, 60000, 90000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t],\n+\t\t\t\"startup_frames\": 5,\n+\t\t\t\"convergence_frames\": 6,\n+\t\t\t\"speed\": 0.15\n+\t\t    },\n+\t\t    {\n+\t\t\t\"base_ev\": 1.5,\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 15000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 1.0, 2.0, 4.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 1000, 30000, 60000, 90000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t],\n+\t\t\t\"startup_frames\": 5,\n+\t\t\t\"convergence_frames\": 6,\n+\t\t\t\"speed\": 0.15\n+\t\t    }\n+\t\t]\n+\t    }\n         },\n         {\n             \"rpi.alsc\":\n@@ -556,6 +725,21 @@\n                 \"skip_frames\": 5,\n                 \"map\": [ 0.0, 445, 15.0, 925 ]\n             }\n-        }\n+        },\n+\t{\n+\t    \"rpi.hdr\":\n+\t    {\n+\t\t\"MultiExposure\":\n+\t\t{\n+\t\t    \"cadence\": [ 1, 2 ],\n+\t\t    \"channel_map\": { \"short\": 1, \"long\": 2 }\n+\t\t},\n+\t\t\"SingleExposure\":\n+\t\t{\n+\t\t    \"cadence\": [ 1 ],\n+\t\t    \"channel_map\": { \"short\": 1 }\n+\t\t}\n+\t    }\n+\t}\n     ]\n }\ndiff --git a/src/ipa/rpi/vc4/data/imx708_wide.json b/src/ipa/rpi/vc4/data/imx708_wide.json\nindex 65543628..0f846ea2 100644\n--- a/src/ipa/rpi/vc4/data/imx708_wide.json\n+++ b/src/ipa/rpi/vc4/data/imx708_wide.json\n@@ -129,86 +129,255 @@\n         {\n             \"rpi.agc\":\n             {\n-                \"metering_modes\":\n-                {\n-                    \"centre-weighted\":\n-                    {\n-                        \"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n-                    },\n-                    \"spot\":\n-                    {\n-                        \"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n-                    },\n-                    \"matrix\":\n-                    {\n-                        \"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n-                    }\n-                },\n-                \"exposure_modes\":\n-                {\n-                    \"normal\":\n-                    {\n-                        \"shutter\": [ 100, 15000, 30000, 60000, 120000 ],\n-                        \"gain\": [ 1.0, 1.0, 2.0, 4.0, 6.0 ]\n-                    },\n-                    \"short\":\n-                    {\n-                        \"shutter\": [ 100, 5000, 10000, 20000, 120000 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 6.0 ]\n-                    },\n-                    \"long\":\n-                    {\n-                        \"shutter\": [ 1000, 30000, 60000, 90000, 120000 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n-                    }\n-                },\n-                \"constraint_modes\":\n-                {\n-                    \"normal\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.2,\n-                                1000, 0.2\n-                            ]\n-                        }\n-                    ],\n-                    \"highlight\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.2,\n-                                1000, 0.2\n-                            ]\n-                        },\n-                        {\n-                            \"bound\": \"UPPER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.8,\n-                                1000, 0.8\n-                            ]\n-                        }\n-                    ]\n-                },\n-                \"y_target\":\n-                [\n-                    0, 0.16,\n-                    1000, 0.165,\n-                    10000, 0.17\n-                ],\n-                \"startup_frames\": 5,\n-                \"convergence_frames\": 6,\n-                \"speed\": 0.15\n-            }\n+\t\t\"channels\":\n+\t\t[\n+\t\t    {\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 15000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 1.0, 2.0, 4.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 1000, 30000, 60000, 90000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t],\n+\t\t\t\"startup_frames\": 5,\n+\t\t\t\"convergence_frames\": 6,\n+\t\t\t\"speed\": 0.15\n+\t\t    },\n+\t\t    {\n+\t\t\t\"base_ev\": 0.125,\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 15000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 1.0, 2.0, 4.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 1000, 30000, 60000, 90000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t],\n+\t\t\t\"startup_frames\": 5,\n+\t\t\t\"convergence_frames\": 6,\n+\t\t\t\"speed\": 0.15\n+\t\t    },\n+\t\t    {\n+\t\t\t\"base_ev\": 1.5,\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 15000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 1.0, 2.0, 4.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 1000, 30000, 60000, 90000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t],\n+\t\t\t\"startup_frames\": 5,\n+\t\t\t\"convergence_frames\": 6,\n+\t\t\t\"speed\": 0.15\n+\t\t    }\n+\t\t]\n+\t    }\n         },\n         {\n             \"rpi.alsc\":\n@@ -468,6 +637,21 @@\n                 \"skip_frames\": 5,\n                 \"map\": [ 0.0, 420, 35.0, 920 ]\n             }\n-        }\n+        },\n+\t{\n+\t    \"rpi.hdr\":\n+\t    {\n+\t\t\"MultiExposure\":\n+\t\t{\n+\t\t    \"cadence\": [ 1, 2 ],\n+\t\t    \"channel_map\": { \"short\": 1, \"long\": 2 }\n+\t\t},\n+\t\t\"SingleExposure\":\n+\t\t{\n+\t\t    \"cadence\": [ 1 ],\n+\t\t    \"channel_map\": { \"short\": 1 }\n+\t\t}\n+\t    }\n+\t}\n     ]\n }\ndiff --git a/src/ipa/rpi/vc4/data/imx708_wide_noir.json b/src/ipa/rpi/vc4/data/imx708_wide_noir.json\nindex 49442c0f..f12ddbb6 100644\n--- a/src/ipa/rpi/vc4/data/imx708_wide_noir.json\n+++ b/src/ipa/rpi/vc4/data/imx708_wide_noir.json\n@@ -129,86 +129,255 @@\n         {\n             \"rpi.agc\":\n             {\n-                \"metering_modes\":\n-                {\n-                    \"centre-weighted\":\n-                    {\n-                        \"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n-                    },\n-                    \"spot\":\n-                    {\n-                        \"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n-                    },\n-                    \"matrix\":\n-                    {\n-                        \"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n-                    }\n-                },\n-                \"exposure_modes\":\n-                {\n-                    \"normal\":\n-                    {\n-                        \"shutter\": [ 100, 15000, 30000, 60000, 120000 ],\n-                        \"gain\": [ 1.0, 1.0, 2.0, 4.0, 6.0 ]\n-                    },\n-                    \"short\":\n-                    {\n-                        \"shutter\": [ 100, 5000, 10000, 20000, 120000 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 6.0 ]\n-                    },\n-                    \"long\":\n-                    {\n-                        \"shutter\": [ 1000, 30000, 60000, 90000, 120000 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n-                    }\n-                },\n-                \"constraint_modes\":\n-                {\n-                    \"normal\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.2,\n-                                1000, 0.2\n-                            ]\n-                        }\n-                    ],\n-                    \"highlight\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.2,\n-                                1000, 0.2\n-                            ]\n-                        },\n-                        {\n-                            \"bound\": \"UPPER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.8,\n-                                1000, 0.8\n-                            ]\n-                        }\n-                    ]\n-                },\n-                \"y_target\":\n-                [\n-                    0, 0.16,\n-                    1000, 0.165,\n-                    10000, 0.17\n-                ],\n-                \"startup_frames\": 5,\n-                \"convergence_frames\": 6,\n-                \"speed\": 0.15\n-            }\n+\t\t\"channels\":\n+\t\t[\n+\t\t    {\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 15000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 1.0, 2.0, 4.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 1000, 30000, 60000, 90000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t],\n+\t\t\t\"startup_frames\": 5,\n+\t\t\t\"convergence_frames\": 6,\n+\t\t\t\"speed\": 0.15\n+\t\t    },\n+\t\t    {\n+\t\t\t\"base_ev\": 0.125,\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 15000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 1.0, 2.0, 4.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 1000, 30000, 60000, 90000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t],\n+\t\t\t\"startup_frames\": 5,\n+\t\t\t\"convergence_frames\": 6,\n+\t\t\t\"speed\": 0.15\n+\t\t    },\n+\t\t    {\n+\t\t\t\"base_ev\": 1.5,\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 15000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 1.0, 2.0, 4.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 6.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 1000, 30000, 60000, 90000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.2,\n+\t\t\t\t\t1000, 0.2\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t],\n+\t\t\t\"startup_frames\": 5,\n+\t\t\t\"convergence_frames\": 6,\n+\t\t\t\"speed\": 0.15\n+\t\t    }\n+\t\t]\n+\t    }\n         },\n         {\n             \"rpi.alsc\":\n@@ -459,6 +628,21 @@\n                 \"skip_frames\": 5,\n                 \"map\": [ 0.0, 420, 35.0, 920 ]\n             }\n-        }\n+        },\n+\t{\n+\t    \"rpi.hdr\":\n+\t    {\n+\t\t\"MultiExposure\":\n+\t\t{\n+\t\t    \"cadence\": [ 1, 2 ],\n+\t\t    \"channel_map\": { \"short\": 1, \"long\": 2 }\n+\t\t},\n+\t\t\"SingleExposure\":\n+\t\t{\n+\t\t    \"cadence\": [ 1 ],\n+\t\t    \"channel_map\": { \"short\": 1 }\n+\t\t}\n+\t    }\n+\t}\n     ]\n }\ndiff --git a/src/ipa/rpi/vc4/data/ov5647.json b/src/ipa/rpi/vc4/data/ov5647.json\nindex a1b42a18..4def9ffc 100644\n--- a/src/ipa/rpi/vc4/data/ov5647.json\n+++ b/src/ipa/rpi/vc4/data/ov5647.json\n@@ -131,96 +131,285 @@\n         {\n             \"rpi.agc\":\n             {\n-                \"metering_modes\":\n-                {\n-                    \"centre-weighted\":\n-                    {\n-                        \"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n-                    },\n-                    \"spot\":\n-                    {\n-                        \"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n-                    },\n-                    \"matrix\":\n-                    {\n-                        \"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n-                    }\n-                },\n-                \"exposure_modes\":\n-                {\n-                    \"normal\":\n-                    {\n-                        \"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n-                    },\n-                    \"short\":\n-                    {\n-                        \"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n-                    },\n-                    \"long\":\n-                    {\n-                        \"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n-                        \"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n-                    }\n-                },\n-                \"constraint_modes\":\n-                {\n-                    \"normal\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.5,\n-                                1000, 0.5\n-                            ]\n-                        }\n-                    ],\n-                    \"highlight\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.5,\n-                                1000, 0.5\n-                            ]\n-                        },\n-                        {\n-                            \"bound\": \"UPPER\",\n-                            \"q_lo\": 0.98,\n-                            \"q_hi\": 1.0,\n-                            \"y_target\":\n-                            [\n-                                0, 0.8,\n-                                1000, 0.8\n-                            ]\n-                        }\n-                    ],\n-                    \"shadows\": [\n-                        {\n-                            \"bound\": \"LOWER\",\n-                            \"q_lo\": 0.0,\n-                            \"q_hi\": 0.5,\n-                            \"y_target\":\n-                            [\n-                                0, 0.17,\n-                                1000, 0.17\n-                            ]\n-                        }\n-                    ]\n-                },\n-                \"y_target\":\n-                [\n-                    0, 0.16,\n-                    1000, 0.165,\n-                    10000, 0.17\n-                ],\n-                \"base_ev\": 1.25\n-            }\n+\t\t\"channels\":\n+\t\t[\n+\t\t    {\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.5,\n+\t\t\t\t\t1000, 0.5\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.5,\n+\t\t\t\t\t1000, 0.5\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"shadows\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.0,\n+\t\t\t\t    \"q_hi\": 0.5,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.17,\n+\t\t\t\t\t1000, 0.17\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t],\n+\t\t\t\"base_ev\": 1.25\n+\t\t    },\n+\t\t    {\n+\t\t\t\"base_ev\": 0.125,\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.5,\n+\t\t\t\t\t1000, 0.5\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.5,\n+\t\t\t\t\t1000, 0.5\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"shadows\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.0,\n+\t\t\t\t    \"q_hi\": 0.5,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.17,\n+\t\t\t\t\t1000, 0.17\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t],\n+\t\t\t\"base_ev\": 1.25\n+\t\t    },\n+\t\t    {\n+\t\t\t\"base_ev\": 1.5,\n+\t\t\t\"metering_modes\":\n+\t\t\t{\n+\t\t\t    \"centre-weighted\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 3, 3, 3, 2, 2, 2, 2, 1, 1, 1, 1, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"spot\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 2, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ]\n+\t\t\t    },\n+\t\t\t    \"matrix\":\n+\t\t\t    {\n+\t\t\t\t\"weights\": [ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"exposure_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 66666 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"short\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 5000, 10000, 20000, 33333 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 8.0 ]\n+\t\t\t    },\n+\t\t\t    \"long\":\n+\t\t\t    {\n+\t\t\t\t\"shutter\": [ 100, 10000, 30000, 60000, 120000 ],\n+\t\t\t\t\"gain\": [ 1.0, 2.0, 4.0, 6.0, 12.0 ]\n+\t\t\t    }\n+\t\t\t},\n+\t\t\t\"constraint_modes\":\n+\t\t\t{\n+\t\t\t    \"normal\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.5,\n+\t\t\t\t\t1000, 0.5\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"highlight\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.5,\n+\t\t\t\t\t1000, 0.5\n+\t\t\t\t    ]\n+\t\t\t\t},\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"UPPER\",\n+\t\t\t\t    \"q_lo\": 0.98,\n+\t\t\t\t    \"q_hi\": 1.0,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.8,\n+\t\t\t\t\t1000, 0.8\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ],\n+\t\t\t    \"shadows\": [\n+\t\t\t\t{\n+\t\t\t\t    \"bound\": \"LOWER\",\n+\t\t\t\t    \"q_lo\": 0.0,\n+\t\t\t\t    \"q_hi\": 0.5,\n+\t\t\t\t    \"y_target\":\n+\t\t\t\t    [\n+\t\t\t\t\t0, 0.17,\n+\t\t\t\t\t1000, 0.17\n+\t\t\t\t    ]\n+\t\t\t\t}\n+\t\t\t    ]\n+\t\t\t},\n+\t\t\t\"y_target\":\n+\t\t\t[\n+\t\t\t    0, 0.16,\n+\t\t\t    1000, 0.165,\n+\t\t\t    10000, 0.17\n+\t\t\t],\n+\t\t\t\"base_ev\": 1.25\n+\t\t    }\n+\t\t]\n+\t    }\n         },\n         {\n             \"rpi.alsc\":\n@@ -464,6 +653,21 @@\n         },\n         {\n             \"rpi.sharpen\": { }\n-        }\n+        },\n+\t{\n+\t    \"rpi.hdr\":\n+\t    {\n+\t\t\"MultiExposure\":\n+\t\t{\n+\t\t    \"cadence\": [ 1, 2 ],\n+\t\t    \"channel_map\": { \"short\": 1, \"long\": 2 }\n+\t\t},\n+\t\t\"SingleExposure\":\n+\t\t{\n+\t\t    \"cadence\": [ 1 ],\n+\t\t    \"channel_map\": { \"short\": 1 }\n+\t\t}\n+\t    }\n+\t}\n     ]\n-}\n\\ No newline at end of file\n+}\n","prefixes":["libcamera-devel","v4","2/2"]}