]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android/external-libkmsxx.git/commitdiff
py: add missing pixelformats
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 14 Jun 2016 19:27:30 +0000 (22:27 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 14 Jun 2016 19:38:59 +0000 (22:38 +0300)
py/pykmsbase.cpp

index d63d4fc39c3b1b55c550e2ba67ed1cbf29734490..c218c81c33e3bbe3a5714ce6900ef1f25ff14b35 100644 (file)
@@ -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")