libcamera
v0.8.0
Supporting cameras in Linux since 2019
Toggle main menu visibility
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
13
#include "
libcamera/internal/vector.h
"
14
15
namespace
libcamera
{
16
33
struct
SwIspStats
{
38
bool
valid
;
42
RGB<uint64_t>
sum_
;
46
uint64_t
numPixels_
;
50
static
constexpr
unsigned
int
kYHistogramSize
= 64;
54
using
Histogram
= std::array<uint32_t, kYHistogramSize>;
58
Histogram
yHistogram
;
59
};
60
61
}
/* namespace libcamera */
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::SwIspStats
Statistics for the Software ISP.
Definition
swisp_stats.h:33
libcamera::SwIspStats::valid
bool valid
True if the statistics buffer contains valid data, false if no statistics were generated for this fra...
Definition
swisp_stats.h:38
libcamera::SwIspStats::Histogram
std::array< uint32_t, kYHistogramSize > Histogram
Type of the histogram.
Definition
swisp_stats.h:54
libcamera::SwIspStats::numPixels_
uint64_t numPixels_
Number of unsaturated pixels accumulated in sum_.
Definition
swisp_stats.h:46
libcamera::SwIspStats::yHistogram
Histogram yHistogram
A histogram of luminance values of all the sampled pixels.
Definition
swisp_stats.h:58
libcamera::SwIspStats::kYHistogramSize
static constexpr unsigned int kYHistogramSize
Number of bins in the yHistogram.
Definition
swisp_stats.h:50
libcamera::SwIspStats::sum_
RGB< uint64_t > sum_
Sums of colour channels of all the unsaturated pixels.
Definition
swisp_stats.h:42
vector.h
Vector class.
include
libcamera
internal
software_isp
swisp_stats.h
Generated by
1.17.0