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:
committed by
Laurent Pinchart
parent
83e434b2dc
commit
11a946bc22
@@ -42,7 +42,6 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
explicit BayerFormat(V4L2PixelFormat v4l2Format);
|
||||
static const BayerFormat &fromMbusCode(unsigned int mbusCode);
|
||||
bool isValid() const { return bitDepth != 0; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user