From 11a946bc22212abd9eef467633e8ab359df57299 Mon Sep 17 00:00:00 2001 From: Sebastian Fricke Date: Tue, 26 Jan 2021 19:48:51 +0100 Subject: 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 Reviewed-by: Laurent Pinchart Signed-off-by: Laurent Pinchart --- include/libcamera/internal/bayer_format.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include/libcamera') 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; } -- cgit v1.2.1