From patchwork Thu Nov 11 10:49:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanlin Chen X-Patchwork-Id: 14551 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 C5937BDB1C for ; Thu, 11 Nov 2021 10:49:43 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 7A59160368; Thu, 11 Nov 2021 11:49:43 +0100 (CET) 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="IgjLw+dX"; dkim-atps=neutral Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 47F996032C for ; Thu, 11 Nov 2021 11:49:42 +0100 (CET) Received: by mail-pg1-x52a.google.com with SMTP id 200so4855132pga.1 for ; Thu, 11 Nov 2021 02:49:42 -0800 (PST) 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=9VdNDInwabkMtIQOIhMATye+WUU0NKXVhLjxlazEuZ8=; b=IgjLw+dXSlaJX3ylPvIPePzHJPwH88iq8paebqox57slofmHezqS7iApzdwmLoLxCP uht67uIdzjrB6yP8oDrt6GFAonh/n087QdX0BHHmBpHe1HPNBSl+7On+6VcqjnJelfy3 z+FL2V3tNIxP/VidX3C0lHFU4/0pHdJsASF+Q= 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=9VdNDInwabkMtIQOIhMATye+WUU0NKXVhLjxlazEuZ8=; b=wyg2jq5SRvZCyEKg6UHquCF5Ja4EpUFFZjVjILwMqa1LsfLt8ix0w4Ib/MFHNM/L71 vCZy62pI2Ap9nFYO3py8GrHeH7/+aDXuBeHfeGgQXrUz6bag/VbXCsu6rF/Hj2W3lhTS 3Z8sgM6nGSJUlksCCkpg7VFi/VkG4WwNLc5sohXo21OOOl6+xNfl77Wgh4Rm7kMpy2Yk kjFJBkKObBO6pYTm0Hm4EeR1pTMqZLJe65ZeOsQPEVKfTDMlr2hlHneb7zrxyGMCV0IU +BBFgAVx9/Zw3NNXCHLDcE0SjFajYdRI+N74HOgcuY9NIsOq0BDW1CSdhxDUoxty2/WJ t7jQ== X-Gm-Message-State: AOAM531yTd1g21pY3G2B7CFCPKVOOE8GouiUZWlJ7tao/B024+iMsrTI doGPiqrVd8KLojIxMnTq185P4gYPtBfySw== X-Google-Smtp-Source: ABdhPJx6mexjuzKEF0/2Sglgohxf7CjkoNwHO3gG3c7/TUmjt45qdWtu+P87ZMz+25UxtD3h9betDQ== X-Received: by 2002:a63:1d03:: with SMTP id d3mr4023595pgd.149.1636627780342; Thu, 11 Nov 2021 02:49:40 -0800 (PST) Received: from localhost ([2401:fa00:1:10:3925:da9c:3049:be7a]) by smtp.gmail.com with UTF8SMTPSA id b21sm2665836pff.179.2021.11.11.02.49.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Nov 2021 02:49:40 -0800 (PST) From: Han-Lin Chen To: libcamera-devel@lists.libcamera.org Date: Thu, 11 Nov 2021 18:49:08 +0800 Message-Id: <20211111104908.295992-7-hanlinchen@chromium.org> X-Mailer: git-send-email 2.34.0.rc1.387.gb447b232ab-goog In-Reply-To: <20211111104908.295992-1-hanlinchen@chromium.org> References: <20211111104908.295992-1-hanlinchen@chromium.org> MIME-Version: 1.0 Subject: [libcamera-devel] [IPU3-IPA PATCH v3 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 tuning 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;