omapfb: add constructor with fourcc
[android/external-libkmsxx.git] / py / pykms / pykmsomap.cpp
index 525834b06e3a415f3e53139c2298846df8b02cc3..a749f761be94b5fe1a51f916b9b158b138f3d8af 100644 (file)
@@ -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
                        ;