libcamera: converter_v4l2_m2m: Add debug logging for formats
Getting the requested input/output format is crucial for debugging. Add log statements for that. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
This commit is contained in:
@@ -111,6 +111,7 @@ int V4L2M2MConverter::V4L2M2MStream::configure(const StreamConfiguration &inputC
|
||||
format.planesCount = 1;
|
||||
format.planes[0].bpl = inputCfg.stride;
|
||||
|
||||
LOG(Converter, Debug) << "Set input format to: " << format;
|
||||
int ret = m2m_->output()->setFormat(&format);
|
||||
if (ret < 0) {
|
||||
LOG(Converter, Error)
|
||||
@@ -133,6 +134,7 @@ int V4L2M2MConverter::V4L2M2MStream::configure(const StreamConfiguration &inputC
|
||||
format.fourcc = videoFormat;
|
||||
format.size = outputCfg.size;
|
||||
|
||||
LOG(Converter, Debug) << "Set output format to: " << format;
|
||||
ret = m2m_->capture()->setFormat(&format);
|
||||
if (ret < 0) {
|
||||
LOG(Converter, Error)
|
||||
|
||||
Reference in New Issue
Block a user