summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-02-10 11:13:05 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-02-10 11:13:05 +0200
commita42ce13524c52fabac747dde2fd5ab6e15b43139 (patch)
tree68ae322ebb6f2e11df6fccfdd3f179e85722c534 /py
parent38b625b629a48e8cf070a749111a641d45394634 (diff)
omapfb: add constructor with fourcc
Diffstat (limited to 'py')
-rw-r--r--py/pykms/pykmsomap.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/py/pykms/pykmsomap.cpp b/py/pykms/pykmsomap.cpp
index 525834b..a749f76 100644
--- a/py/pykms/pykmsomap.cpp
+++ b/py/pykms/pykmsomap.cpp
@@ -15,6 +15,8 @@ void init_pykmsomap(py::module &m)
;
py::class_<OmapFramebuffer>(m, "OmapFramebuffer", py::base<MappedFramebuffer>())
+ .def(py::init<OmapCard&, uint32_t, uint32_t, const string&>(),
+ py::keep_alive<1, 2>()) // Keep Card alive until this is destructed
.def(py::init<OmapCard&, uint32_t, uint32_t, PixelFormat>(),
py::keep_alive<1, 2>()) // Keep OmapCard alive until this is destructed
;