libcamera v0.2.0
Supporting cameras in Linux since 2019
swisp_stats.h
1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/*
3 * Copyright (C) 2023, Linaro Ltd
4 *
5 * swisp_stats.h - Statistics data format used by the software ISP and software IPA
6 */
7
8#pragma once
9
10namespace libcamera {
11
15struct SwIspStats {
19 unsigned long sumR_;
23 unsigned long sumG_;
27 unsigned long sumB_;
31 static constexpr unsigned int kYHistogramSize = 16;
35 std::array<unsigned int, kYHistogramSize> yHistogram;
36};
37
38} /* namespace libcamera */
Top-level libcamera namespace.
Definition: backtrace.h:17
Struct that holds the statistics for the Software ISP.
Definition: swisp_stats.h:15
unsigned long sumG_
Holds the sum of all sampled green pixels.
Definition: swisp_stats.h:23
std::array< unsigned int, kYHistogramSize > yHistogram
A histogram of luminance values.
Definition: swisp_stats.h:35
unsigned long sumB_
Holds the sum of all sampled blue pixels.
Definition: swisp_stats.h:27
static constexpr unsigned int kYHistogramSize
Number of bins in the yHistogram.
Definition: swisp_stats.h:31
unsigned long sumR_
Holds the sum of all sampled red pixels.
Definition: swisp_stats.h:19