summaryrefslogtreecommitdiff
path: root/src/ipa/rpi/controller/awb_algorithm.h
blob: d941ed4e3476c3036689a1ab05861cb1fc9476b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* SPDX-License-Identifier: BSD-2-Clause */
/*
 * Copyright (C) 2019, Raspberry Pi Ltd
 *
 * AWB control algorithm interface
 */
#pragma once

#include "algorithm.h"

namespace RPiController {

class AwbAlgorithm : public Algorithm
{
public:
	AwbAlgorithm(Controller *controller) : Algorithm(controller) {}
	/* An AWB algorithm must provide the following: */
	virtual unsigned int getConvergenceFrames() const = 0;
	virtual void initialValues(double &gainR, double &gainB) = 0;
	virtual void setMode(std::string const &modeName) = 0;
	virtual void setManualGains(double manualR, double manualB) = 0;
	virtual void setColourTemperature(double temperatureK) = 0;
	virtual void enableAuto() = 0;
	virtual void disableAuto() = 0;
};

} /* namespace RPiController */