libcamera  v0.3.0
Supporting cameras in Linux since 2019
debayer_params.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 /*
3  * Copyright (C) 2023, Red Hat Inc.
4  *
5  * Authors:
6  * Hans de Goede <hdegoede@redhat.com>
7  *
8  * DebayerParams header
9  */
10 
11 #pragma once
12 
13 namespace libcamera {
14 
15 struct DebayerParams {
16  static constexpr unsigned int kGain10 = 256;
17 
18  unsigned int gainR;
19  unsigned int gainG;
20  unsigned int gainB;
21 
22  float gamma;
26  unsigned int blackLevel;
27 };
28 
29 } /* namespace libcamera */
Top-level libcamera namespace.
Definition: backtrace.h:17
Struct to hold the debayer parameters.
Definition: debayer_params.h:15
unsigned int gainB
Blue gain.
Definition: debayer_params.h:20
static constexpr unsigned int kGain10
const value for 1.0 gain
Definition: debayer_params.h:16
unsigned int blackLevel
Level of the black point, 0..255, 0 is no correction.
Definition: debayer_params.h:26
unsigned int gainG
Green gain.
Definition: debayer_params.h:19
unsigned int gainR
Red gain.
Definition: debayer_params.h:18
float gamma
Gamma correction, 1.0 is no correction.
Definition: debayer_params.h:22