summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--py/pykmsbase.cpp16
1 files changed, 15 insertions, 1 deletions
diff --git a/py/pykmsbase.cpp b/py/pykmsbase.cpp
index d63d4fc..c218c81 100644
--- a/py/pykmsbase.cpp
+++ b/py/pykmsbase.cpp
@@ -99,8 +99,22 @@ void init_pykmsbase(py::module &m)
;
py::enum_<PixelFormat>(m, "PixelFormat")
- .value("XRGB8888", PixelFormat::XRGB8888)
+ .value("Undefined", PixelFormat::Undefined)
+
+ .value("NV12", PixelFormat::NV12)
+ .value("NV21", PixelFormat::NV21)
+
+ .value("UYVY", PixelFormat::UYVY)
.value("YUYV", PixelFormat::YUYV)
+ .value("YVYU", PixelFormat::YVYU)
+ .value("VYUY", PixelFormat::VYUY)
+
+ .value("XRGB8888", PixelFormat::XRGB8888)
+ .value("XBGR8888", PixelFormat::XBGR8888)
+ .value("ARGB8888", PixelFormat::ARGB8888)
+ .value("ABGR8888", PixelFormat::ABGR8888)
+
+ .value("RGB565", PixelFormat::RGB565)
;
py::class_<Videomode>(m, "Videomode")