From 22b0d9f08105e235c666865099b85a043761357d Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Sat, 11 Jun 2016 23:42:42 +0300 Subject: py: PixelFormat & DumbFB impro --- py/pykmsbase.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/py/pykmsbase.cpp b/py/pykmsbase.cpp index 3d1998e..d63d4fc 100644 --- a/py/pykmsbase.cpp +++ b/py/pykmsbase.cpp @@ -92,10 +92,17 @@ void init_pykmsbase(py::module &m) py::class_(m, "DumbFramebuffer", 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 Card alive until this is destructed .def_property_readonly("width", &DumbFramebuffer::width) .def_property_readonly("height", &DumbFramebuffer::height) ; + py::enum_(m, "PixelFormat") + .value("XRGB8888", PixelFormat::XRGB8888) + .value("YUYV", PixelFormat::YUYV) + ; + py::class_(m, "Videomode") .def(py::init<>()) -- cgit v1.2.3