ipa: libipa: agc_mean_luminance: Fix enumerator names

Enumerators in libcamera start with an upper case letter. Fix the
AgcConstraint::Bound enumerators.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
This commit is contained in:
Laurent Pinchart
2024-05-09 02:18:52 +03:00
parent 8fd673deaf
commit 3faa04fe48
2 changed files with 7 additions and 7 deletions

View File

@@ -59,9 +59,9 @@ static constexpr double kDefaultRelativeLuminanceTarget = 0.16;
/**
* \enum AgcMeanLuminance::AgcConstraint::Bound
* \brief Specify whether the constraint defines a lower or upper bound
* \var AgcMeanLuminance::AgcConstraint::lower
* \var AgcMeanLuminance::AgcConstraint::Lower
* \brief The constraint defines a lower bound
* \var AgcMeanLuminance::AgcConstraint::upper
* \var AgcMeanLuminance::AgcConstraint::Upper
* \brief The constraint defines an upper bound
*/
@@ -209,7 +209,7 @@ int AgcMeanLuminance::parseConstraintModes(const YamlObject &tuningData)
*/
if (constraintModes_.empty()) {
AgcConstraint constraint = {
AgcConstraint::Bound::lower,
AgcConstraint::Bound::Lower,
0.98,
1.0,
0.5
@@ -467,11 +467,11 @@ double AgcMeanLuminance::constraintClampGain(uint32_t constraintModeIndex,
double newGain = constraint.yTarget * hist.bins() /
hist.interQuantileMean(constraint.qLo, constraint.qHi);
if (constraint.bound == AgcConstraint::Bound::lower &&
if (constraint.bound == AgcConstraint::Bound::Lower &&
newGain > gain)
gain = newGain;
if (constraint.bound == AgcConstraint::Bound::upper &&
if (constraint.bound == AgcConstraint::Bound::Upper &&
newGain < gain)
gain = newGain;
}

View File

@@ -31,8 +31,8 @@ public:
struct AgcConstraint {
enum class Bound {
lower = 0,
upper = 1
Lower = 0,
Upper = 1
};
Bound bound;
double qLo;