[libcamera-devel] [PATCH] fixup! ipa: ipu3: Rename IspStatsRegion to Accumulator
Kieran Bingham
kieran.bingham at ideasonboard.com
Tue Sep 28 00:11:24 CEST 2021
On 27/09/2021 19:34, Jean-Michel Hautbois wrote:
> JM,
>
> You may also want this fixup as the max cells in width is 80 ;-).
>
> ---
> src/ipa/ipu3/algorithms/awb.cpp | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/src/ipa/ipu3/algorithms/awb.cpp b/src/ipa/ipu3/algorithms/awb.cpp
> index 06570b60..67cf3a55 100644
> --- a/src/ipa/ipu3/algorithms/awb.cpp
> +++ b/src/ipa/ipu3/algorithms/awb.cpp
> @@ -26,8 +26,8 @@ static constexpr uint32_t kMinGreenLevelInZone = 32;
> * - Cells are defined in Pixels
> * - Zones are defined in Cells
> *
> - * 81 cells
> - * /───────────── 1296 pixels ───────────\
> + * 80 cells
I would also suggest aligning the numbers to make sure the units are
aligned.
I.e.
80 ...
1290 ...
16 ...
--
Kieran
> + * /───────────── 1280 pixels ───────────\
> * 16 zones
> * 16
> * ┌────┬────┬────┬────┬────┬─ ──────┬────┐ \
> @@ -55,7 +55,7 @@ static constexpr uint32_t kMinGreenLevelInZone = 32;
> * └────┴────┴────┴────┴────┴─ ──────┴────┘ /
> *
> * The algorithm works with a fixed number of zones \a kAwbStatsSizeX x
> - * \a kAwbStatsSizeY. For example, a frame of 1296x720 is divided into 81x45
> + * \a kAwbStatsSizeY. For example, a frame of 1280x720 is divided into 80x45
> * cells of [16x16] pixels. In the case of \a kAwbStatsSizeX=16 and
> * \a kAwbStatsSizeY=12 the zones are made of [5x4] cells. The cells are
> * left-aligned and calculated by IPAIPU3::calculateBdsGrid().
>
More information about the libcamera-devel
mailing list