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

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

Commit Message

Hanlin Chen Oct. 28, 2021, 10:03 a.m. 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.com>
---
 aiq/aiq_input_parameters.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Umang Jain Oct. 28, 2021, 1:29 p.m. UTC | #1
Hi Han-Lin,

Thank you for the patch.

On 10/28/21 3:33 PM, Han-Lin Chen wrote:
> 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.com>


Reviewed-by: Umang Jain <umang.jain@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;
>

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;