libcamera v0.7.2 Supporting cameras in Linux since 2019

Loading...
Searching...
No Matches
debayer_params.h
1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/*
3 * Copyright (C) 2023-2026 Red Hat Inc.
4 *
5 * Authors:
6 * Hans de Goede <hdegoede@redhat.com>
7 *
8 * DebayerParams header
9 */
10
11#pragma once
12
13#include <stdint.h>
14
15#include "libcamera/internal/matrix.h"
16#include "libcamera/internal/vector.h"
17
18 namespace libcamera {
19
20 struct DebayerParams {
21 Matrix<float, 3, 3> combinedMatrix = { { 1.0, 0.0, 0.0,
22 0.0, 1.0, 0.0,
23 0.0, 0.0, 1.0 } };
24 RGB<float> blackLevel = RGB<float>({ 0.0, 0.0, 0.0 });
25 float gamma = 1.0;
26 float contrastExp = 1.0;
27 RGB<float> gains = RGB<float>({ 1.0, 1.0, 1.0 });
28};
29
30} /* namespace libcamera */
libcamera::Matrix
Matrix class.
Definition matrix.h:31
matrix.h
Matrix class.
libcamera
Top-level libcamera namespace.
Definition backtrace.h:17
libcamera::RGB
Vector< T, 3 > RGB
A Vector of 3 elements representing an RGB pixel value.
Definition vector.h:318
libcamera::DebayerParams
Struct to hold the debayer parameters.
Definition debayer_params.h:20
libcamera::DebayerParams::blackLevel
RGB< float > blackLevel
Black level values.
Definition debayer_params.h:24
libcamera::DebayerParams::gamma
float gamma
Gamma value, e.g. 1/2.2.
Definition debayer_params.h:25
libcamera::DebayerParams::combinedMatrix
Matrix< float, 3, 3 > combinedMatrix
Colour correction matrix, including other adjustments.
Definition debayer_params.h:21
libcamera::DebayerParams::contrastExp
float contrastExp
Contrast value to be used as an exponent.
Definition debayer_params.h:26
libcamera::DebayerParams::gains
RGB< float > gains
Colour channel gains.
Definition debayer_params.h:27
vector.h
Vector class.