diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-03-01 18:45:29 +0200 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2024-06-25 14:38:48 +0300 |
commit | 137291d9eb7496f5a173ed1cea35eb5734ed0b3e (patch) | |
tree | 5d1706ed47129c2a1320958c28dbf785e966be24 | |
parent | 47be1f6afcd4d4a88de156fd310c5f029b296de8 (diff) |
pipeline: raspberrypi: vc4: Use operator<<(V4L2VideoFormat)
Use the stream formatting operator for V4L2VideoFormat instead of
calling .toString() manually. As the .toString() member function is a
wrapper around the stream formatting operator, this makes the code
slightly more efficient.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | src/libcamera/pipeline/rpi/vc4/vc4.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/pipeline/rpi/vc4/vc4.cpp b/src/libcamera/pipeline/rpi/vc4/vc4.cpp index 4a89e35f..5670f262 100644 --- a/src/libcamera/pipeline/rpi/vc4/vc4.cpp +++ b/src/libcamera/pipeline/rpi/vc4/vc4.cpp @@ -689,7 +689,7 @@ int Vc4CameraData::platformConfigure(const RPi::RPiCameraConfiguration *rpiConfi format.fourcc = V4L2PixelFormat(V4L2_META_FMT_SENSOR_DATA); format.planes[0].size = embeddedFormat.size.width * embeddedFormat.size.height; - LOG(RPI, Debug) << "Setting embedded data format " << format.toString(); + LOG(RPI, Debug) << "Setting embedded data format " << format; ret = unicam_[Unicam::Embedded].dev()->setFormat(&format); if (ret) { LOG(RPI, Error) << "Failed to set format on Unicam embedded: " |