[libcamera-devel] [PATCH 1/2] libcamera: pipeline: ipu3: Initialise pixel format to NV12 in new config

Paul Elder paul.elder at ideasonboard.com
Tue Jul 16 09:32:46 CEST 2019


Hi Laurent,

Thanks for the patch.

On Tue, Jul 16, 2019 at 08:42:17AM +0300, Laurent Pinchart wrote:
> To avoid printing debugging messages related to stream configuration
> adjustement when generating a new configuration, set the pixel format
> explicitly instead of relying on the internal validate() call to do so.
> 
> Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>

Looks good to me.

Reviewed-by: Paul Elder <paul.elder at ideasonboard.com>

> ---
>  src/libcamera/pipeline/ipu3/ipu3.cpp | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
> index 22987dbf1460..febc867b4d7e 100644
> --- a/src/libcamera/pipeline/ipu3/ipu3.cpp
> +++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
> @@ -402,6 +402,8 @@ CameraConfiguration *PipelineHandlerIPU3::generateConfiguration(Camera *camera,
>  		StreamConfiguration cfg = {};
>  		IPU3Stream *stream = nullptr;
>  
> +		cfg.pixelFormat = V4L2_PIX_FMT_NV12;
> +
>  		switch (role) {
>  		case StreamRole::StillCapture:
>  			/*
> -- 
> 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