From dfa9e526a43086a1b0936b74ec243f23396d5f69 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Tue, 4 Oct 2022 10:09:53 +0300 Subject: v4l2: add DRMFourCCToPixelFormat Signed-off-by: Tomi Valkeinen --- v4l2++/inc/v4l2++/pixelformats.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'v4l2++/inc') 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), -- cgit v1.2.3