[libcamera-devel] [PATCH v3 6/8] libcamera: ipu3: imgu: Fix BSD height size comparison

Hirokazu Honda hiroh at chromium.org
Mon May 17 05:59:39 CEST 2021


Hi Jacopo, thank you for the patch.

On Fri, May 14, 2021 at 12:20 AM Jacopo Mondi <jacopo at jmondi.org> wrote:

> Fix a size comparison when iterating on the BDS sizes to accepts
> values that are equal to the minimum accepted height.
>
> 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>
> Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> Reviewed-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
>

Reviewed-by: Hirokazu Honda <hiroh at chromium.org>

>

> ---
>  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 5912ae4dfc87..df5a1b5b0826 100644
> --- a/src/libcamera/pipeline/ipu3/imgu.cpp
> +++ b/src/libcamera/pipeline/ipu3/imgu.cpp
> @@ -177,7 +177,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) {
> --
> 2.31.1
>
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel at lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20210517/a5aa9e2d/attachment-0001.htm>


More information about the libcamera-devel mailing list