From patchwork Fri Oct 29 12:00:01 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanlin Chen X-Patchwork-Id: 14422 Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 51A26BDB1C for ; Fri, 29 Oct 2021 12:00:19 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 05624600C0; Fri, 29 Oct 2021 14:00:19 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="KDtF1/X2"; dkim-atps=neutral Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E3F72600BD for ; Fri, 29 Oct 2021 14:00:17 +0200 (CEST) Received: by mail-pj1-x1029.google.com with SMTP id oa12-20020a17090b1bcc00b0019f715462a8so7231503pjb.3 for ; Fri, 29 Oct 2021 05:00:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=++tKZTGfJU1x4+QwSMn15mcVaU3lDPfIxRASilIzLtI=; b=KDtF1/X2JvnOSCty9NkwOIjEyJS/eb/x7Z/VVinbUiiRB5MRvPnUFZ0/hivwgU6j3Z Ut6AVb3j4QV1gA+VTNGp18rOKqPoG0+r5imh2XVJptwVaLifxf1uzMnn+Rps9r8WPyxR HxjFdwRpoigodv1YD21w4wUG1S1Lto25SU+ps= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=++tKZTGfJU1x4+QwSMn15mcVaU3lDPfIxRASilIzLtI=; b=N4qXq7gM7fiUkrkiFcc3PyyPsrPElIl9rmyXTMqscjwNhqJD9LIieirQfQWFO1Npqi v7Yw2ebouedMyC1XjyBMDrxXB/qXCwquoZihrBPHCEr//Lx+u4m0hHbZBT3cIjWyDuYF FEixbTYd2akJ5jF8tP+p9OIwdnLweb/pDFdYMqPBdnVG6EmN5ZvmBYIvJ52Z/n30bPYA Nrt8T904SxzxCvp8FkpdG8HUf7C0Vs0D0PSXWArGx18mupkSP/3GAnl0cAAJiTTVyGgG LEPG2P7lcrYd3euv/PO8zy9WsXcgpH6QxH/ouMurLTAdETj+O5DKLA7VtEtopTxirXYa DOyQ== X-Gm-Message-State: AOAM531F1rUBmrpNWNIGe45j1yTItoxAalYE8SGtJPA7shYQJ/ORcQNc 0TDAcY/Gyz5NU/DPmJZXZJfG4FqA3UZf3YWq X-Google-Smtp-Source: ABdhPJxJ1EEI91L7pvSWugCJTA+4r4hjQ5ZsnUShkvpYN0Vy04f4rUj71mbp/yllf9ujkKaEtft8AA== X-Received: by 2002:a17:902:c214:b0:13f:1b2a:8011 with SMTP id 20-20020a170902c21400b0013f1b2a8011mr9258324pll.3.1635508815896; Fri, 29 Oct 2021 05:00:15 -0700 (PDT) Received: from localhost ([2401:fa00:1:10:35fe:d53b:684:b538]) by smtp.gmail.com with UTF8SMTPSA id m7sm5570191pgn.32.2021.10.29.05.00.14 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 29 Oct 2021 05:00:15 -0700 (PDT) From: Han-Lin Chen To: libcamera-devel@lists.libcamera.org Date: Fri, 29 Oct 2021 20:00:01 +0800 Message-Id: <20211029120001.2469018-6-hanlinchen@chromium.org> X-Mailer: git-send-email 2.33.1.1089.g2158813163f-goog In-Reply-To: <20211029120001.2469018-1-hanlinchen@chromium.org> References: <20211029120001.2469018-1-hanlinchen@chromium.org> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v2 6/6] ipu3: Use gbce and tone mapping from the tuning files X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Change the flags to gbce algorithm to use the global brightness and tone mapping from the tunint files. Signed-off-by: Han-Lin Chen Reviewed-by: Umang Jain Reviewed-by: Kieran Bingham --- 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;