From b5f865b92566e4205770b63ba713c41c4edb5da3 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Wed, 7 Oct 2020 08:43:10 +0300 Subject: dmabuffb: add constructor which takes in string fourcc Signed-off-by: Tomi Valkeinen --- kms++/src/dmabufframebuffer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kms++/src/dmabufframebuffer.cpp') diff --git a/kms++/src/dmabufframebuffer.cpp b/kms++/src/dmabufframebuffer.cpp index 1e8c914..991d96c 100644 --- a/kms++/src/dmabufframebuffer.cpp +++ b/kms++/src/dmabufframebuffer.cpp @@ -15,6 +15,11 @@ using namespace std; namespace kms { +DmabufFramebuffer::DmabufFramebuffer(Card& card, uint32_t width, uint32_t height, const string& format, + vector fds, vector pitches, vector offsets, vector modifiers) + : DmabufFramebuffer(card, width, height, FourCCToPixelFormat(format), fds, pitches, offsets, modifiers) +{ +} DmabufFramebuffer::DmabufFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format, vector fds, vector pitches, vector offsets, vector modifiers) -- cgit v1.2.3