Loading...
Searching...
No Matches
swisp_stats.h
/* SPDX-License-Identifier: LGPL-2.1-or-later */
/*
* Copyright (C) 2023, Linaro Ltd
*
* Statistics data format used by the software ISP and software IPA
*/
#pragma once
#include <array>
#include <stdint.h>
#include "libcamera/internal/vector.h"
namespace libcamera {
struct SwIspStats {
bool valid;
RGB<uint64_t> sum_;
static constexpr unsigned int kYHistogramSize = 64;
using Histogram = std::array<uint32_t, kYHistogramSize>;
Histogram yHistogram;
};
} /* 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:297
libcamera::SwIspStats
Struct that holds the statistics for the Software ISP.
Definition swisp_stats.h:24
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:29
libcamera::SwIspStats::Histogram
std::array< uint32_t, kYHistogramSize > Histogram
Type of the histogram.
Definition swisp_stats.h:41
libcamera::SwIspStats::yHistogram
Histogram yHistogram
A histogram of luminance values of all the sampled pixels.
Definition swisp_stats.h:45
libcamera::SwIspStats::kYHistogramSize
static constexpr unsigned int kYHistogramSize
Number of bins in the yHistogram.
Definition swisp_stats.h:37
libcamera::SwIspStats::sum_
RGB< uint64_t > sum_
Sums of colour channels of all the sampled pixels.
Definition swisp_stats.h:33
vector.h
Vector class.