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

libcamera v0.3.2 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
13namespace libcamera {
14
22 struct SwIspStats {
26 uint64_t sumR_;
30 uint64_t sumG_;
34 uint64_t sumB_;
38 static constexpr unsigned int kYHistogramSize = 64;
42 using Histogram = std::array<uint32_t, kYHistogramSize>;
46 Histogram yHistogram;
47};
48
49} /* namespace libcamera */
libcamera
Top-level libcamera namespace.
Definition backtrace.h:17
libcamera::SwIspStats
Struct that holds the statistics for the Software ISP.
Definition swisp_stats.h:22
libcamera::SwIspStats::Histogram
std::array< uint32_t, kYHistogramSize > Histogram
Type of the histogram.
Definition swisp_stats.h:42
libcamera::SwIspStats::sumR_
uint64_t sumR_
Holds the sum of all sampled red pixels.
Definition swisp_stats.h:26
libcamera::SwIspStats::yHistogram
Histogram yHistogram
A histogram of luminance values.
Definition swisp_stats.h:46
libcamera::SwIspStats::sumB_
uint64_t sumB_
Holds the sum of all sampled blue pixels.
Definition swisp_stats.h:34
libcamera::SwIspStats::kYHistogramSize
static constexpr unsigned int kYHistogramSize
Number of bins in the yHistogram.
Definition swisp_stats.h:38
libcamera::SwIspStats::sumG_
uint64_t sumG_
Holds the sum of all sampled green pixels.
Definition swisp_stats.h:30