From 513766368980cda9adc613f690550cc42dfc85c0 Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Thu, 18 May 2017 13:21:07 +0300 Subject: omapfb: add TILER support Add TILER rotation support for omapframebuffer. Signed-off-by: Tomi Valkeinen --- py/pykms/pykmsomap.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'py/pykms') diff --git a/py/pykms/pykmsomap.cpp b/py/pykms/pykmsomap.cpp index 7480c78..bad20fb 100644 --- a/py/pykms/pykmsomap.cpp +++ b/py/pykms/pykmsomap.cpp @@ -15,10 +15,12 @@ void init_pykmsomap(py::module &m) ; py::class_(m, "OmapFramebuffer", py::base()) - .def(py::init(), - py::keep_alive<1, 2>()) // Keep Card alive until this is destructed - .def(py::init(), - py::keep_alive<1, 2>()) // Keep OmapCard alive until this is destructed + .def(py::init(), + py::keep_alive<1, 2>(), // Keep Card alive until this is destructed + py::arg("card"), py::arg("width"), py::arg("height"), py::arg("fourcc"), py::arg("tiled") = false) + .def(py::init(), + py::keep_alive<1, 2>(), // Keep OmapCard alive until this is destructed + py::arg("card"), py::arg("width"), py::arg("height"), py::arg("pixfmt"), py::arg("tiled") = false) .def_property_readonly("format", &OmapFramebuffer::format) .def_property_readonly("num_planes", &OmapFramebuffer::num_planes) .def("fd", &OmapFramebuffer::prime_fd) -- cgit v1.2.3