summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2021-09-08 16:46:32 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2021-09-10 10:26:39 +0900
commit67f0def9bae08edc79329e675b21cb87d598b119 (patch)
treeaa13fa0e79b6a066dfca29648234e895bf2ab108 /include
parenta20d52a35b93bc9eaa21d07dd14e86b670384683 (diff)
libcamera: v4l2_pixelformat: Add V4L2 description strings
Add V4L2 description strings to the map of V4L2 formats. To achieve this, create an Info struct to wrap them. Update the one current user of the old map. This will be used later in the V4L2 compatibility layer to report the V4L2 format description. 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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libcamera/internal/v4l2_pixelformat.h b/include/libcamera/internal/v4l2_pixelformat.h
index 560c5c53..87872542 100644
--- a/include/libcamera/internal/v4l2_pixelformat.h
+++ b/include/libcamera/internal/v4l2_pixelformat.h
@@ -20,6 +20,11 @@ namespace libcamera {
class V4L2PixelFormat
{
public:
+ struct Info {
+ PixelFormat format;
+ const char *description;
+ };
+
V4L2PixelFormat()
: fourcc_(0)
{