libcamera: v4l2_pixelformat: Add helper function to get the description

Add a helper function to V4L2PixelFormat for retrieving the V4L2
description string.

Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jean-Michel Hautbois <jeanmichel.hautbois@ideasonboard.com>
This commit is contained in:
Paul Elder 2021-09-08 16:48:58 +09:00
parent ba155eadb9
commit 9f9c224c7b
2 changed files with 23 additions and 0 deletions

View file

@ -40,6 +40,7 @@ public:
operator uint32_t() const { return fourcc_; }
std::string toString() const;
const char *description() const;
PixelFormat toPixelFormat() const;
static V4L2PixelFormat fromPixelFormat(const PixelFormat &pixelFormat,