libcamera v0.7.0+1-4ceceb68
Supporting cameras in Linux since 2019
Loading...
Searching...
No Matches
swisp_stats.h
1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/*
3 * Copyright (C) 2023, Linaro Ltd
4 *
5 * Statistics data format used by the software ISP and software IPA
6 */
7
8#pragma once
9
10#include <array>
11#include <stdint.h>
12
14
15namespace libcamera {
16
24struct SwIspStats {
29 bool valid;
37 static constexpr unsigned int kYHistogramSize = 64;
41 using Histogram = std::array<uint32_t, kYHistogramSize>;
46};
47
48} /* namespace libcamera */
Vector class.
Definition vector.h:35
Top-level libcamera namespace.
Definition backtrace.h:17
Struct that holds the statistics for the Software ISP.
Definition swisp_stats.h:24
bool valid
True if the statistics buffer contains valid data, false if no statistics were generated for this fra...
Definition swisp_stats.h:29
std::array< uint32_t, kYHistogramSize > Histogram
Type of the histogram.
Definition swisp_stats.h:41
Histogram yHistogram
A histogram of luminance values of all the sampled pixels.
Definition swisp_stats.h:45
static constexpr unsigned int kYHistogramSize
Number of bins in the yHistogram.
Definition swisp_stats.h:37
RGB< uint64_t > sum_
Sums of colour channels of all the sampled pixels.
Definition swisp_stats.h:33
Vector class.