From patchwork Thu Oct 28 10:03:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hanlin Chen X-Patchwork-Id: 14395 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 C8239BF415 for ; Thu, 28 Oct 2021 10:04:05 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8060D600C1; Thu, 28 Oct 2021 12:04:05 +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="ZD8CcsUd"; dkim-atps=neutral Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id E8254600B5 for ; Thu, 28 Oct 2021 12:04:03 +0200 (CEST) Received: by mail-pf1-x436.google.com with SMTP id l203so5495385pfd.2 for ; Thu, 28 Oct 2021 03:04:03 -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=4rYXLtjA/5VTZ7mpq2/BlxHl2T8+W/evILXiYfKpWhQ=; b=ZD8CcsUdJ88aIXnb1p5QhCUTiSDImCXWm+PwgCmpsoFC87on5Repk3UJZX3neLNZyi SsWZ/LlHK7Bi/1iPjgWrwNmhzssHz+S34wf6YN0/EHjAy7ddTmyOQWmdqxl2hDriEjzm nhT2K5or7rYEgh+242kIchS8IUSYLNOixijzI= 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=4rYXLtjA/5VTZ7mpq2/BlxHl2T8+W/evILXiYfKpWhQ=; b=nsF2yqu9uxJBl62/KFgvHsZUc+Czi2tkUguEfVur3MspNdZG5hEpUl3LQgxDF5SV86 EKFiCbWXkgpkQ36fBtUw+uaXuLJF5p0350a/PnCb77oCjww7YSwKezS8WQcEdhUZcMyK xoT/CPxliMB+3J72bx6bmMThKN3xCPf+yRbhVyI4hmZR++ekTcbtc4pShsq62YdTsmo3 z51Gy1CieYYimtLKj3fU6tjziArYDxJMqWz4WNsTyWTLvvKwIMogr0lbaUfsdMBIRWbo 8kBwW+Bzhh3Q2SBytQ+ofGuy7tC0SZTBDDVb9bFd1Nl3ZQnjPsNgESILkxAHmK1vniM1 PboA== X-Gm-Message-State: AOAM533594v4NduSxFiBgiuNOGHgaKgZYLxhA33Q+z722TkO2CMQuVCc /WKXTUokOUFRAv5KVOeCswva1AkbxRrcLBFM X-Google-Smtp-Source: ABdhPJzCZnRnp2IWCzOdEt+qj8dLqQs1nIS1g6HFliwM3GH+MJLo17OGiS7MLfNGeBjuS9CgG9OjEA== X-Received: by 2002:aa7:9047:0:b0:44b:e142:8b0d with SMTP id n7-20020aa79047000000b0044be1428b0dmr3252201pfo.45.1635415442150; Thu, 28 Oct 2021 03:04:02 -0700 (PDT) Received: from localhost ([2401:fa00:1:10:1bc:52e7:6df5:c7cf]) by smtp.gmail.com with UTF8SMTPSA id 141sm2349080pge.23.2021.10.28.03.04.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Oct 2021 03:04:01 -0700 (PDT) From: Han-Lin Chen To: libcamera-devel@lists.libcamera.org Date: Thu, 28 Oct 2021 18:03:49 +0800 Message-Id: <20211028100349.1098545-6-hanlinchen@chromium.org> X-Mailer: git-send-email 2.33.1.1089.g2158813163f-goog In-Reply-To: <20211028100349.1098545-1-hanlinchen@chromium.org> References: <20211028100349.1098545-1-hanlinchen@chromium.org> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 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: , Cc: Han-Lin Chen 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 --- 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;