ipa: ipu3: agc: Introduce previous exposure value

We need to calculate the gain on the previous exposure value calculated.
Now that we initialise the exposure and gain values in configure(), we
know the initial exposure value, and we can set it before any loop is
running.

Signed-off-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Jean-Michel Hautbois 2021-10-12 17:06:02 +02:00
parent fd5a82ea88
commit cd0b3402ea
2 changed files with 18 additions and 2 deletions

View file

@ -49,6 +49,7 @@ private:
utils::Duration filteredExposureNoDg_;
utils::Duration currentExposure_;
utils::Duration currentExposureNoDg_;
utils::Duration prevExposureValue_;
uint32_t stride_;
};