[libcamera-devel,v2,6/6] ipu3: Use gbce and tone mapping from the tuning files
diff mbox series

Message ID 20211029120001.2469018-6-hanlinchen@chromium.org
State Superseded
Headers show
Series
  • [libcamera-devel,v2,1/6] ipu3: Use ia_aiq_frame_use_preview as default mode for AIQ
Related show

Commit Message

Hanlin Chen Oct. 29, 2021, noon UTC
Change the flags to gbce algorithm to use the global brightness and tone
mapping from the tunint files.

Signed-off-by: Han-Lin Chen <hanlinchen@chromium.org>
Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>
---
 aiq/aiq_input_parameters.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Kieran Bingham Nov. 3, 2021, 10:28 p.m. UTC | #1
Quoting Han-Lin Chen (2021-10-29 13:00:01)
> Change the flags to gbce algorithm to use the global brightness and tone
> mapping from the tunint files.

s/tunint/tuning/

> Signed-off-by: Han-Lin Chen <hanlinchen@chromium.org>
> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com>

Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>

> ---
>  aiq/aiq_input_parameters.cpp | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/aiq/aiq_input_parameters.cpp b/aiq/aiq_input_parameters.cpp
> index 5dd2f6c..7a6a1fa 100644
> --- a/aiq/aiq_input_parameters.cpp
> +++ b/aiq/aiq_input_parameters.cpp
> @@ -170,8 +170,8 @@ void AiqInputParameters::setAeAwbAfDefaults()
>         };
>  
>         /* GBCE Params */
> -       gbceParams.gbce_level = ia_aiq_gbce_level_bypass;
> -       gbceParams.tone_map_level = ia_aiq_tone_map_level_default;
> +       gbceParams.gbce_level = ia_aiq_gbce_level_use_tuning;
> +       gbceParams.tone_map_level = ia_aiq_tone_map_level_use_tuning;
>         gbceParams.frame_use = ia_aiq_frame_use_preview;
>         gbceParams.ev_shift = 0;
>  
> -- 
> 2.33.1.1089.g2158813163f-goog
>

Patch
diff mbox series

diff --git a/aiq/aiq_input_parameters.cpp b/aiq/aiq_input_parameters.cpp
index 5dd2f6c..7a6a1fa 100644
--- a/aiq/aiq_input_parameters.cpp
+++ b/aiq/aiq_input_parameters.cpp
@@ -170,8 +170,8 @@  void AiqInputParameters::setAeAwbAfDefaults()
 	};
 
 	/* GBCE Params */
-	gbceParams.gbce_level = ia_aiq_gbce_level_bypass;
-	gbceParams.tone_map_level = ia_aiq_tone_map_level_default;
+	gbceParams.gbce_level = ia_aiq_gbce_level_use_tuning;
+	gbceParams.tone_map_level = ia_aiq_tone_map_level_use_tuning;
 	gbceParams.frame_use = ia_aiq_frame_use_preview;
 	gbceParams.ev_shift = 0;