diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2020-10-07 08:43:10 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2020-10-09 15:54:43 +0300 |
commit | b5f865b92566e4205770b63ba713c41c4edb5da3 (patch) | |
tree | 282cb9cbb84f35b0af124b10ec6646b955395899 /kms++/src | |
parent | b121eeaf11b28c7cecfeb533499abf05130816b4 (diff) |
dmabuffb: add constructor which takes in string fourcc
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'kms++/src')
-rw-r--r-- | kms++/src/dmabufframebuffer.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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<int> fds, vector<uint32_t> pitches, vector<uint32_t> offsets, vector<uint64_t> modifiers) + : DmabufFramebuffer(card, width, height, FourCCToPixelFormat(format), fds, pitches, offsets, modifiers) +{ +} DmabufFramebuffer::DmabufFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format, vector<int> fds, vector<uint32_t> pitches, vector<uint32_t> offsets, vector<uint64_t> modifiers) |