diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-05-23 09:54:08 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2016-05-23 09:54:08 +0300 |
commit | a5c28bcb2ead34e921617711ebf94ffcb5d72878 (patch) | |
tree | e2f93259f63407357c70b06a7d59c24fde5a3901 /py/pykmstest.cpp | |
parent | 0bc5bbd6766949d651f98e12981d79c86ce0bf99 (diff) |
File/dir renames
Diffstat (limited to 'py/pykmstest.cpp')
-rw-r--r-- | py/pykmstest.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/py/pykmstest.cpp b/py/pykmstest.cpp deleted file mode 100644 index 407330d..0000000 --- a/py/pykmstest.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include <pybind11/pybind11.h> -#include <pybind11/stl.h> -#include <kms++.h> -#include "kmstest.h" - -namespace py = pybind11; - -using namespace kms; -using namespace std; - -void init_pykmstest(py::module &m) -{ - py::class_<RGB>(m, "RGB") - .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 - m.def("draw_test_pattern", [](DumbFramebuffer& fb) { draw_test_pattern(fb); } ); - m.def("draw_color_bar", [](DumbFramebuffer& fb, int old_xpos, int xpos, int width) { - draw_color_bar(fb, old_xpos, xpos, width); - } ); - m.def("draw_rect", [](DumbFramebuffer& fb, uint32_t x, uint32_t y, uint32_t w, uint32_t h, RGB color) { - draw_rect(fb, x, y, w, h, color); - } ); -} |