13#include <linux/intel-ipu3.h>
25static constexpr uint32_t kMaxFrameContexts = 16;
Associate a list of ControlId with their values for an object.
Definition: controls.h:350
Describe a two-dimensional size.
Definition: geometry.h:53
Helper class from std::chrono::duration that represents a time duration in nanoseconds with double pr...
Definition: utils.h:330
Framework to manage controls related to an object.
Data structures related to geometric objects.
Top-level libcamera namespace.
Definition: backtrace.h:17
The active state of the IPA algorithms.
Definition: ipa_context.h:51
struct libcamera::ipa::ipu3::IPAActiveState::@10 toneMapping
Context for ToneMapping and Gamma control.
uint32_t focus
Current position of the lens.
Definition: ipa_context.h:53
double blue
White balance gain for B channel.
Definition: ipa_context.h:67
struct ipu3_uapi_gamma_corr_lut gammaCorrection
Per-pixel tone mapping implemented as a LUT.
Definition: ipa_context.h:75
double temperatureK
Estimated color temperature.
Definition: ipa_context.h:70
struct libcamera::ipa::ipu3::IPAActiveState::@7 af
Context for the Automatic Focus algorithm.
struct libcamera::ipa::ipu3::IPAActiveState::@9 awb
Context for the Automatic White Balance algorithm.
uint32_t exposure
Exposure time expressed as a number of lines.
Definition: ipa_context.h:59
double green
White balance gain for G channel.
Definition: ipa_context.h:66
struct libcamera::ipa::ipu3::IPAActiveState::@8 agc
Context for the Automatic Gain Control algorithm.
double red
White balance gain for R channel.
Definition: ipa_context.h:65
double gain
Analogue gain multiplier.
Definition: ipa_context.h:60
double maxVariance
The maximum variance of the current image.
Definition: ipa_context.h:54
bool stable
It is set to true, if the best focus is found.
Definition: ipa_context.h:55
double gamma
Gamma value for the LUT.
Definition: ipa_context.h:74
Global IPA context data shared between all algorithms.
Definition: ipa_context.h:92
IPAActiveState activeState
The current state of IPA algorithms.
Definition: ipa_context.h:94
IPASessionConfiguration configuration
The IPA session configuration, immutable during the session.
Definition: ipa_context.h:93
std::array< IPAFrameContext, kMaxFrameContexts > frameContexts
Ring buffer of the IPAFrameContext(s)
Definition: ipa_context.h:96
Context for a frame.
Definition: ipa_context.h:79
struct libcamera::ipa::ipu3::IPAFrameContext::@12 sensor
Effective sensor values that were applied for the frame.
ControlList frameControls
Controls sent in by the application while queuing the request.
Definition: ipa_context.h:89
uint32_t frame
The frame number.
Definition: ipa_context.h:88
double gain
Analogue gain multiplier.
Definition: ipa_context.h:85
IPAFrameContext()
Default constructor for IPAFrameContext.
uint32_t exposure
Exposure time expressed as a number of lines.
Definition: ipa_context.h:84
Session configuration for the IPA module.
Definition: ipa_context.h:27
ipu3_uapi_grid_config afGrid
AF scene grid configuration.
Definition: ipa_context.h:35
int32_t defVBlank
The default vblank value of the sensor.
Definition: ipa_context.h:46
double maxAnalogueGain
Maximum analogue gain supported with the configured sensor.
Definition: ipa_context.h:42
utils::Duration maxShutterSpeed
Maximum shutter speed supported with the configured sensor.
Definition: ipa_context.h:40
struct libcamera::ipa::ipu3::IPASessionConfiguration::@4 af
AF grid configuration of the IPA.
uint32_t stride
Number of cells on one line including the ImgU padding.
Definition: ipa_context.h:31
struct libcamera::ipa::ipu3::IPASessionConfiguration::@6 sensor
Sensor-specific configuration of the IPA.
ipu3_uapi_grid_config bdsGrid
Bayer Down Scaler grid plane config used by the kernel.
Definition: ipa_context.h:29
double minAnalogueGain
Minimum analogue gain supported with the configured sensor.
Definition: ipa_context.h:41
utils::Duration minShutterSpeed
Minimum shutter speed supported with the configured sensor.
Definition: ipa_context.h:39
utils::Duration lineDuration
Line duration in microseconds.
Definition: ipa_context.h:47
Size bdsOutputSize
BDS output size configured by the pipeline handler.
Definition: ipa_context.h:30
struct libcamera::ipa::ipu3::IPASessionConfiguration::@3 grid
Grid configuration of the IPA.
struct libcamera::ipa::ipu3::IPASessionConfiguration::@5 agc
AGC parameters configuration of the IPA.
Miscellaneous utility functions.