diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-07-16 04:26:46 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-07-16 08:51:04 +0300 |
commit | d55c8018cdfe6a18aea1f761c8b3f0673d902aff (patch) | |
tree | deed5a13386c8855cdaae9da08bb556f0145334d | |
parent | ef98f90a4fdd3242471295d680e96f9a651f1d33 (diff) |
libcamera: pipeline: ipu3: Initialise pixel format to NV12 in new config
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@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
-rw-r--r-- | src/libcamera/pipeline/ipu3/ipu3.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp index 22987dbf..febc867b 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: /* |