summaryrefslogtreecommitdiff
path: root/src/ipa/ipu3/algorithms/agc.h
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-11-16 16:29:23 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-11-23 10:29:25 +0200
commit8d9b39f8ad30c9649096bd3829f220ab90f6054d (patch)
tree13b0ed1e92f2bfe61b9d74aaf1bcb69522ef998d /src/ipa/ipu3/algorithms/agc.h
parent65628512df0f4bd1e4b2816f080d648fce3e3ab0 (diff)
ipa: ipu3: agc: Standardize vocabulary on "relative luminance"
The AGC computes the average relative luminance of the frame and calls the value "normalized luma", "brightness" or "initialY". The latter is the most accurate term, as the relative luminance is abbreviated Y, but the "initial" prefix isn't accurate. Standardize the vocabulary on "relative luminance" in code and comments, abbreviating it to Y when needed. While at it, rename variables to match the libcamera coding style. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/ipa/ipu3/algorithms/agc.h')
-rw-r--r--src/ipa/ipu3/algorithms/agc.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ipa/ipu3/algorithms/agc.h b/src/ipa/ipu3/algorithms/agc.h
index 31c5a6e5..943c354a 100644
--- a/src/ipa/ipu3/algorithms/agc.h
+++ b/src/ipa/ipu3/algorithms/agc.h
@@ -35,10 +35,10 @@ private:
const ipu3_uapi_grid_config &grid);
void filterExposure();
void computeExposure(IPAFrameContext &frameContext, double currentYGain);
- double computeInitialY(IPAFrameContext &frameContext,
- const ipu3_uapi_grid_config &grid,
- const ipu3_uapi_stats_3a *stats,
- double currentYGain);
+ double estimateLuminance(IPAFrameContext &frameContext,
+ const ipu3_uapi_grid_config &grid,
+ const ipu3_uapi_stats_3a *stats,
+ double currentYGain);
uint64_t frameCount_;