summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-07-24 01:09:58 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2020-07-24 14:23:03 +0300
commit7145d15e043a9066a7e0a6a53ba95b1b1af851d5 (patch)
treeef70cb295a1afcd2c40d2e031e95a899b7412a4f
parenta8a2048ab0541d7a9743bc7f0db91229cc34f320 (diff)
libcamera: formats: Remove unnecessary explicit constructor calls
When initializing the PixelFormatInfo::format field with a PixelFormat, there's no need to call the PixelFormat (copy) constructor explicitly. Remove the unnecessary calls. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
-rw-r--r--src/libcamera/formats.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcamera/formats.cpp b/src/libcamera/formats.cpp
index 60b42ce2..11774b0c 100644
--- a/src/libcamera/formats.cpp
+++ b/src/libcamera/formats.cpp
@@ -321,7 +321,7 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{
} },
{ formats::YUV420, {
.name = "YUV420",
- .format = PixelFormat(formats::YUV420),
+ .format = formats::YUV420,
.v4l2Format = V4L2PixelFormat(V4L2_PIX_FMT_YUV420),
.bitsPerPixel = 12,
.colourEncoding = PixelFormatInfo::ColourEncodingYUV,
@@ -331,7 +331,7 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{
} },
{ formats::YVU420, {
.name = "YVU420",
- .format = PixelFormat(formats::YVU420),
+ .format = formats::YVU420,
.v4l2Format = V4L2PixelFormat(V4L2_PIX_FMT_YVU420),
.bitsPerPixel = 12,
.colourEncoding = PixelFormatInfo::ColourEncodingYUV,
@@ -341,7 +341,7 @@ const std::map<PixelFormat, PixelFormatInfo> pixelFormatInfo{
} },
{ formats::YUV422, {
.name = "YUV422",
- .format = PixelFormat(formats::YUV422),
+ .format = formats::YUV422,
.v4l2Format = V4L2PixelFormat(V4L2_PIX_FMT_YUV422P),
.bitsPerPixel = 16,
.colourEncoding = PixelFormatInfo::ColourEncodingYUV,