py: omapfb: add missing properties
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 27 Apr 2017 10:58:42 +0000 (13:58 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 27 Apr 2017 10:58:55 +0000 (13:58 +0300)
py/pykms/pykmsomap.cpp

index a749f761be94b5fe1a51f916b9b158b138f3d8af..7480c782b1fd8bc47accda09114b94b52f74dd2c 100644 (file)
@@ -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)
                        ;
 }