libcamera  v0.3.1+12-19bbca3c
Supporting cameras in Linux since 2019
debayer_params.h
1 /* SPDX-License-Identifier: LGPL-2.1-or-later */
2 /*
3  * Copyright (C) 2023, 2024 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 <array>
14 #include <stdint.h>
15 
16 namespace libcamera {
17 
18 struct DebayerParams {
19  static constexpr unsigned int kRGBLookupSize = 256;
20 
21  using ColorLookupTable = std::array<uint8_t, kRGBLookupSize>;
22 
26 };
27 
28 } /* namespace libcamera */
Struct to hold the debayer parameters.
Definition: debayer_params.h:18
Top-level libcamera namespace.
Definition: backtrace.h:17
std::array< uint8_t, kRGBLookupSize > ColorLookupTable
Type of the lookup tables for red, green, blue values.
Definition: debayer_params.h:21
static constexpr unsigned int kRGBLookupSize
Size of a color lookup table.
Definition: debayer_params.h:19
ColorLookupTable red
Lookup table for red color, mapping input values to output values.
Definition: debayer_params.h:23
ColorLookupTable blue
Lookup table for blue color, mapping input values to output values.
Definition: debayer_params.h:25
ColorLookupTable green
Lookup table for green color, mapping input values to output values.
Definition: debayer_params.h:24