[libcamera-devel] [PATCH] libcamera: pipeline: ipu3: Fix minCrop indentation

Umang Jain umang.jain at ideasonboard.com
Thu Nov 11 04:54:42 CET 2021


Hi Kieran,

Thank you for the patch

On 11/11/21 5:03 AM, Kieran Bingham wrote:
> When updating the controls the calculation for minCrop incorrectly
> indents the parameters to scaledBy().
>
> Fix it.
>
> Signed-off-by: Kieran Bingham <kieran.bingham at ideasonboard.com>


Reviewed-by: Umang Jain <umang.jain at ideasonboard.com>

> ---
>   src/libcamera/pipeline/ipu3/ipu3.cpp | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
> index eb714aa61099..3cd7383f0e40 100644
> --- a/src/libcamera/pipeline/ipu3/ipu3.cpp
> +++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
> @@ -1039,7 +1039,7 @@ int PipelineHandlerIPU3::updateControls(IPU3CameraData *data)
>   	 * top-left corner as we allow application to freely pan the crop area.
>   	 */
>   	Rectangle minCrop = Rectangle(minSize).scaledBy(analogueCrop.size(),
> -					       sensorInfo.outputSize);
> +							sensorInfo.outputSize);
>   
>   	controls[&controls::ScalerCrop] = ControlInfo(minCrop, maxCrop, maxCrop);
>   


More information about the libcamera-devel mailing list