summaryrefslogtreecommitdiff
path: root/src/ipa/simple/black_level.h
blob: a04230c9c77eef98ff8e77afc069b9802067e70f (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
33
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
 * Copyright (C) 2024, Red Hat Inc.
 *
 * black level handling
 */

#pragma once

#include <array>
#include <stdint.h>

#include "libcamera/internal/software_isp/swisp_stats.h"

namespace libcamera {

namespace ipa::soft {

class BlackLevel
{
public:
	BlackLevel();
	uint8_t get() const;
	void update(SwIspStats::Histogram &yHistogram);

private:
	uint8_t blackLevel_;
	bool blackLevelSet_;
};

} /* namespace ipa::soft */

} /* namespace libcamera */