[libcamera-devel] [PATCH v4 13/31] libcamera: ipu3: Use NV12 as default image format
Jacopo Mondi
jacopo at jmondi.org
Wed Mar 20 17:30:37 CET 2019
Now that images come from the ImgU output, hardcode NV12 as default
output format.
Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
---
src/libcamera/pipeline/ipu3/ipu3.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
index 2623b2fe65f1..b99aae95c6d7 100644
--- a/src/libcamera/pipeline/ipu3/ipu3.cpp
+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
@@ -211,16 +211,16 @@ PipelineHandlerIPU3::streamConfiguration(Camera *camera,
config->width = range.maxWidth;
config->height = range.maxHeight;
- config->pixelFormat = cio2Code;
}
}
+ config->pixelFormat = V4L2_PIX_FMT_NV12;
config->bufferCount = IPU3_BUFFER_COUNT;
LOG(IPU3, Debug)
<< "Stream format set to: " << config->width << "x"
<< config->height << "- 0x" << std::hex << std::setfill('0')
- << std::setw(4) << config->pixelFormat;
+ << std::setw(8) << config->pixelFormat;
return configs;
}
--
2.21.0
More information about the libcamera-devel
mailing list