[v2,14/25] libtuning: Remove need for Cam object from ccm
diff mbox series

Message ID 20240628104828.2928109-15-stefan.klug@ideasonboard.com
State Superseded
Headers show
Series
  • Add ccm calibration to libtuning
Related show

Commit Message

Stefan Klug June 28, 2024, 10:47 a.m. UTC
Remove the need for the Cam object, as we don't want to port
it from raspberry pi.

Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
---
 utils/tuning/libtuning/ctt_ccm.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Laurent Pinchart June 28, 2024, 11:27 p.m. UTC | #1
Hi Stefan,

Thank you for the patch.

On Fri, Jun 28, 2024 at 12:47:07PM +0200, Stefan Klug wrote:
> Remove the need for the Cam object, as we don't want to port
> it from raspberry pi.
> 
> Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>

> ---
>  utils/tuning/libtuning/ctt_ccm.py | 3 +--
>  1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/utils/tuning/libtuning/ctt_ccm.py b/utils/tuning/libtuning/ctt_ccm.py
> index 086ef8a2580b..2e87a6679f20 100644
> --- a/utils/tuning/libtuning/ctt_ccm.py
> +++ b/utils/tuning/libtuning/ctt_ccm.py
> @@ -62,9 +62,8 @@ FInds colour correction matrices for list of images
>  """
>  
>  
> -def ccm(Cam, cal_cr_list, cal_cb_list):
> +def ccm(imgs, cal_cr_list, cal_cb_list):
>      global matrix_selection_types, typenum
> -    imgs = Cam.imgs
>      """
>      standard macbeth chart colour values
>      """

Patch
diff mbox series

diff --git a/utils/tuning/libtuning/ctt_ccm.py b/utils/tuning/libtuning/ctt_ccm.py
index 086ef8a2580b..2e87a6679f20 100644
--- a/utils/tuning/libtuning/ctt_ccm.py
+++ b/utils/tuning/libtuning/ctt_ccm.py
@@ -62,9 +62,8 @@  FInds colour correction matrices for list of images
 """
 
 
-def ccm(Cam, cal_cr_list, cal_cb_list):
+def ccm(imgs, cal_cr_list, cal_cb_list):
     global matrix_selection_types, typenum
-    imgs = Cam.imgs
     """
     standard macbeth chart colour values
     """