From patchwork Fri Nov 25 15:48:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Robert Mader X-Patchwork-Id: 17899 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 A4A56BDE6B for ; Fri, 25 Nov 2022 15:53:42 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id F1D5163326; Fri, 25 Nov 2022 16:53:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1669391622; bh=b9sSCSRCUzCV/Ec8E7iT2aWT4ZqTASG+3aEQT3CAAxI=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=FJztUREfD7Ivl1mqvRK/XzqCZmVrIX7T3odnPYO+nlQITdaU/DDKHwKBXi94RipLw q+OW9+2l7XMVGregA1VxEVIU28L4GHeRlsXIlIRjOLMPKV7bY/ZTe9I3iz8dQZjc07 SKLLCRlH8KXMZ+psiyYsnuUAT9+7nl0JYIiO3IORTICw6CRDne5iSxQDHS3Rh3q111 A0jrs23yu3jBDWKAElhgw/A2oOhm7ix6YFxORRVo8AM+qp8zeT+Z4LQA7X6aL04Lzk ZbDVv29GE71b4HJzOIXD8YonbftagGLswIjYeTzWxjKIZgxSUYm8y1UXJyLoxtjInx nMw3S7lSzS+yA== Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6EC80632EA for ; Fri, 25 Nov 2022 16:49:51 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (2048-bit key; unprotected) header.d=collabora.com header.i=@collabora.com header.b="JHpQLW0X"; dkim-atps=neutral Received: from thinkpad-t460p.lan (unknown [185.176.222.145]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: rmader) by madras.collabora.co.uk (Postfix) with ESMTPSA id C6B7F6602B5C; Fri, 25 Nov 2022 15:49:50 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1669391391; bh=b9sSCSRCUzCV/Ec8E7iT2aWT4ZqTASG+3aEQT3CAAxI=; h=From:To:Cc:Subject:Date:From; b=JHpQLW0XbkqD/SBk/6M3S7eHjdDuqbqJYcM8Va+jXhC6/IEnQUmG+JL/InKbstyBt +bqq5UD6Ge82jtzUwxrDgn1g9NYlB5Fkhgq3jbSZGVj37HwoHi1QHnrFf4voOtoeOy QhOlhXnW0WedOwz3sYPEmLL9GQ4maQ25oHqshVm6hnoTp85f668OBbFq8BpKuvKSaa 4mtsl1PwBPpvktu/AtS2tRtbC151foe+FrBMf1R8DCD+xAjm0SfzAYnpHpZdcDpxOc YkB4RnBwUDBQ5h1WmC/TD7J1EqqieRowon7L+udKNLNaMFNc2tg0y20Y0u257E30ZT 8eIhLsyd/GVkQ== To: libcamera-devel@lists.libcamera.org Date: Fri, 25 Nov 2022 16:48:43 +0100 Message-Id: <20221125154843.23486-1-robert.mader@collabora.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Mailman-Approved-At: Fri, 25 Nov 2022 16:53:40 +0100 Subject: [libcamera-devel] [PATCH] ipa: rkisp1: Add additional default values to controls 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: , X-Patchwork-Original-From: Robert Mader via libcamera-devel From: Robert Mader Reply-To: Robert Mader Cc: Robert Mader Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" To make things easier for consumers. Related: https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/1450 Signed-off-by: Robert Mader Reviewed-by: Kieran Bingham Reviewed-by: Jacopo Mondi --- src/ipa/rkisp1/rkisp1.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ipa/rkisp1/rkisp1.cpp b/src/ipa/rkisp1/rkisp1.cpp index 52dffc09..6544c925 100644 --- a/src/ipa/rkisp1/rkisp1.cpp +++ b/src/ipa/rkisp1/rkisp1.cpp @@ -101,9 +101,9 @@ const ControlInfoMap::Map rkisp1Controls{ { &controls::AeEnable, ControlInfo(false, true) }, { &controls::AwbEnable, ControlInfo(false, true) }, { &controls::ColourGains, ControlInfo(0.0f, 3.996f, 1.0f) }, - { &controls::Brightness, ControlInfo(-1.0f, 0.993f) }, - { &controls::Contrast, ControlInfo(0.0f, 1.993f) }, - { &controls::Saturation, ControlInfo(0.0f, 1.993f) }, + { &controls::Brightness, ControlInfo(-1.0f, 0.993f, 0.0f) }, + { &controls::Contrast, ControlInfo(0.0f, 1.993f, 1.0f) }, + { &controls::Saturation, ControlInfo(0.0f, 1.993f, 1.0f) }, { &controls::Sharpness, ControlInfo(0.0f, 10.0f, 1.0f) }, { &controls::draft::NoiseReductionMode, ControlInfo(controls::draft::NoiseReductionModeValues) }, };