summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-14 22:27:30 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2016-06-14 22:38:59 +0300
commite2fd7dff3621132d94e41002b38ca720cb40f55d (patch)
tree26652a7c4eb60472adc372ee886e09d8b6888a27
parent22b0d9f08105e235c666865099b85a043761357d (diff)
py: add missing pixelformats
-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")