diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-05-23 09:31:08 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-05-23 09:43:43 +0300 |
commit | 0bc5bbd6766949d651f98e12981d79c86ce0bf99 (patch) | |
tree | e0816b9b3696e77197e3c1a6c3283ef0a4cb44c0 /py/pykmstest.cpp | |
parent | fa91e51e4a485ab813032ffcbc7d8cb8c96314d5 (diff) |
Fix the rest of the py scripts
Diffstat (limited to 'py/pykmstest.cpp')
-rw-r--r-- | py/pykmstest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/py/pykmstest.cpp b/py/pykmstest.cpp index 781a43a..407330d 100644 --- a/py/pykmstest.cpp +++ b/py/pykmstest.cpp @@ -14,6 +14,10 @@ void init_pykmstest(py::module &m) .def(py::init<>()) .def(py::init<uint8_t, uint8_t, uint8_t&>()) .def(py::init<uint8_t, uint8_t, uint8_t, uint8_t&>()) + .def_property_readonly("rgb888", &RGB::rgb888) + .def_property_readonly("argb8888", &RGB::argb8888) + .def_property_readonly("abgr8888", &RGB::abgr8888) + .def_property_readonly("rgb565", &RGB::rgb565) ; // Use lambdas to handle IMappedFramebuffer |