diff options
author | Kaaira Gupta <kgupta@es.iitr.ac.in> | 2020-07-27 21:51:41 +0530 |
---|---|---|
committer | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2020-08-03 11:48:46 +0100 |
commit | c4b75cb66c5671e6494ce9ec0aa661ce1b90572d (patch) | |
tree | 41bdd83fc3b56ccf92319d17ac79185bd40f1438 /include | |
parent | 2dd19efffc5a68f857e3d1748767eeb6f8fe1161 (diff) |
libcamera: formats: PixelFormatInfo: Add name lookup function
Add a function which returns PixelFormatInfo, given format name as
a string.
Signed-off-by: Kaaira Gupta <kgupta@es.iitr.ac.in>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libcamera/internal/formats.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libcamera/internal/formats.h b/include/libcamera/internal/formats.h index 0bb15104..b8e47491 100644 --- a/include/libcamera/internal/formats.h +++ b/include/libcamera/internal/formats.h @@ -38,6 +38,7 @@ public: static const PixelFormatInfo &info(const PixelFormat &format); static const PixelFormatInfo &info(const V4L2PixelFormat &format); + static const PixelFormatInfo &info(const std::string &name); unsigned int stride(unsigned int width, unsigned int plane, unsigned int align = 1) const; |