diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-04-18 18:32:32 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2019-04-19 13:38:14 +0300 |
commit | 0af0fb9ca9eae903cc533a05e2282ec36cc3ce55 (patch) | |
tree | 77b34c0012dbb70722a2e6217787317234e5593d /src/libcamera/pipeline/rkisp1/rkisp1.cpp | |
parent | 8cf52e378d60cbd255a20eb51827e17814264073 (diff) |
libcamera: stream: Add and use toString() method to StreamConfiguration
Add a toString() method to the StreamConfiguration class, and replace
all manually coded implementations through the source code.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'src/libcamera/pipeline/rkisp1/rkisp1.cpp')
-rw-r--r-- | src/libcamera/pipeline/rkisp1/rkisp1.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/libcamera/pipeline/rkisp1/rkisp1.cpp b/src/libcamera/pipeline/rkisp1/rkisp1.cpp index 51f00fb6..d21c6266 100644 --- a/src/libcamera/pipeline/rkisp1/rkisp1.cpp +++ b/src/libcamera/pipeline/rkisp1/rkisp1.cpp @@ -124,10 +124,7 @@ CameraConfiguration PipelineHandlerRkISP1::streamConfiguration(Camera *camera, configs[&data->stream_] = config; - LOG(RkISP1, Debug) - << "Stream format set to " << config.width << "x" - << config.height << "-0x" << std::hex << std::setfill('0') - << std::setw(8) << config.pixelFormat; + LOG(RkISP1, Debug) << "Stream format set to " << config.toString(); return configs; } @@ -234,10 +231,7 @@ int PipelineHandlerRkISP1::configureStreams(Camera *camera, outputFormat.height != cfg.height || outputFormat.fourcc != cfg.pixelFormat) { LOG(RkISP1, Error) - << "Unable to configure capture in " << cfg.width - << "x" << cfg.height << "-0x" - << std::hex << std::setfill('0') << std::setw(8) - << cfg.pixelFormat; + << "Unable to configure capture in " << cfg.toString(); return -EINVAL; } |