summaryrefslogtreecommitdiff
path: root/py/pykms
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2020-10-07 08:43:10 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2020-10-09 15:54:43 +0300
commitb5f865b92566e4205770b63ba713c41c4edb5da3 (patch)
tree282cb9cbb84f35b0af124b10ec6646b955395899 /py/pykms
parentb121eeaf11b28c7cecfeb533499abf05130816b4 (diff)
dmabuffb: add constructor which takes in string fourcc
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'py/pykms')
-rw-r--r--py/pykms/pykmsbase.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/pykms/pykmsbase.cpp b/py/pykms/pykmsbase.cpp
index a55cf3a..6ed82a0 100644
--- a/py/pykms/pykmsbase.cpp
+++ b/py/pykms/pykmsbase.cpp
@@ -171,6 +171,8 @@ void init_pykmsbase(py::module &m)
;
py::class_<DmabufFramebuffer, Framebuffer>(m, "DmabufFramebuffer")
+ .def(py::init<Card&, uint32_t, uint32_t, const string&, vector<int>, vector<uint32_t>, vector<uint32_t>>(),
+ py::keep_alive<1, 2>()) // Keep Card alive until this is destructed
.def(py::init<Card&, uint32_t, uint32_t, PixelFormat, vector<int>, vector<uint32_t>, vector<uint32_t>>(),
py::keep_alive<1, 2>()) // Keep Card alive until this is destructed
;