[PATCH v6 5/9] libtuning: Remove the Cam object from ctt_awb.awb()

Stefan Klug stefan.klug at ideasonboard.com
Thu Dec 19 18:57:22 CET 2024


Replace the Cam object with a list parameter to be able to call the
ctt_awb.awb() function from libtuning code.

Signed-off-by: Stefan Klug <stefan.klug at ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder at ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
---
 utils/tuning/libtuning/ctt_awb.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/utils/tuning/libtuning/ctt_awb.py b/utils/tuning/libtuning/ctt_awb.py
index 880094e9efe2..b996daba0213 100644
--- a/utils/tuning/libtuning/ctt_awb.py
+++ b/utils/tuning/libtuning/ctt_awb.py
@@ -18,8 +18,7 @@ logger = logging.getLogger(__name__)
 """
 obtain piecewise linear approximation for colour curve
 """
-def awb(Cam, cal_cr_list, cal_cb_list, plot):
-    imgs = Cam.imgs
+def awb(imgs, cal_cr_list, cal_cb_list, plot):
     """
     condense alsc calibration tables into one dictionary
     """
-- 
2.43.0



More information about the libcamera-devel mailing list