summaryrefslogtreecommitdiff
path: root/py
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2020-12-03 11:31:24 +0200
committerTomi Valkeinen <tomi.valkeinen@ti.com>2020-12-03 11:31:24 +0200
commit764d6a0b7441796806a8fb8f10b79f009d5afb36 (patch)
tree56244ecfbe2acfbb21d1724591c23318e7173558 /py
parent79b60742131540b4c30db9aa4342c513dee389a7 (diff)
crtc: add legacy gamma set
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Diffstat (limited to 'py')
-rw-r--r--py/pykms/pykmsbase.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/py/pykms/pykmsbase.cpp b/py/pykms/pykmsbase.cpp
index 43c2dfd..a963843 100644
--- a/py/pykms/pykmsbase.cpp
+++ b/py/pykms/pykmsbase.cpp
@@ -96,7 +96,9 @@ void init_pykmsbase(py::module& m)
.def_property_readonly("mode", &Crtc::mode)
.def_property_readonly("mode_valid", &Crtc::mode_valid)
.def("__repr__", [](const Crtc& o) { return "<pykms.Crtc " + to_string(o.id()) + ">"; })
- .def("refresh", &Crtc::refresh);
+ .def("refresh", &Crtc::refresh)
+ .def("legacy_gamma_size", &Crtc::legacy_gamma_size)
+ .def("legacy_gamma_set", &Crtc::legacy_gamma_set);
py::class_<Encoder, DrmPropObject, unique_ptr<Encoder, py::nodelete>>(m, "Encoder")
.def("refresh", &Encoder::refresh);