diff options
author | Stefan Klug <stefan.klug@ideasonboard.com> | 2024-06-11 14:51:27 +0200 |
---|---|---|
committer | Stefan Klug <stefan.klug@ideasonboard.com> | 2024-07-05 22:38:19 +0200 |
commit | 54a8405726e5d5aaddf0a44ee037fe544f31d836 (patch) | |
tree | 5a83ce302bdc360b00b683aa74e33e689637e874 | |
parent | 721b97692834fe5c2a551e38bd3c7c9772a962ea (diff) |
libtuning: Handle cases, where no lsc tuning images are present
Make it clear that no lsc calibration was done by returning None instead
of a incomplete configuration.
Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
-rw-r--r-- | utils/tuning/libtuning/modules/lsc/rkisp1.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/utils/tuning/libtuning/modules/lsc/rkisp1.py b/utils/tuning/libtuning/modules/lsc/rkisp1.py index 57004104..512233ae 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 |