[libcamera-devel] [PATCH 3/6] utils: libtuning: lsc: raspberry: Add per-image debug plotting

Paul Elder paul.elder at ideasonboard.com
Thu Nov 24 12:38:46 CET 2022


Add debug plotting the LSC table for each image to the Raspberry Pi ALSC
module.

Signed-off-by: Paul Elder <paul.elder at ideasonboard.com>
---
 utils/tuning/libtuning/modules/lsc/raspberrypi.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/utils/tuning/libtuning/modules/lsc/raspberrypi.py b/utils/tuning/libtuning/modules/lsc/raspberrypi.py
index 58f5000d..a0298348 100644
--- a/utils/tuning/libtuning/modules/lsc/raspberrypi.py
+++ b/utils/tuning/libtuning/modules/lsc/raspberrypi.py
@@ -74,7 +74,8 @@ class ALSCRaspberryPi(LSC):
         cr, _ = self._lsc_single_channel(image.channels[lt.Color.R], image, g)
         cb, _ = self._lsc_single_channel(image.channels[lt.Color.B], image, g)
 
-        # \todo implement debug
+        if self.debug:
+            self._plot_single_lsc(image, cr, cb, cg)
 
         return image.color, cr.flatten(), cb.flatten(), cg.flatten()
 
-- 
2.35.1



More information about the libcamera-devel mailing list