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>
This commit is contained in:
@@ -20,6 +20,11 @@ namespace libcamera {
|
||||
class V4L2PixelFormat
|
||||
{
|
||||
public:
|
||||
struct Info {
|
||||
PixelFormat format;
|
||||
const char *description;
|
||||
};
|
||||
|
||||
V4L2PixelFormat()
|
||||
: fourcc_(0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user