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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user