diff options
| author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2022-10-04 10:09:53 +0300 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2022-10-04 11:02:45 +0300 |
| commit | dfa9e526a43086a1b0936b74ec243f23396d5f69 (patch) | |
| tree | 6eb3f9dad18d4a6754a5d6722f30d82cb234c2a7 /v4l2++/inc | |
| parent | 1bba3eca5ddbfa8fb7ed05994207b1c329ab58ee (diff) | |
v4l2: add DRMFourCCToPixelFormat
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Diffstat (limited to 'v4l2++/inc')
| -rw-r--r-- | v4l2++/inc/v4l2++/pixelformats.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/v4l2++/inc/v4l2++/pixelformats.h b/v4l2++/inc/v4l2++/pixelformats.h index 609ff4f..c7eda25 100644 --- a/v4l2++/inc/v4l2++/pixelformats.h +++ b/v4l2++/inc/v4l2++/pixelformats.h @@ -78,6 +78,8 @@ static inline PixelFormat FourCCToPixelFormat(const std::string& fourcc) return (PixelFormat)MakeFourCC(fourcc.c_str()); } +PixelFormat DRMFourCCToPixelFormat(const std::string& fourcc); + static inline std::string PixelFormatToFourCC(PixelFormat f) { char buf[5] = { (char)(((uint32_t)f >> 0) & 0xff), |
