diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-08-04 14:29:04 +0100 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2021-08-05 08:53:59 +0100 |
commit | e5e0ce6573ac91a76954eeaf89cd309a48fd333d (patch) | |
tree | be140b60881e297947da87c282edd31e9ee16b3f /src/ipa/ipu3/algorithms/contrast.h | |
parent | 9f1c38e2609cd8689aab901402188cd223c223b5 (diff) |
ipa: ipu3: Introduce a modular contrast algorithmipu3/modules
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 <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/ipu3/algorithms/contrast.h')
-rw-r--r-- | src/ipa/ipu3/algorithms/contrast.h | 32 |
1 files changed, 32 insertions, 0 deletions
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__ */ |