[PATCH v2 16/25] libtuning: Handle cases, where no lsc tuning images are present

Stefan Klug stefan.klug at ideasonboard.com
Fri Jun 28 12:47:09 CEST 2024


Make it clear that no lsc calibration was done by returning None instead
of a incomplete configuration.

Signed-off-by: Stefan Klug <stefan.klug at ideasonboard.com>
---
 utils/tuning/libtuning/modules/lsc/rkisp1.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/utils/tuning/libtuning/modules/lsc/rkisp1.py b/utils/tuning/libtuning/modules/lsc/rkisp1.py
index 074f3b272dbf..5874f10c936f 100644
--- a/utils/tuning/libtuning/modules/lsc/rkisp1.py
+++ b/utils/tuning/libtuning/modules/lsc/rkisp1.py
@@ -107,6 +107,9 @@ class LSCRkISP1(LSC):
 
         output['sets'] = self._do_all_lsc(images)
 
+        if len(output['sets']) == 0:
+            return None
+
         # \todo Validate images from greyscale camera and force grescale mode
         # \todo Debug functionality
 
-- 
2.43.0



More information about the libcamera-devel mailing list