diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-10-21 04:54:15 +0300 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-11-07 20:24:31 +0200 |
commit | b394dc8b8001dd702dfa171a123f4e33c1e29c6b (patch) | |
tree | 765afff370b22faeaecf196fbe394a1520903de5 /src/libcamera/pipeline/raspberrypi/raspberrypi.cpp | |
parent | e9463449049c78b6b1c61410082a5339338b2e81 (diff) |
libcamera: Drop unnecessary explicit initialization of V4L2DeviceFormat
The V4L2DeviceFormat class now has default initializers for all members,
explicit initialization isn't needed anymore.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Diffstat (limited to 'src/libcamera/pipeline/raspberrypi/raspberrypi.cpp')
-rw-r--r-- | src/libcamera/pipeline/raspberrypi/raspberrypi.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp index 0a60442c..7ad66f21 100644 --- a/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp +++ b/src/libcamera/pipeline/raspberrypi/raspberrypi.cpp @@ -73,7 +73,7 @@ V4L2DeviceFormat findBestMode(V4L2VideoDevice::Formats &formatsMap, const Size &req) { double bestScore = std::numeric_limits<double>::max(), score; - V4L2DeviceFormat bestMode = {}; + V4L2DeviceFormat bestMode; #define PENALTY_AR 1500.0 #define PENALTY_8BIT 2000.0 @@ -429,7 +429,7 @@ CameraConfiguration::Status RPiCameraConfiguration::validate() status = Adjusted; } - V4L2DeviceFormat format = {}; + V4L2DeviceFormat format; format.fourcc = dev->toV4L2PixelFormat(cfg.pixelFormat); format.size = cfg.size; @@ -600,7 +600,7 @@ int PipelineHandlerRPi::configure(Camera *camera, CameraConfiguration *config) * See which streams are requested, and route the user * StreamConfiguration appropriately. */ - V4L2DeviceFormat format = {}; + V4L2DeviceFormat format; for (unsigned i = 0; i < config->size(); i++) { StreamConfiguration &cfg = config->at(i); |