summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Elder <paul.elder@ideasonboard.com>2020-06-29 22:27:05 +0900
committerPaul Elder <paul.elder@ideasonboard.com>2020-07-10 16:11:02 +0900
commitfad0314bc909cf74444ef97b74b2a933a194e986 (patch)
tree1355bbe5fd30ffbbfadf154c25629acfbd1dad1a /include
parentf1b449476cd82dd391bd8e078fb93181e2ec881c (diff)
libcamera: formats: PixelFormatInfo: Add v4l2 lookup function
Add a lookup function for PixelFormatInfo that takes a V4L2PixelFormat. Signed-off-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r--include/libcamera/internal/formats.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libcamera/internal/formats.h b/include/libcamera/internal/formats.h
index 4e90e5ac..211da4a3 100644
--- a/include/libcamera/internal/formats.h
+++ b/include/libcamera/internal/formats.h
@@ -51,6 +51,7 @@ public:
bool isValid() const { return format.isValid(); }
static const PixelFormatInfo &info(const PixelFormat &format);
+ static const PixelFormatInfo &info(const V4L2PixelFormat &format);
/* \todo Add support for non-contiguous memory planes */
const char *name;