summaryrefslogtreecommitdiff
path: root/src/ipa/rpi/controller/rpi/saturation.h
blob: 97da412ad59a9c837facfbc4dd61ee35c87af70b (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
28
29
30
31
32
/* SPDX-License-Identifier: BSD-2-Clause */
/*
 * Copyright (C) 2022, Raspberry Pi Ltd
 *
 * saturation.hpp - Saturation control algorithm
 */
#pragma once

#include "algorithm.h"

namespace RPiController {

struct SaturationConfig {
	uint8_t shiftR;
	uint8_t shiftG;
	uint8_t shiftB;
};

class Saturation : public Algorithm
{
public:
	Saturation(Controller *controller = NULL);
	char const *name() const override;
	int read(const libcamera::YamlObject &params) override;
	void initialise() override;
	void prepare(Metadata *imageMetadata) override;

private:
	SaturationConfig config_;
};

} // namespace RPiController