libcamera v0.7.2
Supporting cameras in Linux since 2019
Loading...
Searching...
No Matches
ipa_context.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: LGPL-2.1-or-later */
2/*
3 * Copyright (C) 2021, Google Inc.
4 *
5 * IPU3 IPA Context
6 *
7 */
8
9#pragma once
10
11#include <linux/intel-ipu3.h>
12
14
15#include <libcamera/controls.h>
16#include <libcamera/geometry.h>
17
18#include <libipa/fc_queue.h>
19
20namespace libcamera {
21
22namespace ipa::ipu3 {
23
25 struct {
26 ipu3_uapi_grid_config bdsGrid;
27 Size bdsOutputSize;
28 uint32_t stride;
30
31 struct {
32 ipu3_uapi_grid_config afGrid;
33 } af;
34
35 struct {
36 utils::Duration minExposureTime;
37 utils::Duration maxExposureTime;
38 double minAnalogueGain;
39 double maxAnalogueGain;
40 } agc;
41
42 struct {
43 int32_t defVBlank;
44 utils::Duration lineDuration;
45 Size size;
47};
48
50 struct {
51 uint32_t focus;
52 double maxVariance;
53 bool stable;
54 } af;
55
56 struct {
57 uint32_t exposure;
58 double gain;
59 uint32_t constraintMode;
60 uint32_t exposureMode;
61 } agc;
62
63 struct {
64 struct {
65 double red;
66 double green;
67 double blue;
68 } gains;
69
70 double temperatureK;
71 } awb;
72
73 struct {
74 double gamma;
75 struct ipu3_uapi_gamma_corr_lut gammaCorrection;
77};
78
80 struct {
81 uint32_t exposure;
82 double gain;
84};
85
99
100} /* namespace ipa::ipu3 */
101
102} /* namespace libcamera*/
std::unordered_map< const ControlId *, ControlInfo > Map
The base std::unsorted_map<> container.
Definition controls.h:367
Describe a two-dimensional size.
Definition geometry.h:51
A support class for managing FrameContext instances in IPA modules.
Definition fc_queue.h:33
Helper class from std::chrono::duration that represents a time duration in nanoseconds with double pr...
Definition utils.h:331
Framework to manage controls related to an object.
Queue of per-frame contexts.
Data structures related to geometric objects.
Top-level libcamera namespace.
Definition backtrace.h:17
Context for a frame.
Definition fc_queue.h:24
The active state of the IPA algorithms.
Definition ipa_context.h:49
struct libcamera::ipa::ipu3::IPAActiveState::@213365101006337121240370031272077062224235355025 agc
Context for the Automatic Gain Control algorithm.
struct libcamera::ipa::ipu3::IPAActiveState::@074301367332221224366323347260343256075341055067 toneMapping
Context for ToneMapping and Gamma control.
struct libcamera::ipa::ipu3::IPAActiveState::@051374147247113050363206126116016245340200121213 awb
Context for the Automatic White Balance algorithm.
struct libcamera::ipa::ipu3::IPAActiveState::@071262103123273134035360040264157341021041311001 af
Context for the Automatic Focus algorithm.
IPASessionConfiguration configuration
The IPA session configuration, immutable during the session.
Definition ipa_context.h:92
FCQueue< IPAFrameContext > frameContexts
Ring buffer of the IPAFrameContext(s).
Definition ipa_context.h:95
IPAContext(unsigned int frameContextSize)
Initialize the instance with the given number of frame contexts.
Definition ipa_context.h:87
ControlInfoMap::Map ctrlMap
A ControlInfoMap::Map of controls populated by the algorithms.
Definition ipa_context.h:97
IPAActiveState activeState
The current state of IPA algorithms.
Definition ipa_context.h:93
IPU3-specific FrameContext.
Definition ipa_context.h:79
struct libcamera::ipa::ipu3::IPAFrameContext::@153316034052110176217141150134324150265214072044 sensor
Effective sensor values that were applied for the frame.
Session configuration for the IPA module.
Definition ipa_context.h:24
struct libcamera::ipa::ipu3::IPASessionConfiguration::@000270162205233312240267154160141120017226164101 sensor
Sensor-specific configuration of the IPA.
struct libcamera::ipa::ipu3::IPASessionConfiguration::@134111133116024143261334214133061373076336176224 af
AF grid configuration of the IPA.
struct libcamera::ipa::ipu3::IPASessionConfiguration::@120042124303245340150020112133163112264141374071 grid
Grid configuration of the IPA.
struct libcamera::ipa::ipu3::IPASessionConfiguration::@247016210333232265124136337006233133064156163334 agc
AGC parameters configuration of the IPA.
Miscellaneous utility functions.