diff options
author | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2021-01-14 08:49:01 +0200 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ideasonboard.com> | 2021-01-14 08:49:01 +0200 |
commit | 52a534d024c824c9359b3b9ea605f4fbb719f1f8 (patch) | |
tree | 0b4bb1b256fb7e84b1862ffbde4d11b504b7d56c /py/pykms | |
parent | b12aab5d4bb45e77934d9838576a817bc8defe4b (diff) |
py: add fourcc_to_pixelformat
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Diffstat (limited to 'py/pykms')
-rw-r--r-- | py/pykms/pykmsbase.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/pykms/pykmsbase.cpp b/py/pykms/pykmsbase.cpp index a963843..382ef6f 100644 --- a/py/pykms/pykmsbase.cpp +++ b/py/pykms/pykmsbase.cpp @@ -224,6 +224,8 @@ void init_pykmsbase(py::module& m) .value("RGBA1010102", PixelFormat::RGBA1010102) .value("BGRA1010102", PixelFormat::BGRA1010102); + m.def("fourcc_to_pixelformat", &FourCCToPixelFormat); + py::enum_<SyncPolarity>(m, "SyncPolarity") .value("Undefined", SyncPolarity::Undefined) .value("Positive", SyncPolarity::Positive) |