[libcamera-devel] [PATCH 1/2] libcamera: pipeline: simple: Set camera properties

Jacopo Mondi jacopo at jmondi.org
Wed Oct 21 12:34:50 CEST 2020


Hi Laurent,

On Wed, Oct 21, 2020 at 03:24:17AM +0300, Laurent Pinchart wrote:
> Initialize the CameraData properties with the properties exposed by the
> sensor.
>
> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>

Reviewed-by: Jacopo Mondi <jacopo at jmondi.org>

Thanks
  j

> ---
>  src/libcamera/pipeline/simple/simple.cpp | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/src/libcamera/pipeline/simple/simple.cpp b/src/libcamera/pipeline/simple/simple.cpp
> index 8868a43beeb4..4b6f708e8fee 100644
> --- a/src/libcamera/pipeline/simple/simple.cpp
> +++ b/src/libcamera/pipeline/simple/simple.cpp
> @@ -324,6 +324,8 @@ int SimpleCameraData::init()
>  		return -EINVAL;
>  	}
>
> +	properties_ = sensor_->properties();
> +
>  	return 0;
>  }
>
> --
> Regards,
>
> Laurent Pinchart
>
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel at lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel


More information about the libcamera-devel mailing list