diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-02-10 11:15:19 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-02-10 11:15:19 +0200 |
commit | f52f3746b034ce6ca0069205c7106ab684c002e1 (patch) | |
tree | 5b8e53554dca32becc6504869a7e2d8e1a3002c4 | |
parent | a42ce13524c52fabac747dde2fd5ab6e15b43139 (diff) |
py: add ExtFramebuffer
-rw-r--r-- | py/pykms/pykmsbase.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/pykms/pykmsbase.cpp b/py/pykms/pykmsbase.cpp index 3f0f610..e45b996 100644 --- a/py/pykms/pykmsbase.cpp +++ b/py/pykms/pykmsbase.cpp @@ -110,6 +110,11 @@ void init_pykmsbase(py::module &m) .def("offset", &DumbFramebuffer::offset) ; + py::class_<ExtFramebuffer>(m, "ExtFramebuffer", py::base<MappedFramebuffer>()) + .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 + ; + py::enum_<PixelFormat>(m, "PixelFormat") .value("Undefined", PixelFormat::Undefined) |