summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2021-09-08 16:48:58 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2021-09-10 10:32:57 +0900
commit9f9c224c7bb91e0123b75901a7ccf54d1226504d (patch)
tree6f33ee61438b503bb2d4fabc268677b628fba333 /include
parentba155eadb9b5e0976338c75aa21d95275f7c649c (diff)
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>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/v4l2_pixelformat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libcamera/internal/v4l2_pixelformat.h b/include/libcamera/internal/v4l2_pixelformat.h
index 87872542..e3cda699 100644
--- a/include/libcamera/internal/v4l2_pixelformat.h
+++ b/include/libcamera/internal/v4l2_pixelformat.h
@@ -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,