summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 126dd1e)
raw | patch | inline | side by side (parent: 126dd1e)
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Sat, 11 Jun 2016 20:42:42 +0000 (23:42 +0300) | ||
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | |
Sat, 11 Jun 2016 20:43:05 +0000 (23:43 +0300) |
py/pykmsbase.cpp | patch | blob | history |
diff --git a/py/pykmsbase.cpp b/py/pykmsbase.cpp
index 3d1998e6723ef5372edc6f7cb327658f27be66ed..d63d4fc39c3b1b55c550e2ba67ed1cbf29734490 100644 (file)
--- a/py/pykmsbase.cpp
+++ b/py/pykmsbase.cpp
py::class_<DumbFramebuffer>(m, "DumbFramebuffer", py::base<Framebuffer>())
.def(py::init<Card&, uint32_t, uint32_t, const string&>(),
py::keep_alive<1, 2>()) // Keep Card alive until this is destructed
+ .def(py::init<Card&, uint32_t, uint32_t, PixelFormat>(),
+ py::keep_alive<1, 2>()) // Keep Card alive until this is destructed
.def_property_readonly("width", &DumbFramebuffer::width)
.def_property_readonly("height", &DumbFramebuffer::height)
;
+ py::enum_<PixelFormat>(m, "PixelFormat")
+ .value("XRGB8888", PixelFormat::XRGB8888)
+ .value("YUYV", PixelFormat::YUYV)
+ ;
+
py::class_<Videomode>(m, "Videomode")
.def(py::init<>())