From e5e0ce6573ac91a76954eeaf89cd309a48fd333d Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Wed, 4 Aug 2021 14:29:04 +0100 Subject: ipa: ipu3: Introduce a modular contrast algorithm Implement a new modular framework for algorithms with a common context structure that is passed to each algorithm through a common API. The initial algorithm is chosen to configure the gamma contrast curve which replicates the implementation from AWB for simplicity. Signed-off-by: Kieran Bingham --- src/ipa/ipu3/algorithms/contrast.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/ipa/ipu3/algorithms/contrast.h (limited to 'src/ipa/ipu3/algorithms/contrast.h') diff --git a/src/ipa/ipu3/algorithms/contrast.h b/src/ipa/ipu3/algorithms/contrast.h new file mode 100644 index 00000000..cd1b0060 --- /dev/null +++ b/src/ipa/ipu3/algorithms/contrast.h @@ -0,0 +1,32 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +/* + * Copyright (C) 2021, Google + * + * constrast.h - IPU3 Contrast and Gamma control + */ +#ifndef __LIBCAMERA_IPU3_ALGORITHMS_CONTRAST_H__ +#define __LIBCAMERA_IPU3_ALGORITHMS_CONTRAST_H__ + +#include "algorithm.h" + +namespace libcamera { + +namespace ipa::ipu3::algorithms { + +class Contrast : public Algorithm +{ +public: + Contrast(); + ~Contrast() = default; + + void initialise(IPAContext &context); + +private: + double gamma_; +}; + +} /* namespace ipa::ipu3::algorithms */ + +} /* namespace libcamera */ + +#endif /* __LIBCAMERA_IPU3_ALGORITHMS_CONTRAST_H__ */ -- cgit v1.2.1