summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-05-18 13:21:07 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-05-24 13:23:07 +0300
commit513766368980cda9adc613f690550cc42dfc85c0 (patch)
tree553c0f8d878166e0662e4a6f3c73850d5a1b4a0e /py
parent2602a5d27444423595764556947218a8a23129ac (diff)
omapfb: add TILER support
Add TILER rotation support for omapframebuffer. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'py')
-rw-r--r--py/pykms/pykmsomap.cpp10
1 files changed, 6 insertions, 4 deletions
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_<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
+ .def(py::init<OmapCard&, uint32_t, uint32_t, const string&, bool>(),
+ 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<OmapCard&, uint32_t, uint32_t, PixelFormat, bool>(),
+ 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)