diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-04-27 13:58:42 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-04-27 13:58:55 +0300 |
commit | 7b1a164a6f42fe52fd2c79305873adc5784581ec (patch) | |
tree | 0c20031f01aef58f1a89b971f9701c973767194a /py | |
parent | 201356009cda2c62e13c4129826f7541d3a8ed6f (diff) |
py: omapfb: add missing properties
Diffstat (limited to 'py')
-rw-r--r-- | py/pykms/pykmsomap.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/pykms/pykmsomap.cpp b/py/pykms/pykmsomap.cpp index a749f76..7480c78 100644 --- a/py/pykms/pykmsomap.cpp +++ b/py/pykms/pykmsomap.cpp @@ -19,5 +19,10 @@ void init_pykmsomap(py::module &m) 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) ; } |