mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-24 17:15:07 +03:00
libcamera: ipu3: imgu: Fix BSD height size comparison
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@jmondi.org> Tested-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Hirokazu Honda <hiroh@chromium.org>
This commit is contained in:
parent
8f888a8e84
commit
5be6313d32
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue