summaryrefslogtreecommitdiff
path: root/src/ipa/ipu3/ipu3_agc.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipa/ipu3/ipu3_agc.h')
-rw-r--r--src/ipa/ipu3/ipu3_agc.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/ipa/ipu3/ipu3_agc.h b/src/ipa/ipu3/ipu3_agc.h
index f3d40557..a5a78233 100644
--- a/src/ipa/ipu3/ipu3_agc.h
+++ b/src/ipa/ipu3/ipu3_agc.h
@@ -14,6 +14,8 @@
#include <libcamera/geometry.h>
+#include "libcamera/internal/utils.h"
+
#include "libipa/algorithm.h"
namespace libcamera {
@@ -22,6 +24,8 @@ struct IPACameraSensorInfo;
namespace ipa::ipu3 {
+using utils::Duration;
+
class IPU3Agc : public Algorithm
{
public:
@@ -51,13 +55,13 @@ private:
double iqMean_;
double gamma_;
- double lineDuration_;
- double maxExposureTime_;
+ Duration lineDuration_;
+ Duration maxExposureTime_;
- double prevExposure_;
- double prevExposureNoDg_;
- double currentExposure_;
- double currentExposureNoDg_;
+ Duration prevExposure_;
+ Duration prevExposureNoDg_;
+ Duration currentExposure_;
+ Duration currentExposureNoDg_;
};
} /* namespace ipa::ipu3 */