summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2013560)
raw | patch | inline | side by side (parent: 2013560)
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Thu, 27 Apr 2017 10:58:42 +0000 (13:58 +0300) | ||
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Thu, 27 Apr 2017 10:58:55 +0000 (13:58 +0300) |
py/pykms/pykmsomap.cpp | patch | blob | history |
diff --git a/py/pykms/pykmsomap.cpp b/py/pykms/pykmsomap.cpp
index a749f761be94b5fe1a51f916b9b158b138f3d8af..7480c782b1fd8bc47accda09114b94b52f74dd2c 100644 (file)
--- a/py/pykms/pykmsomap.cpp
+++ b/py/pykms/pykmsomap.cpp
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
+ .def_property_readonly("format", &OmapFramebuffer::format)
+ .def_property_readonly("num_planes", &OmapFramebuffer::num_planes)
+ .def("fd", &OmapFramebuffer::prime_fd)
+ .def("stride", &OmapFramebuffer::stride)
+ .def("offset", &OmapFramebuffer::offset)
;
}