summaryrefslogtreecommitdiff
path: root/src/ipa/rpi/common/ipa_base.h
diff options
context:
space:
mode:
authorDavid Plowman <david.plowman@raspberrypi.com>2023-07-18 15:43:01 +0100
committerNaushir Patuck <naush@raspberrypi.com>2023-07-25 10:21:11 +0100
commita2eadc40a78f73410d2dcf76a24313a83a1c51c8 (patch)
treec377b99e65a3402165147ed016a807ec24addfe6 /src/ipa/rpi/common/ipa_base.h
parent6fdbf3f38c3148f1ba780286715d9a78ffe1e387 (diff)
ipa: rpi: common: Handle AEC/AGC flicker controls
We handle the flicker modes by passing the correct period to the AEC/AGC algorithm which already contains the necessary code. The "Auto" mode, as well as reporting the detected flicker period via the "AeFlickerDetected" metadata, are unsupported for now. Signed-off-by: David Plowman <david.plowman@raspberrypi.com> Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com> Reviewed-by: Umang Jain <umang.jain@ideasonboard.com> Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
Diffstat (limited to 'src/ipa/rpi/common/ipa_base.h')
-rw-r--r--src/ipa/rpi/common/ipa_base.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ipa/rpi/common/ipa_base.h b/src/ipa/rpi/common/ipa_base.h
index 39d00760..097f436a 100644
--- a/src/ipa/rpi/common/ipa_base.h
+++ b/src/ipa/rpi/common/ipa_base.h
@@ -116,6 +116,12 @@ private:
/* Frame duration (1/fps) limits. */
utils::Duration minFrameDuration_;
utils::Duration maxFrameDuration_;
+
+ /* The current state of flicker avoidance. */
+ struct FlickerState {
+ int32_t mode;
+ utils::Duration manualPeriod;
+ } flickerState_;
};
} /* namespace ipa::RPi */