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

Andrey Konovalov andrey.konovalov at linaro.org
Wed Oct 21 15:16:52 CEST 2020


Hi Laurent,

Thank you for the patch!
Now I can see (on my setup using simple pipeline):
-----8<-----
Property: Rotation = 0
Property: Location = 0
Property: Model = imx290
-----8<-----
added to the 'cam -c 1 -p' output.

Tested-by: Andrey Konovalov <andrey.konovalov at linaro.org>

Thanks,
Andrey

On 21.10.2020 03:24, Laurent Pinchart wrote:
> Initialize the CameraData properties with the properties exposed by the
> sensor.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
> ---
>   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;
>   }
>   
> 


More information about the libcamera-devel mailing list