diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-11-06 11:29:32 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2019-11-06 17:16:23 +0200 |
commit | 37a76a53ddf8c740b479f773d7d10ad7ca074d83 (patch) | |
tree | ace80d1d6fc9585f04c54b7fdd02051137a0677c /py | |
parent | 16e9810d6169f766978c55138f99a7a9cd331ade (diff) |
Split dmabuf support from ExtFramebuffer into DmabufFramebuffer
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'py')
-rw-r--r-- | py/pykms/pykmsbase.cpp | 2 | ||||
-rwxr-xr-x | py/tests/test.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/py/pykms/pykmsbase.cpp b/py/pykms/pykmsbase.cpp index b4dc090..5f39faa 100644 --- a/py/pykms/pykmsbase.cpp +++ b/py/pykms/pykmsbase.cpp @@ -167,7 +167,7 @@ void init_pykmsbase(py::module &m) .def("offset", &DumbFramebuffer::offset) ; - py::class_<ExtFramebuffer, Framebuffer>(m, "ExtFramebuffer") + py::class_<DmabufFramebuffer, Framebuffer>(m, "DmabufFramebuffer") .def(py::init<Card&, uint32_t, uint32_t, PixelFormat, vector<int>, vector<uint32_t>, vector<uint32_t>>(), py::keep_alive<1, 2>()) // Keep Card alive until this is destructed ; diff --git a/py/tests/test.py b/py/tests/test.py index 83cf16a..3f9e205 100755 --- a/py/tests/test.py +++ b/py/tests/test.py @@ -28,7 +28,7 @@ else: origfb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24"); if args.dmabuf: - fb = pykms.ExtFramebuffer(card, origfb.width, origfb.height, origfb.format, + fb = pykms.DmabufFramebuffer(card, origfb.width, origfb.height, origfb.format, [origfb.fd(0)], [origfb.stride(0)], [origfb.offset(0)]) else: fb = origfb |