libcamera: include/libcamera/internal/software_isp/debayer_params.h Source File

libcamera v0.3.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, 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
16namespace libcamera {
17
18 struct DebayerParams {
19 static constexpr unsigned int kRGBLookupSize = 256;
20
21 using ColorLookupTable = std::array<uint8_t, kRGBLookupSize>;
22
23 ColorLookupTable red;
24 ColorLookupTable green;
25 ColorLookupTable blue;
26};
27
28} /* namespace libcamera */
libcamera
Top-level libcamera namespace.
Definition backtrace.h:17
libcamera::DebayerParams
Struct to hold the debayer parameters.
Definition debayer_params.h:18
libcamera::DebayerParams::ColorLookupTable
std::array< uint8_t, kRGBLookupSize > ColorLookupTable
Type of the lookup tables for red, green, blue values.
Definition debayer_params.h:21
libcamera::DebayerParams::red
ColorLookupTable red
Lookup table for red color, mapping input values to output values.
Definition debayer_params.h:23
libcamera::DebayerParams::green
ColorLookupTable green
Lookup table for green color, mapping input values to output values.
Definition debayer_params.h:24
libcamera::DebayerParams::kRGBLookupSize
static constexpr unsigned int kRGBLookupSize
Size of a color lookup table.
Definition debayer_params.h:19
libcamera::DebayerParams::blue
ColorLookupTable blue
Lookup table for blue color, mapping input values to output values.
Definition debayer_params.h:25