[libcamera-devel] [PATCH 5/7] libcamera: ipu3: imgu: Fix BSD height size comparison
Jean-Michel Hautbois
jeanmichel.hautbois at ideasonboard.com
Wed Mar 24 08:16:24 CET 2021
Hi Jacopo,
Thanks for the patch,
On 18/03/2021 11:39, Jacopo Mondi wrote:
> Fix a size comparison when iterating on the BDS sizes to align it with
> the python scritp implementation.
s/scritp/script
>
> Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
Tested-by: Jean-Michel Hautbois <jeanmichel.hautbois at ideasonboard.com>
Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois at ideasonboard.com>
> ---
> src/libcamera/pipeline/ipu3/imgu.cpp | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/libcamera/pipeline/ipu3/imgu.cpp b/src/libcamera/pipeline/ipu3/imgu.cpp
> index 89a01bddbed2..ccc85864fc39 100644
> --- a/src/libcamera/pipeline/ipu3/imgu.cpp
> +++ b/src/libcamera/pipeline/ipu3/imgu.cpp
> @@ -182,7 +182,7 @@ void calculateBDSHeight(ImgUDevice::Pipe *pipe, const Size &iif, const Size &gdc
> }
> } else {
> ifHeight = utils::alignUp(iif.height, IF_ALIGN_H);
> - while (ifHeight > minIFHeight && ifHeight / bdsSF >= minBDSHeight) {
> + while (ifHeight >= minIFHeight && ifHeight / bdsSF >= minBDSHeight) {
>
> bdsHeight = ifHeight / bdsSF;
> if (std::fmod(ifHeight, 1.0) == 0 && std::fmod(bdsHeight, 1.0) == 0) {
>
More information about the libcamera-devel
mailing list