summaryrefslogtreecommitdiff
path: root/src/libcamera/pipeline/ipu3
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-04-29 03:59:45 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2022-05-04 14:11:25 +0300
commit37958dfd713dd00d4a71a78a6a45f8016ad82e65 (patch)
treec8f958dc5a9877d6d6afe95bcf8e960e3ca1f722 /src/libcamera/pipeline/ipu3
parent4f1d1a48fe7ebe1282d7608a59cb059e1367e584 (diff)
libcamera: Replace toString with operator<<() for geometry classes
Now that geometry classes implement the stream formatting operator<<(), use it instead of the toString() function. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/libcamera/pipeline/ipu3')
-rw-r--r--src/libcamera/pipeline/ipu3/imgu.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/libcamera/pipeline/ipu3/imgu.cpp b/src/libcamera/pipeline/ipu3/imgu.cpp
index e5bbc382..3ac997cc 100644
--- a/src/libcamera/pipeline/ipu3/imgu.cpp
+++ b/src/libcamera/pipeline/ipu3/imgu.cpp
@@ -386,9 +386,9 @@ ImgUDevice::PipeConfig ImgUDevice::calculatePipeConfig(Pipe *pipe)
pipeConfigs.clear();
LOG(IPU3, Debug) << "Calculating pipe configuration for: ";
- LOG(IPU3, Debug) << "input: " << pipe->input.toString();
- LOG(IPU3, Debug) << "main: " << pipe->main.toString();
- LOG(IPU3, Debug) << "vf: " << pipe->viewfinder.toString();
+ LOG(IPU3, Debug) << "input: " << pipe->input;
+ LOG(IPU3, Debug) << "main: " << pipe->main;
+ LOG(IPU3, Debug) << "vf: " << pipe->viewfinder;
const Size &in = pipe->input;
@@ -397,8 +397,7 @@ ImgUDevice::PipeConfig ImgUDevice::calculatePipeConfig(Pipe *pipe)
* See https://bugs.libcamera.org/show_bug.cgi?id=32
*/
if (in.width < ImgUDevice::kIFMaxCropWidth || in.height < ImgUDevice::kIFMaxCropHeight) {
- LOG(IPU3, Error) << "Input resolution " << in.toString()
- << " not supported";
+ LOG(IPU3, Error) << "Input resolution " << in << " not supported";
return {};
}
@@ -460,9 +459,9 @@ ImgUDevice::PipeConfig ImgUDevice::calculatePipeConfig(Pipe *pipe)
}
LOG(IPU3, Debug) << "Computed pipe configuration: ";
- LOG(IPU3, Debug) << "IF: " << pipeConfigs[bestIndex].iif.toString();
- LOG(IPU3, Debug) << "BDS: " << pipeConfigs[bestIndex].bds.toString();
- LOG(IPU3, Debug) << "GDC: " << pipeConfigs[bestIndex].gdc.toString();
+ LOG(IPU3, Debug) << "IF: " << pipeConfigs[bestIndex].iif;
+ LOG(IPU3, Debug) << "BDS: " << pipeConfigs[bestIndex].bds;
+ LOG(IPU3, Debug) << "GDC: " << pipeConfigs[bestIndex].gdc;
return pipeConfigs[bestIndex];
}
@@ -496,13 +495,13 @@ int ImgUDevice::configure(const PipeConfig &pipeConfig, V4L2DeviceFormat *inputF
ret = imgu_->setSelection(PAD_INPUT, V4L2_SEL_TGT_CROP, &iif);
if (ret)
return ret;
- LOG(IPU3, Debug) << "ImgU IF rectangle = " << iif.toString();
+ LOG(IPU3, Debug) << "ImgU IF rectangle = " << iif;
Rectangle bds{ 0, 0, pipeConfig.bds };
ret = imgu_->setSelection(PAD_INPUT, V4L2_SEL_TGT_COMPOSE, &bds);
if (ret)
return ret;
- LOG(IPU3, Debug) << "ImgU BDS rectangle = " << bds.toString();
+ LOG(IPU3, Debug) << "ImgU BDS rectangle = " << bds;
V4L2SubdeviceFormat gdcFormat = {};
gdcFormat.mbus_code = MEDIA_BUS_FMT_FIXED;