diff options
author | Sebastian Fricke <sebastian.fricke@posteo.net> | 2021-01-26 19:48:51 +0100 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-02-04 21:00:38 +0200 |
commit | 11a946bc22212abd9eef467633e8ab359df57299 (patch) | |
tree | bb2bb2c0792ed88e984464f799cb780d555025c8 /include | |
parent | 83e434b2dccbcc3c9653767dce000052e1e52297 (diff) |
libcamera: bayer_format: Remove unnecessary constructor
The new `fromV4l2PixelFormat` static member function renders an old
BayerFormat constructor useless, remove it together with the
`v4l2ToBayer` mapping table. The new function searches for a matching
mapped value instead of a matching key, therefore the `bayerToV4l2`
table is sufficient.
Signed-off-by: Sebastian Fricke <sebastian.fricke@posteo.net>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/internal/bayer_format.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/libcamera/internal/bayer_format.h b/include/libcamera/internal/bayer_format.h index 4f338bd7..62814154 100644 --- a/include/libcamera/internal/bayer_format.h +++ b/include/libcamera/internal/bayer_format.h @@ -42,7 +42,6 @@ public: { } - explicit BayerFormat(V4L2PixelFormat v4l2Format); static const BayerFormat &fromMbusCode(unsigned int mbusCode); bool isValid() const { return bitDepth != 0; } |