mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-23 16:45:07 +03:00
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:
parent
ba155eadb9
commit
9f9c224c7b
2 changed files with 23 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue