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>
This commit is contained in:
Sebastian Fricke
2021-01-26 19:48:51 +01:00
committed by Laurent Pinchart
parent 83e434b2dc
commit 11a946bc22
2 changed files with 0 additions and 46 deletions
@@ -42,7 +42,6 @@ public:
{
}
explicit BayerFormat(V4L2PixelFormat v4l2Format);
static const BayerFormat &fromMbusCode(unsigned int mbusCode);
bool isValid() const { return bitDepth != 0; }